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


##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/sink/clustering/ClusteringOperator.java:
##########
@@ -233,6 +233,7 @@ private void doClustering(String instantTime, 
ClusteringPlanEvent event) throws
 
     List<WriteStatus> writeStatuses = 
this.writerHelper.getWriteStatuses(this.taskID);
     collector.collect(new ClusteringCommitEvent(instantTime, writeStatuses, 
this.taskID));
+    this.writerHelper = null;
   }
 

Review Comment:
   Is there any possibility we write some tests, say when there are multiple 
clustering plan to execute.



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