[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Patrick Hunt updated ZOOKEEPER-127:
-----------------------------------

    Status: Open  (was: Patch Available)

Both the fle and le tests are failing on my machine:

    [junit] Running org.apache.zookeeper.test.FLETest
    [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 62.084 sec
    [junit] Test org.apache.zookeeper.test.FLETest FAILED
    [junit] Running org.apache.zookeeper.test.LETest
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.397 sec
    [junit] Test org.apache.zookeeper.test.LETest FAILED

------------- Standard Error -----------------
Exception in thread "Thread-23" java.lang.NullPointerException
        at org.apache.zookeeper.test.FLETest$LEThread.run(FLETest.java:55)
Exception in thread "Thread-1" java.lang.NullPointerException
        at org.apache.zookeeper.test.FLETest$LEThread.run(FLETest.java:55)
Exception in thread "Thread-13" java.lang.NullPointerException
        at org.apache.zookeeper.test.FLETest$LEThread.run(FLETest.java:55)
Exception in thread "Thread-3" java.lang.NullPointerException
        at org.apache.zookeeper.test.FLETest$LEThread.run(FLETest.java:55)
------------- ---------------- ---------------

Testcase: testLE took 62.064 sec
        FAILED
Threads didn't join
junit.framework.AssertionFailedError: Threads didn't join
        at org.apache.zookeeper.test.FLETest.testLE(FLETest.java:121)




LETEST

Testcase: testLE took 0.377 sec
        Caused an ERROR
Address already in use
java.net.BindException: Address already in use
        at sun.nio.ch.Net.bind(Native Method)
        at 
sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119)
        at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
        at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:52)
        at 
org.apache.zookeeper.server.NIOServerCnxn$Factory.<init>(NIOServerCnxn.java:89)
        at 
org.apache.zookeeper.server.quorum.QuorumPeer.<init>(QuorumPeer.java:327)
        at org.apache.zookeeper.test.LETest.testLE(LETest.java:105)


> Use of non-standard election ports in config breaks services
> ------------------------------------------------------------
>
>                 Key: ZOOKEEPER-127
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-127
>             Project: Zookeeper
>          Issue Type: Bug
>          Components: quorum
>    Affects Versions: 3.0.0
>            Reporter: Mark Harwood
>            Assignee: Flavio Paiva Junqueira
>            Priority: Minor
>             Fix For: 3.0.0
>
>         Attachments: mhPortChanges.patch, ZOOKEEPER-127.patch, 
> ZOOKEEPER-127.patch, ZOOKEEPER-127.patch, ZOOKEEPER-127.patch, 
> ZOOKEEPER-127.patch
>
>
> In QuorumCnxManager.toSend there is a call to create a connection as follows:
>     channel = SocketChannel.open(new InetSocketAddress(addr, port));
> Unfortunately "addr" is the ip address of a remote server while "port" is the 
> electionPort of *this* server.
> As an example, given this configuration (taken from my zoo.cfg)
>   server.1=10.20.9.254:2881
>   server.2=10.20.9.9:2882
>   server.3=10.20.9.254:2883
> Server 3 was observed trying to make a connection to host 10.20.9.9 on port 
> 2883 and obviously failing.
> In tests where all machines use the same electionPort this bug would not 
> manifest itself.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to