Skip to content

Difference between isr info from librdkafka vs kafka-list-topic.sh #147

@winbatch

Description

@winbatch

Hi, we've been noticing that we're getting different results between the 2 tools. The difference always seems to be that rdkafka shows fewer in sync than the kafka provided tool (never the reverse). One difference is that rdkafka goes to the brokers for this while the kafka provided tool goes to zookeeper. Could this indicate some sort of mismatch between the 2?

kafka-list-topic.sh --zookeeper ${ZOOKEEPER_CLUSTER}:${ZOOKEEPER_PORT}

topic: ESM_METRICS_NETWORK partition: 0 leader: 1052189105 replicas: 1052189116,1052189105,1052189106 isr: 1052189105,1052189106,1052189116

topic: ESM_METRICS_NETWORK partition: 1 leader: 1052189106 replicas: 1052189117,1052189106,1052189116 isr: 1052189106,1052189117,1052189116

topic: ESM_METRICS_NETWORK partition: 2 leader: 1052189117 replicas: 1052189104,1052189116,1052189117 isr: 1052189117,1052189104,1052189116

topic: ESM_METRICS_NETWORK partition: 3 leader: 1052189105 replicas: 1052189105,1052189117,1052189104 isr: 1052189105,1052189104,1052189117

topic: ESM_METRICS_NETWORK partition: 4 leader: 1052189106 replicas: 1052189106,1052189104,1052189105 isr: 1052189106,1052189104,1052189105

Magnus tool:

rdkafka_example -L -b kafkalog1.messaging.nimbus.masked.com:5757 -t ESM_METRICS_NETWORK

Metadata for ESM_METRICS_NETWORK (from broker -1: kafkalog1.messaging.nimbus.masked.com:5757/bootstrap):

5 brokers:

broker 1052189104 at d146537-023.dc.masked.com:5757

broker 1052189117 at d146537-025.dc.masked.com:5757

broker 1052189105 at d146537-021.dc.masked.com:5757

broker 1052189116 at d146537-024.dc.masked.com:5757

broker 1052189106 at d146537-022.dc.masked.com:5757

1 topics:

topic "ESM_METRICS_NETWORK" with 5 partitions:

partition 0, leader 1052189105, replicas: 1052189116,1052189105,1052189106, isrs: 1052189105,1052189106

partition 1, leader 1052189106, replicas: 1052189117,1052189106,1052189116, isrs: 1052189106

partition 2, leader 1052189117, replicas: 1052189104,1052189116,1052189117, isrs: 1052189117,1052189104

partition 3, leader 1052189105, replicas: 1052189105,1052189117,1052189104, isrs: 1052189105,1052189117

partition 4, leader 1052189106, replicas: 1052189106,1052189104,1052189105, isrs: 1052189106,1052189105

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions