Github user kevinconaway commented on the issue:

    https://github.com/apache/storm/pull/2182
  
    It succeeds for me locally.  The NPE that you mentioned is actually due to 
another error in the `@Before` method
    
    ```
    test2608(org.apache.storm.kafka.PartitionManagerTest)  Time elapsed: 1.158 
sec  <<< ERROR!
    java.lang.RuntimeException: java.lang.RuntimeException: 
org.apache.zookeeper.KeeperException$NoNodeException: KeeperErrorCode = NoNode 
for /brokers/topics/testTopic/partitions
        at org.apache.zookeeper.KeeperException.create(KeeperException.java:111)
        at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
        at org.apache.zookeeper.ZooKeeper.getChildren(ZooKeeper.java:1590)
        at 
org.apache.curator.framework.imps.GetChildrenBuilderImpl$3.call(GetChildrenBuilderImpl.java:230)
        at 
org.apache.curator.framework.imps.GetChildrenBuilderImpl$3.call(GetChildrenBuilderImpl.java:219)
        at org.apache.curator.RetryLoop.callWithRetry(RetryLoop.java:109)
        at 
org.apache.curator.framework.imps.GetChildrenBuilderImpl.pathInForeground(GetChildrenBuilderImpl.java:216)
        at 
org.apache.curator.framework.imps.GetChildrenBuilderImpl.forPath(GetChildrenBuilderImpl.java:207)
        at 
org.apache.curator.framework.imps.GetChildrenBuilderImpl.forPath(GetChildrenBuilderImpl.java:40)
        at 
org.apache.storm.kafka.DynamicBrokersReader.getNumPartitions(DynamicBrokersReader.java:110)
        at 
org.apache.storm.kafka.DynamicBrokersReader.getBrokerInfo(DynamicBrokersReader.java:83)
        at 
org.apache.storm.kafka.trident.ZkBrokerReader.<init>(ZkBrokerReader.java:44)
        at 
org.apache.storm.kafka.PartitionManagerTest.setup(PartitionManagerTest.java:81)
    
    test2608(org.apache.storm.kafka.PartitionManagerTest)  Time elapsed: 1.159 
sec  <<< ERROR!
    java.lang.NullPointerException: null
        at 
org.apache.storm.kafka.PartitionManagerTest.shutdown(PartitionManagerTest.java:102)
    ```
    
    The `ZkBrokerReader` isn't seeing the topic information in Zookeeper which 
makes me think its a race condition between when the topic is created and then 
`ZkBrokerReader` tries to read the topic / partition info


---
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.
---

Reply via email to