nsivabalan commented on code in PR #9553:
URL: https://github.com/apache/hudi/pull/9553#discussion_r1309182532


##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/metadata/HoodieBackedTableMetadataWriter.java:
##########
@@ -1023,14 +1023,19 @@ public void update(HoodieRollbackMetadata 
rollbackMetadata, String instantTime)
 
       validateRollback(commitToRollbackInstantTime, compactionInstant, 
deltacommitsSinceCompaction);
 
-      // lets apply a delta commit with DT's rb instant(with special suffix) 
containing following records:
+      // lets apply a delta commit with DT's rb instant containing following 
records:
       // a. any log files as part of RB commit metadata that was added
       // b. log files added by the commit in DT being rolled back. By rolled 
back, we mean, a rollback block will be added and does not mean it will be 
deleted.
       // both above list should only be added to FILES partition.
-
-      String rollbackInstantTime = createRollbackTimestamp(instantTime);
+      if (deltacommitsSinceCompaction.containsInstant(instantTime)) {
+        LOG.info("Rolling back MDT deltacommit for " + instantTime + ", since 
previous attempt failed");
+        if (!getWriteClient().rollback(instantTime)) {

Review Comment:
   yeah, this was a miss. we can remove this explicit rollbacks since any delta 
commit to MDT will be handled within commitInternal in 
HoodieBackedTableMetadataWriter. 
https://github.com/apache/hudi/blob/759907ebb170cd28b2c8ef8df013be5fd3573fcf/hudi-client/hudi-client-common/src/main/java/org/apache/hudi/metadata/HoodieBackedTableMetadataWriter.java#L1101
 



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