-
Notifications
You must be signed in to change notification settings - Fork 15.1k
KAFKA-15853: Move TransactionLogConfig and TransactionStateManagerConfig getters out of KafkaConfig #16665
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
Merged
Merged
KAFKA-15853: Move TransactionLogConfig and TransactionStateManagerConfig getters out of KafkaConfig #16665
Changes from 1 commit
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
d643e8c
KAFKA-15853: Refactor TransactionLogConfig and TransactionStateManag…
OmniaGM fef8123
Merge remote-tracking branch 'apache' into KAFKA-15853-txnConfig
OmniaGM 5a4d3d5
address @chia7712's feedback
OmniaGM 2c57877
Merge remote-tracking branch 'apache/trunk' into KAFKA-15853-txnConfig
OmniaGM 801dca0
Merge remote-tracking branch 'apache/trunk' into KAFKA-15853-txnConfig
OmniaGM c754ca1
Merge remote-tracking branch 'apache/trunk' into KAFKA-15853-txnConfig
OmniaGM fbedd41
Merge remote-tracking branch 'apache/trunk' into KAFKA-15853-txnConfig
OmniaGM 1396b7d
Merge remote-tracking branch 'apache/trunk' into KAFKA-15853-txnConfig
OmniaGM File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
address @chia7712's feedback
- Loading branch information
commit 5a4d3d5d0dfbe54a0a71a22a7913370447077bf7
There are no files selected for viewing
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you please add comments to for those dynamic configs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even with the comments, I'm not sure I understand why this is not initialized in the constructor.
Can you explain how this is supposed to work? AbstractConfig instances are kind of read only by default but it looks like we're expecting it to change here. Am I missing something?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we had a discussion for that before (#16458 (comment))
AbstractConfigis read-only, but the sub classKafkaConfigcan update inner configs dynamically (see https://github.com/apache/kafka/blob/trunk/core/src/main/scala/kafka/server/KafkaConfig.scala#L192). Hence, the passedAbstractConfigalways have "up-to-date configs"There is a jira which tries to refactor it (https://issues.apache.org/jira/browse/KAFKA-17001), but I haven't worked on it because that will introduce major changes to scala code.
In short, the basic rules for now are shown below.
AbstractConfigalways have latest configs)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the explanations!