n3nash commented on a change in pull request #2389:
URL: https://github.com/apache/hudi/pull/2389#discussion_r550339031



##########
File path: 
hudi-common/src/main/java/org/apache/hudi/common/util/ClusteringUtils.java
##########
@@ -68,21 +69,27 @@
         .filter(Option::isPresent).map(Option::get);
   }
 
-  public static Option<Pair<HoodieInstant, HoodieClusteringPlan>> 
getClusteringPlan(HoodieTableMetaClient metaClient, HoodieInstant 
requestedReplaceInstant) {
+  public static Option<Pair<HoodieInstant, HoodieClusteringPlan>> 
getClusteringPlan(HoodieTableMetaClient metaClient, HoodieInstant 
pendingReplaceInstant) {
     try {
-      Option<byte[]> content = 
metaClient.getActiveTimeline().getInstantDetails(requestedReplaceInstant);
+      final HoodieInstant requestedInstant;
+      if (!pendingReplaceInstant.isRequested()) {

Review comment:
       @satishkotha Can you add a comment here as to why this is needed ?




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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to