-
Notifications
You must be signed in to change notification settings - Fork 14.6k
KAFKA-18706: Move ScramPublisher to metadata module #20468
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
base: trunk
Are you sure you want to change the base?
Conversation
Signed-off-by: see-quick <[email protected]>
Signed-off-by: see-quick <[email protected]>
Signed-off-by: see-quick <[email protected]>
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 PR. I left a few comments
metadata/src/main/java/org/apache/kafka/metadata/publisher/ScramPublisher.java
Outdated
Show resolved
Hide resolved
metadata/src/main/java/org/apache/kafka/metadata/publisher/ScramPublisher.java
Outdated
Show resolved
Hide resolved
server-common/src/main/java/org/apache/kafka/server/common/CredentialProvider.java
Outdated
Show resolved
Hide resolved
scramDelta.changes().forEach((mechanism, userChanges) -> { | ||
userChanges.forEach((userName, change) -> { |
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.
In both cases, the body of the block is a single expression, so we can remove the brackets{ }
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.
Also, this could be added to checkstyle, I assume. Updated.
Signed-off-by: see-quick <[email protected]>
Signed-off-by: see-quick <[email protected]>
… admins scramMechanism) Signed-off-by: see-quick <[email protected]>
This PR moves the ScramPublisher class from the server metadata package
to the dedicated metadata module. During refactoring, I found out that I
also need to move the CredentialProvider interface to a more appropriate
location in the server common package because
CredentialProvider
is inthe
server
module, and I can't include that module in themetadata
because I would create a circular dependency, i.e.,
server module ←-------------┐ ↓ (depends on). │
(which would make it circular) metadata module------------┘
So I have moved
CredentialProvider
toserver-common
module, andmetadata
module has alreadyserver-common
and thus it's resolved.