aws / aws/serverless-java-container
Use Futures instead of latches to synchronize request processing
- 主要语言
- Java
- 星标
- 1.6k
- 派生
- 574
- PR 合并指标
- 30 天内没有已合并 PR
描述
* Framework version: 2.0
* Implementations: All
## Scenario
The framework currently uses latches on the `HttpServletResponse` implementation to wait for the completion of a request. We should change this to use Futures. This need for this was highlighted in #272 as throwing an exception without releasing the latch may cause memory leaks.
贡献指南
调研方向
Start by tracing the HttpServletResponse implementation and the latch lifecycle used during request processing, then review issue #272 for the exception path that can leave the latch unreleased. Done means request completion uses Futures instead of latches across all implementations without retaining resources when an exception occurs.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- api, backend
- Issue 类型
- 重构
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100