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.
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.
There is a Jira to remove zkMetadataCache, I think we should also addressed it in this Jira
|
@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 |
| 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.
Could you please revert this change as it is included by #18550?
| requestHelper.sendMaybeThrottle(request, pushTelemetryRequest.getErrorResponse(Errors.INVALID_REQUEST.exception)) | ||
| } | ||
| case None => | ||
| info("Received push telemetry client request for zookeeper based cluster") |
| // This should never happen as ZK based cluster calls should get rejected earlier itself, | ||
| // This should never happen as based cluster calls should get rejected earlier itself, | ||
| // but we should handle it gracefully. | ||
| info("Received list client metrics resources request for zookeeper based cluster") |
| 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") |
| 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") |
# 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.
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.
Thanks for @ijuma reminder, cc @FrankYang0529
Reviewers: Ismael Juma <ismael@juma.me.uk>, Chia-Ping Tsai <chia7712@gmail.com>
Reviewers: Ismael Juma <ismael@juma.me.uk>, Chia-Ping Tsai <chia7712@gmail.com>
Reviewers: Ismael Juma <ismael@juma.me.uk>, Chia-Ping Tsai <chia7712@gmail.com>
Reviewers: Ismael Juma <ismael@juma.me.uk>, Chia-Ping Tsai <chia7712@gmail.com>
Jira: https://issues.apache.org/jira/browse/KAFKA-18472
Committer Checklist (excluded from commit message)