Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HUDI-3556] Re-use rollback instant for rolling back of clustering and compaction if rollback failed mid-way #4971

Merged

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.

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

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants