Github user Vile2539 commented on a diff in the pull request:

    https://github.com/apache/curator/pull/205#discussion_r127615903
  
    --- Diff: 
curator-framework/src/test/java/org/apache/curator/framework/imps/TestReconfiguration.java
 ---
    @@ -313,6 +313,38 @@ public void testNewMembers() throws Exception
             }
         }
     
    +    @Test
    +    public void testConfigToConnectionStringNormal() throws Exception
    +    {
    +        String config = 
"server.1=10.1.2.3:2888:3888:participant;10.2.3.4:2181";
    +        String configString = 
EnsembleTracker.configToConnectionString(toQuorumVerifier(config.getBytes()));
    +        Assert.assertEquals("10.2.3.4:2181", configString);
    +    }
    +
    +    @Test
    +    public void testConfigToConnectionStringNoClientAddr() throws Exception
    +    {
    +        String config = "server.1=10.1.2.3:2888:3888:participant;2181";
    +        String configString = 
EnsembleTracker.configToConnectionString(toQuorumVerifier(config.getBytes()));
    +        Assert.assertEquals("10.1.2.3:2181", configString);
    +    }
    +
    +    @Test
    +    public void testConfigToConnectionStringWildcardClientAddr() throws 
Exception
    +    {
    +        String config = 
"server.1=10.1.2.3:2888:3888:participant;0.0.0.0:2181";
    --- End diff --
    
    I seem to be getting a NPE with 3.5.3-beta when attempting to construct the 
TestingZooKeeperServer:
    
        java.lang.NullPointerException
            at 
org.apache.zookeeper.server.quorum.QuorumPeerMain.runFromConfig(QuorumPeerMain.java:158)
            at 
org.apache.curator.test.TestingZooKeeperServer$1.run(TestingZooKeeperServer.java:150)
            at java.lang.Thread.run(Thread.java:745)
    
    It looks like is a known issue, but I don't understand the fix version of 
3.4.0 when it occurred on 3.5.3-beta only - I assume that should be 3.5.4-beta:
    
    https://issues.apache.org/jira/browse/CURATOR-409
    
    I'm not really sure how I should proceed here. Updating the pom would break 
a lot of the tests, and I can't add IPv6 tests without the updated Zookeeper 
version supporting IPv6.


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