zhuanshenbsj1 commented on code in PR #8394:
URL: https://github.com/apache/hudi/pull/8394#discussion_r1172031561


##########
hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/client/SparkRDDWriteClient.java:
##########
@@ -320,7 +322,9 @@ protected HoodieWriteMetadata<JavaRDD<WriteStatus>> 
logCompact(String logCompact
   public HoodieWriteMetadata<JavaRDD<WriteStatus>> cluster(String 
clusteringInstant, boolean shouldComplete) {
     HoodieSparkTable<T> table = HoodieSparkTable.create(config, context);
     preWrite(clusteringInstant, WriteOperationType.CLUSTER, 
table.getMetaClient());
-    return tableServiceClient.cluster(clusteringInstant, shouldComplete);
+    HoodieWriteMetadata<JavaRDD<WriteStatus>> clusteringMetadata = 
tableServiceClient.cluster(clusteringInstant, shouldComplete);
+    autoCleanOnCommit();
+    return clusteringMetadata;

Review Comment:
   Removed Spark related modifications and migrated to a new PR. 
https://github.com/apache/hudi/pull/8505



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