Skip to content

Commit

Permalink
fix test 1
Browse files Browse the repository at this point in the history
  • Loading branch information
kehuum committed Nov 6, 2023
1 parent 68c0625 commit e97abf2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
{
"apiKey": 1005,
"type": "request",
"listeners": ["zkBroker"],
"listeners": ["zkBroker", "broker"],
"name": "LiListFederatedTopicZnodesRequest",
"validVersions": "0-1",
"flexibleVersions": "0+",
Expand Down
7 changes: 4 additions & 3 deletions core/src/main/scala/kafka/server/KafkaApis.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3823,9 +3823,10 @@ class KafkaApis(val requestChannel: RequestChannel,

// only do authorization on cluster level, users are not expected to track this directly via kafka
if (!authHelper.authorize(request.context, DESCRIBE, CLUSTER, CLUSTER_NAME)) {
requestHelper.sendResponseExemptThrottle(request,
LiListFederatedTopicZnodesResponse.prepareResponse(
Errors.CLUSTER_AUTHORIZATION_FAILED, 0, listfederatedTopicZnodesRequest.version())
requestHelper.sendResponseMaybeThrottle(request, requestThrottleMs =>
LiListFederatedTopicZnodesResponse.prepareResponse(
Errors.CLUSTER_AUTHORIZATION_FAILED, requestThrottleMs, listfederatedTopicZnodesRequest.version()
)
)
return
}
Expand Down

0 comments on commit e97abf2

Please sign in to comment.