【发布时间】:2016-07-30 18:38:33
【问题描述】:
可能的错误:
当子 B 失败时,GenericWorkflowClientImpl 中的 handleStartChildWorkflowExecutionFailed 方法根据工作流 id 作为键从 scheduleExternalWorkflows 映射中删除了“OpenRequestInfo”。由于 5 个子工作流具有相同的工作流 ID。因此,一旦子 B 初始化失败,地图就会变为空。因此,父工作流无法完成,因为 4 个子工作流请求永远无法在 handle* 方法中正确关闭。
第 335 行显示 handleStartChildWorkflowExecutionFailed 删除失败的条目。
【问题讨论】:
-
你看过卡住工作流的异步堆栈跟踪吗?它是使用 WorkflowReplayer.getAsynchronousThreadDumpAsString() 发出的。
标签: amazon-web-services workflow aws-sdk amazon-swf