ColinLeeo opened a new pull request, #18747: URL: https://github.com/apache/iotdb/pull/18747
## What is changed? - Add a shared fan-in reservation scope for Exchange inputs belonging to the same Collect node. - Make Collect and MappingCollect consume whichever child is ready, with a rotating cursor for fair opportunities. - Preserve per-source ordering while removing the implicit ordering between Collect children. - Route table and tree planner exchange handles through the shared Collect reservation scope. - Keep aggregation memory releases bounded and use blocking hash aggregation paths where the planner requires an ordering boundary. ## Why is this needed? Independent Exchange inputs can execute in parallel. A shared reservation scope prevents those inputs from exceeding the fragment memory budget together, while ready-first consumption prevents a blocked child from holding up ready inputs. ## Validation - `mvn -o test-compile -pl iotdb-core/calc-commons -DskipTests` - `mvn -o test-compile -pl iotdb-core/datanode -DskipTests` - `mvn -o test-compile -P with-zh-locale -pl iotdb-core/datanode -DskipTests` - Focused Exchange, Collect, aggregation, sorting, window, fill, and TopK tests: 77 tests passed. The branch is rebased onto the current `apache/master`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
