You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2022/08/01 07:01:48 UTC
[GitHub] [hudi] danny0405 commented on a diff in pull request #6218: [HUDI-4477] Adjust partition number of flink sink task
danny0405 commented on code in PR #6218:
URL: https://github.com/apache/hudi/pull/6218#discussion_r934198097
##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/sink/utils/Pipelines.java:
##########
@@ -137,7 +136,7 @@ public static DataStreamSink<Object> bulkInsert(Configuration conf, RowType rowT
// use #partitionCustom instead of #keyBy to avoid duplicate sort operations,
// see BatchExecutionUtils#applyBatchExecutionSettings for details.
Partitioner<String> partitioner = (key, channels) ->
- KeyGroupRangeAssignment.assignKeyToParallelOperator(key, StreamGraphGenerator.DEFAULT_LOWER_BOUND_MAX_PARALLELISM, channels);
+ KeyGroupRangeAssignment.assignKeyToParallelOperator(key, KeyGroupRangeAssignment.UPPER_BOUND_MAX_PARALLELISM, channels);
dataStream = dataStream.partitionCustom(partitioner, rowDataKeyGen::getPartitionPath);
Review Comment:
Does `KeyGroupRangeAssignment#computeDefaultMaxParallelism` work here ?
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org