aws-cloudformation / aws-cloudformation/cloudformation-cli-java-plugin
Auto map Amazon exception into CFN exception to reduce handler exception mapping
- 主要語言
- Java
- 星號
- 30
- 分支
- 48
- PR 合併指標
- 30 天內沒有已合併 PR
描述
Cloudformation will do retry for retriable exception, such as throttling exception. However, it requires each handler to map the exception into CFN throttling error.
We should be able to auto map the exception to reduce the effort for all resource to map it. For example:
```java
...................
} catch (AmazonServiceException ex) {
if (RetryUtils.isThrottlingException(ex)) {
logger.log(String.format("%s [%s] Create call throttled by downstream service", ResourceModel.TYPE_NAME, model.getAlarmName()));
return ProgressEvent.defaultFailureHandler(ex, HandlerErrorCode.Throttling);
}
..................
}
```
貢獻指南
研究方向
首先,追蹤 issue 中描述的產生 handler 例外映射路徑,並檢查 AmazonServiceException 如何到達 ProgressEvent.defaultFailureHandler。確定自動 throttling 映射應如何套用到各個產生的資源,接著驗證在 CloudFormation 的重試行為維持不變的情況下,重複的 catch 區塊已不再需要。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- java
- 領域
- tooling
- Issue 類型
- 功能
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 35/100