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-8798] Validate Metadata Table Enabled during Archival #12549

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vamsikarnika
Copy link
Contributor

@vamsikarnika vamsikarnika commented Dec 27, 2024

Change Logs

Add a check in HoodieTimelineArchiver to validate if metadata table is enabled for the table.

Impact

Only queries metadata table if it's enabled for the table. Previously we're relying on the presence of the file partitions present in the metadata table. If metadata table is disabled for the stream after a while, we'd still have the partitions present. We need this check to validate if metadata table is enabled for the stream.

Risk level (write none, low medium or high below)

None

Adds extra check to see if metadata table is enabled.

Documentation Update

NA

Contributor's checklist

  • Read through contributor's guide
  • Change Logs and Impact were stated clearly
  • Adequate tests were added if applicable
  • CI passed

@github-actions github-actions bot added the size:S PR with lines of changes in (10, 100] label Dec 27, 2024
@hudi-bot
Copy link

CI report:

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

Comment on lines +298 to +300
if (enableMetadata) {
disableMetadataTable(writeConfig);
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We're disabling metadata table after few commits are made, metadata table partitions should already be presnet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:S PR with lines of changes in (10, 100]
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants