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

[MINOR] HoodieBackedTableMetadataWriter and HoodieTableMetadataUtil code cleanup #12841

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

codope
Copy link
Member

@codope codope commented Feb 14, 2025

Change Logs

HoodieBackedTableMetadataWriter and HoodieTableMetadataUtil code cleanup. No logic change.

  • Remove unused methods and reuse some.
  • Simplify metadata writer ctor.
  • try-with-resource for metadata reading at some places.

Impact

Code cleanup

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

low

Documentation Update

Describe any necessary documentation update if there is any new feature, config, or user-facing change. If not, put "none".

  • The config description must be updated if new configs are added or the default value of the configs are changed
  • Any new feature or user-facing change requires updating the Hudi website. Please create a Jira ticket, attach the
    ticket number here and follow the instruction to make
    changes to the website.

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:L PR with lines of changes in (300, 1000] label Feb 14, 2025
Copy link
Contributor

@linliu-code linliu-code left a comment

Choose a reason for hiding this comment

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

CI failures?

Copy link
Contributor

@linliu-code linliu-code left a comment

Choose a reason for hiding this comment

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

I cannot revert my accidental approval; so request changes to fix the CI failures.

@codope
Copy link
Member Author

codope commented Feb 18, 2025

Thanks for the review. I will look into the CI failures. Noting here for my reference:

[ERROR] Tests run: 306, Failures: 3, Errors: 0, Skipped: 18, Time elapsed: 2,255.29 s <<< FAILURE! - in JUnit Vintage
[ERROR] [2] tableType=MERGE_ON_READ(testRLIForDeletesWithHoodieIsDeletedColumn(HoodieTableType))  Time elapsed: 3.876 s  <<< FAILURE!

[ERROR] testRLIWithEmptyPayload()(TestRecordLevelIndex)  Time elapsed: 4.265 s  <<< FAILURE!
org.opentest4j.AssertionFailedError: deleted records should not present in RLI ==> expected: <0> but was: <2>

[ERROR] Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 14.069 s <<< FAILURE! - in org.apache.hudi.client.functional.TestMetadataUtilRLIandSIRecordGeneration
[ERROR] testRecordGenerationAPIsForMOR  Time elapsed: 3.233 s  <<< FAILURE!

@codope codope force-pushed the mdt-writer-code-cleanup branch from 018cca5 to 7bb226b Compare February 20, 2025 03:05
@hudi-bot
Copy link

CI report:

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

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

Successfully merging this pull request may close these issues.

3 participants