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-3799] Fixing not deleting empty instants w/o archiving #5261

Merged
merged 2 commits into from
Apr 12, 2022

Conversation

nsivabalan
Copy link
Contributor

What is the purpose of the pull request

In Local and hdfs file schemes, there could be partial files created, where in the commit meta files could be empty. We put in a fix sometime back to delete these entries during archival as it will hinder the archival and will fail the pipeline. But we wanted to maintain the entry for book keeping purposes. So, in this patch, we are not deleting such instances, but creating an instant w/o any plan and serializing it to archived folder. So, that we will know exactly what all entries have been archived.

Brief change log

  • Fixed timeline archiver to archive even empty instants instead of deleting them.

Verify this pull request

This change added tests and can be verified as follows:

  • TestTimelineArchiver.testArchiveCompletedRollbackAndClean

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
Copy link
Contributor Author

@yihua : have addressed your comments and fixed test failures.

@hudi-bot
Copy link

CI report:

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

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 👍

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