You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Ismael Juma (Jira)" <ji...@apache.org> on 2020/07/02 06:16:00 UTC
[jira] [Assigned] (KAFKA-10175) MetadataCache::getClusterMetadata
returns null for offline replicas
[ https://issues.apache.org/jira/browse/KAFKA-10175?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ismael Juma reassigned KAFKA-10175:
-----------------------------------
Assignee: Ismael Juma
> MetadataCache::getClusterMetadata 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
> Assignee: Ismael Juma
> Priority: Major
>
> This line in the code always returns null:
> [MetadataCache::getClusterMetadata|https://github.com/apache/kafka/blob/2.6/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)