Vikas Singh created KAFKA-10175:
-----------------------------------
Summary: MetadataCache::getCluster returns null for offline
replicas
Key: KAFKA-10175
URL: https://issues.apache.org/jira/browse/KAFKA-10175
Project: Kafka
Issue Type: Bug
Reporter: Vikas Singh
This line in the code always returns null:
https://github.com/apache/kafka/blob/trunk/core/src/main/scala/kafka/server/MetadataCache.scala#L272
The reason is that the `map(node)` part uses `aliveNodes` to create `Node`
object otherwise default to `null`. Offline replicas thus end up always as
null.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)