[HUDI-6462] Add Hudi client init callback interface#9108
Merged
nsivabalan merged 3 commits intoapache:masterfrom Jul 4, 2023
Merged
[HUDI-6462] Add Hudi client init callback interface#9108nsivabalan merged 3 commits intoapache:masterfrom
nsivabalan merged 3 commits intoapache:masterfrom
Conversation
3e1eef7 to
3fbcdb8
Compare
nsivabalan
reviewed
Jul 2, 2023
...t/hudi-spark-client/src/test/java/org/apache/hudi/callback/TestChangeConfigInitCallback.java
Outdated
Show resolved
Hide resolved
...ent/hudi-spark-client/src/test/java/org/apache/hudi/callback/TestThrowExceptionCallback.java
Outdated
Show resolved
Hide resolved
7f7dae8 to
9b67bc5
Compare
Collaborator
nsivabalan
approved these changes
Jul 4, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change Logs
This PR adds the interface for Hudi client init callback to run custom logic at the time of initialization of a Hudi client:
At the time of instantiation of the write or table service client, a user may want to do additional processing, such as sending metrics, logsm notification, or adding more properties to the write config. The implementation of client init callback interface allows such logic to be plugged into Hudi.
A new config,
hoodie.client.init.callback.classes, is added for plugging in the callback implementation. The class list is comma-separated.New tests are added and the behavior is expected.
Impact
Adds new functionality of client init callback to run custom logic at the time of initialization of a Hudi client.
Risk level
none
Documentation Update
Will update the Hudi docs.
Contributor's checklist