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



##########
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:
       can we add some annotation such as "do not have content in inflight 
instant"




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