guanziyue commented on a change in pull request #4446:
URL: https://github.com/apache/hudi/pull/4446#discussion_r780881267
##########
File path:
hudi-client/hudi-java-client/src/main/java/org/apache/hudi/table/action/commit/BaseJavaCommitActionExecutor.java
##########
@@ -90,27 +90,29 @@ public BaseJavaCommitActionExecutor(HoodieEngineContext
context,
public HoodieWriteMetadata<List<WriteStatus>> execute(List<HoodieRecord<T>>
inputRecords) {
HoodieWriteMetadata<List<WriteStatus>> result = new
HoodieWriteMetadata<>();
- WorkloadProfile profile = null;
+ WorkloadProfile inputProfile = null;
if (isWorkloadProfileNeeded()) {
- profile = new WorkloadProfile(buildProfile(inputRecords));
- LOG.info("Workload profile :" + profile);
+ inputProfile = new WorkloadProfile(buildProfile(inputRecords));
+ LOG.info("Input workload profile :" + inputProfile);
+ }
+
+ final Partitioner partitioner = getPartitioner(inputProfile);
+ try {
+ WorkloadProfile executionProfile =
partitioner.getExecutionWorkloadProfile();
+ LOG.info("Execution workload profile :" + inputProfile);
+ saveWorkloadProfileMetadataToInflight(executionProfile, instantTime);
Review comment:
>
I do this because the logic assign records to log file is covered by
partitioner and minimize the change to existing code. We could move all
assignment logic of insert records from partitioner to profile generation. I
will modify this part.
--
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]