Github user abhishekagarwal87 commented on the pull request:
https://github.com/apache/storm/pull/1132#issuecomment-187592967
https://github.com/apache/storm/blob/master/external/storm-kafka/src/jvm/org/apache/storm/kafka/KafkaUtils.java#L250
You can add the partitions to GlobalPartitionInfo even if leader is -1.
That way, it is ensured that all tasks have the same view of partitions.
PartitionManager for unassigned leaders can be just inactive and do nothing.
FYI That may make the changes a bit more complex.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---