apache / hudi

Upserts, Deletes And Incremental Processing on Big Data.
https://hudi.apache.org/
Apache License 2.0
5.45k stars 2.43k forks source link

[HUDI-8395] Fix metaClient handling when running upgrade or downgrade #12224

Closed codope closed 6 days ago

codope commented 1 week ago

Change Logs

After debugging, I found that upgrade path is invoked but the metaClient is not reloaded after that. Simply reloading in tryUpgrade is not enough because we call that in a lambda. So, this PR fixes the issue as follows:

Tested manually by running the same steps as mentioned in HUDI-8395.

Impact

Refactor metaClient handling during upgrade/downgrade, and implement fallback in JSON deserialization.

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

medium

Documentation Update

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

Contributor's checklist

hudi-bot commented 1 week ago

CI report:

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