nsivabalan opened a new pull request #3900:
URL: https://github.com/apache/hudi/pull/3900
## What is the purpose of the pull request
- In single writer mode with metadata enabled, there are chances an async
table service in data table could concurrently update metadata table along with
another writer. So, this patch adds fix, where in, only regular writes from
data table can trigger table services in metadata table. So, compaction,
clustering, cleaning, rollback and restore in data table can't trigger table
service(compaction, cleaning) in metadata table.
## Brief change log
- Update methods in HoodieTableMetadataWriter has been updated to take in an
extra argument whether a caller is a table service or not.
- commit() in HoodieBackedTableMetadataWriter takes an additional argument
whether to trigger table services or not. compaction, clustering, cleaning,
rollback will set this arg as false while regular writes will set it to true.
## Verify this pull request
- Added test to TestHoodieBackedMetadata to test the change.
## 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.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]