-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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-18472: Remove MetadataSupport #18483
Conversation
# Conflicts: # core/src/main/scala/kafka/server/KafkaApis.scala
# Conflicts: # core/src/main/scala/kafka/server/KafkaApis.scala
@m1a2st please fix conflicts |
# Conflicts: # core/src/main/scala/kafka/server/KafkaApis.scala
new DescribeClientQuotasResponse(result) | ||
}) | ||
} | ||
val result = metadataCache.asInstanceOf[KRaftMetadataCache]describeClientQuotas(describeClientQuotasRequest.data()) |
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.
Do we have a JIRA for removing this cast? There should be no reason to do casts anymore since the only implementation we have is this one.
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.
There is a Jira to remove zkMetadataCache, I think we should also addressed it in this Jira
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.
Sounds good.
@m1a2st please fix the conflicts |
# Conflicts: # core/src/test/scala/unit/kafka/server/KafkaApisTest.scala
I believe we can eliminate |
It make sense to me, I will change to remove all |
@@ -2665,7 +2632,6 @@ class KafkaApis(val requestChannel: RequestChannel, | |||
requestHelper.sendMaybeThrottle(request, subscriptionRequest.getErrorResponse(Errors.INVALID_REQUEST.exception)) | |||
} | |||
case None => | |||
info("Received get telemetry client request for zookeeper based cluster") |
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 revert this change as it is included by #18550?
@@ -2682,7 +2648,6 @@ class KafkaApis(val requestChannel: RequestChannel, | |||
requestHelper.sendMaybeThrottle(request, pushTelemetryRequest.getErrorResponse(Errors.INVALID_REQUEST.exception)) | |||
} | |||
case None => | |||
info("Received push telemetry client request for zookeeper based cluster") |
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.
ditto
// but we should handle it gracefully. | ||
info("Received list client metrics resources request for zookeeper based cluster") |
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.
ditto
@@ -3120,7 +3083,6 @@ class KafkaApis(val requestChannel: RequestChannel, | |||
case Some(manager) => manager | |||
case None => | |||
// The API is not supported when the SharePartitionManager is not defined on the broker | |||
info("Received share acknowledge request for zookeeper based cluster") |
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.
ditto
@@ -2800,7 +2764,6 @@ class KafkaApis(val requestChannel: RequestChannel, | |||
case Some(manager) => manager | |||
case None => | |||
// The API is not supported when the SharePartitionManager is not defined on the broker | |||
info("Received share fetch request for zookeeper based cluster") |
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.
ditto
# Conflicts: # core/src/main/scala/kafka/server/KafkaApis.scala
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.
LGTM, thanks.
new DescribeClientQuotasResponse(result) | ||
}) | ||
} | ||
val result = metadataCache.asInstanceOf[KRaftMetadataCache].describeClientQuotas(describeClientQuotasRequest.data()) |
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.
A note for someone who sees this - there is a plan to address these casts separately. My suggestion elsewhere is to simply move the relevant methods to the base interface and then the cast is no longer needed.
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 @ijuma reminder, cc @FrankYang0529
Reviewers: Ismael Juma <[email protected]>, Chia-Ping Tsai <[email protected]>
Reviewers: Ismael Juma <[email protected]>, Chia-Ping Tsai <[email protected]>
Jira: https://issues.apache.org/jira/browse/KAFKA-18472
Committer Checklist (excluded from commit message)