Skip to content

Conversation

@nsivabalan
Copy link
Contributor

@nsivabalan nsivabalan commented Mar 3, 2022

What is the purpose of the pull request

PopulateMetafields value for metadata table will never get updated once metadata table get initialized for the first time. With 0.11, we are making populate meta fields as false for metadata table which was true by default in 0.10.0. So fixing the update in this patch by re-initializing the metaclient if property value has changed. Every other property is statically configured except this config which user can override. hence had to fix just one property.

Brief change log

Add re-intialization of metadata table metaclient and table config if populate meta fields have changed.

Verify this pull requests

This change added tests and can be verified as follows:

  • TestHoodieBackedMetadata.testUpdationOfPopulateMetaFieldsForMetadataTable

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 nsivabalan added the priority:blocker Production down; release blocker label Mar 3, 2022
@nsivabalan nsivabalan changed the title [HUDI-3544] Fixing populateMeta fields update to metadata table [HUDI-3544] Fixing "populate meta fields" update to metadata table Mar 3, 2022
@codope codope force-pushed the metadataUpdateConfigsAfterBootstrap branch from 9718564 to 91b3cb2 Compare March 3, 2022 09:10
@hudi-bot
Copy link
Collaborator

hudi-bot commented Mar 3, 2022

CI report:

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

Copy link
Member

@codope codope left a comment

Choose a reason for hiding this comment

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

LGTM! Just fixed a checkstyle violation.

@codope codope merged commit 876a891 into apache:master Mar 3, 2022
@nsivabalan
Copy link
Contributor Author

thanks @codope for fixing it.

@nsivabalan nsivabalan added the status:triaged Issue has been reviewed and categorized label Mar 8, 2022
vingov pushed a commit to vingov/hudi that referenced this pull request Apr 3, 2022
…pache#4941)

* Fixing populateMeta fields update to metadata table

* Fix checkstyle violations

Co-authored-by: Sagar Sumit <[email protected]>
stayrascal pushed a commit to stayrascal/hudi that referenced this pull request Apr 12, 2022
…pache#4941)

* Fixing populateMeta fields update to metadata table

* Fix checkstyle violations

Co-authored-by: Sagar Sumit <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority:blocker Production down; release blocker status:triaged Issue has been reviewed and categorized

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants