From 9960f3d8d2902ae0bb57262a6e530ed219168b2c Mon Sep 17 00:00:00 2001 From: Dana Powers Date: Sat, 16 Jul 2016 11:58:58 -0700 Subject: Add rack to BrokerMetadata - it is always None when using MetadataRequest v0 --- kafka/structs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kafka/structs.py') diff --git a/kafka/structs.py b/kafka/structs.py index 5902930..3188516 100644 --- a/kafka/structs.py +++ b/kafka/structs.py @@ -58,7 +58,7 @@ TopicPartition = namedtuple("TopicPartition", ["topic", "partition"]) BrokerMetadata = namedtuple("BrokerMetadata", - ["nodeId", "host", "port"]) + ["nodeId", "host", "port", "rack"]) PartitionMetadata = namedtuple("PartitionMetadata", ["topic", "partition", "leader", "replicas", "isr", "error"]) -- cgit v1.2.1