Skip to content
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

KAFKA-18399: Remove ZooKeeper from KafkaApis (3/N): USER_SCRAM_CREDENTIALS #18456

Merged
merged 1 commit into from
Jan 12, 2025

Conversation

frankvicky
Copy link
Collaborator

JIRA: KAFKA-18399
This is a part of KAFKA-18399 and it's focus on clean up ALTER_USER_SCRAM_CREDENTIALS and DESCRIBE_USER_SCRAM_CREDENTIALS

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

@github-actions github-actions bot added triage PRs from the community core Kafka Broker small Small PRs labels Jan 9, 2025
@frankvicky frankvicky changed the title KAFKA-18399: Remove ZooKeeper from KafkaApis (6/N): USER_SCRAM_CREDENTIALS KAFKA-18399: Remove ZooKeeper from KafkaApis (7/N): USER_SCRAM_CREDENTIALS Jan 9, 2025
@@ -3370,10 +3370,7 @@ class KafkaApis(val requestChannel: RequestChannel,
} else {
metadataSupport match {
case ZkSupport(adminManager, controller, zkClient, forwardingManager, metadataCache, _) =>
Copy link
Member

Choose a reason for hiding this comment

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

If we will eventually remove zk related code, probably we can use case default here and avoid to use ZkSupport.

Copy link
Member

@FrankYang0529 FrankYang0529 left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for the patch.

Copy link
Collaborator

@TaiJuWu TaiJuWu left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

@github-actions github-actions bot removed the triage PRs from the community label Jan 10, 2025
requestHelper.sendResponseMaybeThrottle(request, requestThrottleMs =>
alterUserScramCredentialsRequest.getErrorResponse(requestThrottleMs, Errors.CLUSTER_AUTHORIZATION_FAILED.exception))
}
throw KafkaApis.shouldAlwaysForward(request)
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

@frankvicky Could you please refactor maybeForwardToController to forwardToController? We will remove all zk-releated handlers, so it is fine to do refactor in this PR. With that change, the handle handleAlterUserScramCredentialsRequest can be removed directly

Copy link
Collaborator

@TaiJuWu TaiJuWu left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for this fix.

@frankvicky frankvicky force-pushed the KAFKA-18399 branch 2 times, most recently from dda5314 to 99fe806 Compare January 11, 2025 17:15
@github-actions github-actions bot removed the small Small PRs label Jan 11, 2025
@@ -3173,37 +3161,16 @@ class KafkaApis(val requestChannel: RequestChannel,
describeUserScramCredentialsRequest.getErrorResponse(requestThrottleMs, Errors.CLUSTER_AUTHORIZATION_FAILED.exception))
} else {
metadataSupport match {
Copy link
Member

Choose a reason for hiding this comment

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

Could you please change the type of metadataSupport to RaftSupport?

Copy link
Member

Choose a reason for hiding this comment

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

oh, that will be handled by #18483. please ignore above comment

@chia7712 chia7712 merged commit 81b1508 into apache:trunk Jan 12, 2025
9 checks passed
chia7712 pushed a commit that referenced this pull request Jan 12, 2025
@chia7712 chia7712 changed the title KAFKA-18399: Remove ZooKeeper from KafkaApis (7/N): USER_SCRAM_CREDENTIALS KAFKA-18399: Remove ZooKeeper from KafkaApis (3/N): USER_SCRAM_CREDENTIALS Jan 12, 2025
pranavt84 pushed a commit to pranavt84/kafka that referenced this pull request Jan 27, 2025
airlock-confluentinc bot pushed a commit to confluentinc/kafka that referenced this pull request Jan 27, 2025
manoj-mathivanan pushed a commit to manoj-mathivanan/kafka that referenced this pull request Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants