danny0405 commented on code in PR #11757:
URL: https://github.com/apache/hudi/pull/11757#discussion_r1714491728
##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/sink/utils/Pipelines.java:
##########
@@ -415,9 +415,7 @@ public static DataStreamSink<CompactionCommitEvent>
compact(Configuration conf,
new CompactionPlanOperator(conf))
.setParallelism(1) // plan generate must be singleton
.setMaxParallelism(1)
- // make the distribution strategy deterministic to avoid concurrent
modifications
- // on the same bucket files
- .keyBy(plan -> plan.getOperation().getFileGroupId().getFileId())
+ .rebalance()
Review Comment:
Is `rebanlance` deterministic for multiple concurrent tasks, when there are
task failover and retries, two task may has the risk of sharing a common
compaction file group.
--
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]