Skip to content

Conversation

@nsivabalan
Copy link
Contributor

What is the purpose of the pull request

If clustering/compaction rollback failed mid-way, if rollback of a pending clustering/compaction is re-attempted, a new rollback instant will be generated. We would want to retry using the same rollback instant. Main motivation is that, the old failed rollback instant is never cleaned up. And so it could lead to liveness issues w/ metadata table.

Brief change log

  • Fixed rolling back of pending clustering/compaction to re-use rollback instant if present.

Verify this pull request

This change added tests and can be verified as follows:

  • Added TestHoodieSparkMergeOnReadTableInsertUpdateDelete#testRepeatedRollbackOfCompaction
  • Added TestHoodieClientOnCopyOnWriteStorage#testPendingClusteringRollback

Committer checklist

  • Has a corresponding JIRA in PR title & commit

  • Commit message is descriptive of the change

  • CI is green

  • Necessary doc changes done or have another open PR

  • For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.

@nsivabalan nsivabalan requested a review from yihua March 7, 2022 16:17
@nsivabalan nsivabalan added status:triaged Issue has been reviewed and categorized priority:blocker Production down; release blocker labels Mar 7, 2022
Copy link
Contributor

@yihua yihua left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nsivabalan nsivabalan force-pushed the compactClusterReuseRollbackInstant branch from 74ace6c to 7367ebf Compare March 11, 2022 06:23
@hudi-bot
Copy link
Collaborator

CI report:

Bot commands @hudi-bot supports the following commands:
  • @hudi-bot run azure re-run the last Azure build

@nsivabalan nsivabalan merged commit e7bb041 into apache:master Mar 11, 2022
vingov pushed a commit to vingov/hudi that referenced this pull request Apr 3, 2022
stayrascal pushed a commit to stayrascal/hudi that referenced this pull request Apr 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority:blocker Production down; release blocker status:triaged Issue has been reviewed and categorized

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants