We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f1878d commit e48cbcfCopy full SHA for e48cbcf
core/src/main/scala/kafka/server/KafkaApis.scala
@@ -789,11 +789,7 @@ class KafkaApis(val requestChannel: RequestChannel,
789
val known = new util.ArrayList[ListOffsetsTopic]()
790
val unknown = new util.ArrayList[ListOffsetsTopicResponse]()
791
offsetRequest.topics.asScala.foreach { topic =>
792
- val topicName = if (topic.topicId() != null && topic.topicId() != Uuid.ZERO_UUID) {
793
- metadataCache.getTopicName(topic.topicId()).orElse(null)
794
- } else {
795
- topic.name()
796
- }
+ val topicName = metadataCache.getTopicName(topic.topicId()).orElse(null)
797
798
if (topicName == null) {
799
// Topic ID cannot be resolved to a name
0 commit comments