Commit 4a8a1b2
fix: 改进 Fork.join() null 数据处理逻辑
修复问题:之前的修复在检测到 null 数据且是最后一个分支时会返回已有数据,
导致聚合提前完成,丢失分支数据。
改进策略:当 inputData 为 null 时,不更新分支计数,直接返回 null,
等待正确的数据到来后正常完成聚合。
这样可以避免因竞态条件导致的数据丢失问题。
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 150abf1 commit 4a8a1b2
File tree
1 file changed
+3
-8
lines changed- framework/waterflow/java/waterflow-core/src/main/java/modelengine/fit/waterflow/domain/states
1 file changed
+3
-8
lines changedLines changed: 3 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
102 | 103 | | |
103 | 104 | | |
104 | | - | |
| 105 | + | |
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
| 109 | + | |
115 | 110 | | |
116 | 111 | | |
117 | 112 | | |
| |||
0 commit comments