Skip to content

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

Merged
chia7712 merged 1 commit intoapache:trunkfrom
frankvicky:KAFKA-18399
Jan 12, 2025
Merged

KAFKA-18399: Remove ZooKeeper from KafkaApis (3/N): USER_SCRAM_CREDENTIALS#18456
chia7712 merged 1 commit intoapache:trunkfrom
frankvicky:KAFKA-18399

Conversation

@frankvicky
Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
chia7712 pushed a commit that referenced this pull request Jan 12, 2025
…IALS (#18456)

Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
@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
…IALS (apache#18456)

Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
airlock-confluentinc Bot pushed a commit to confluentinc/kafka that referenced this pull request Jan 27, 2025
…IALS (apache#18456)

Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
manoj-mathivanan pushed a commit to manoj-mathivanan/kafka that referenced this pull request Feb 19, 2025
…IALS (apache#18456)

Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
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