prashantwason commented on code in PR #8758:
URL: https://github.com/apache/hudi/pull/8758#discussion_r1229086386


##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/table/action/index/RunIndexActionExecutor.java:
##########
@@ -374,11 +371,15 @@ public void run() {
               case HoodieTimeline.COMMIT_ACTION:
               case HoodieTimeline.DELTA_COMMIT_ACTION:
               case HoodieTimeline.REPLACE_COMMIT_ACTION:
-                HoodieCommitMetadata commitMetadata = 
HoodieCommitMetadata.fromBytes(
-                    
table.getActiveTimeline().getInstantDetails(instant).get(), 
HoodieCommitMetadata.class);
+                // Indexes may require WriteStatus which cannot be read from 
the HoodieCommitMetadata. So if the original commit has not
+                // written to the MDT then we cannot sync that commit here
+                // TODO: maybe the above check for timeout should be based on 
HB rather than busy loop forever.
+                throw new HoodieIndexException(String.format("Cannot sync 
instant to MDT: %s", instant));
+                //HoodieCommitMetadata commitMetadata = 
HoodieCommitMetadata.fromBytes(

Review Comment:
   https://issues.apache.org/jira/browse/HUDI-6372



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