danny0405 commented on code in PR #12789:
URL: https://github.com/apache/hudi/pull/12789#discussion_r1944010807


##########
hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/table/action/commit/BaseSparkCommitActionExecutor.java:
##########
@@ -161,13 +166,14 @@ public HoodieWriteMetadata<HoodieData<WriteStatus>> 
execute(HoodieData<HoodieRec
     HoodieData<HoodieRecord<T>> inputRecordsWithClusteringUpdate = 
clusteringHandleUpdate(inputRecords);
 
     context.setJobStatus(this.getClass().getSimpleName(), "Building workload 
profile:" + config.getTableName());
-    HoodieTimer sourceReadAndIndexTimer = HoodieTimer.start(); // time taken 
from dedup -> tag location -> building workload profile
     WorkloadProfile workloadProfile =

Review Comment:
   The new changes just initializes the timer on the fly and passed in, why not 
just move the timer at line 164 to the begining of the method?



-- 
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]

Reply via email to