You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "Ethan Guo (Jira)" <ji...@apache.org> on 2022/03/27 03:28:00 UTC

[jira] [Created] (HUDI-3720) Rollback reattempt fails if the commit to roll back is not present

Ethan Guo created HUDI-3720:
-------------------------------

             Summary: Rollback reattempt fails if the commit to roll back is not present
                 Key: HUDI-3720
                 URL: https://issues.apache.org/jira/browse/HUDI-3720
             Project: Apache Hudi
          Issue Type: Bug
          Components: writer-core
            Reporter: Ethan Guo
            Assignee: Ethan Guo
             Fix For: 0.11.0


Let's say C4 (RB_C1) is rolling back C1.  If C4 fails just after the instant files of C1 are deleted and before C4 is transitioned from inflight to complete, next time when C4 rollback action is reattempted, the rollback cannot finish, due to the logic below, since the instant to rollback is not present.

 
{code:java}
BaseHoodieWriteClient

public boolean rollback(final String commitInstantTime, Option<HoodiePendingRollbackInfo> pendingRollbackInfo, boolean skipLocking) throws HoodieRollbackException {

...

if (commitInstantOpt.isPresent()) {
...
} else {
  LOG.warn("Cannot find instant " + commitInstantTime + " in the timeline, for rollback");
  return false;
} {code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)