[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-1045?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15301391#comment-15301391
 ] 

Rakesh R commented on ZOOKEEPER-1045:
-------------------------------------

Thanks [~phunt], [~hanm] for the help in testing and reporting issues.

Sorry for the delay. I suspect few cases from the logs:

*Case-1)* {code}
Multiple copies of resource named 
'schema/ou=schema/cn=apachedns/ou=objectclasses/m-oid=1.3.6.1.4.1.18060.0.4.2.3.9.ldif'
 located on classpath at urls
{code}
Could you please check the multiple copies of 
m-oid=1.3.6.1.4.1.18060.0.4.2.3.9.ldif in the test.dir?
{{(build_dir_path)/partitions/schema/ou=schema/cn=apachedns/ou=objectclasses/m-oid=1.3.6.1.4.1.18060.0.4.2.3.9.ldif}}.
 Could you tell me your maven version, am suspecting the dependency with maven 
version. I could see a similar case DIRSERVER-2066.

*Case-2)* I'm wondering how the socket creation is working in Zab1_0Test.java 
test class. I have used the same approach used in this test for creating the 
socket {{#getSocketPair()}}
{code} 
java.net.SocketException: Invalid argument
        at java.net.PlainSocketImpl.socketConnect(Native Method)
{code}

{code}
Zab1_0Test.java
    static Socket[] getSocketPair() throws IOException {
        ServerSocket ss = new ServerSocket();
        ss.bind(null);
        InetSocketAddress endPoint = (InetSocketAddress) 
ss.getLocalSocketAddress();
        Socket s = new Socket(endPoint.getAddress(), endPoint.getPort());
        return new Socket[] { s, ss.accept() };
    }

QuorumCnxManagerTest.java
    private static Socket getSocketPair() throws IOException {
        ServerSocket ss = new ServerSocket();
        ss.bind(null);
        InetSocketAddress endPoint = (InetSocketAddress) ss
                .getLocalSocketAddress();
        Socket s = new Socket(endPoint.getAddress(), endPoint.getPort() + 1);
        s.setSoTimeout(5000);
        return s;
    }
{code}
Could you please set {{-Djava.net.preferIPv4Stack=true}} and try once.

> Quorum Peer mutual authentication
> ---------------------------------
>
>                 Key: ZOOKEEPER-1045
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1045
>             Project: ZooKeeper
>          Issue Type: New Feature
>          Components: server
>            Reporter: Eugene Koontz
>            Assignee: Rakesh R
>            Priority: Critical
>         Attachments: 0001-ZOOKEEPER-1045-br-3-4.patch, 
> 1045_failing_phunt.tar.gz, ZK-1045-test-case-failure-logs.zip, 
> ZOOKEEPER-1045-00.patch, ZOOKEEPER-1045-Rolling Upgrade Design Proposal.pdf, 
> ZOOKEEPER-1045-br-3-4.patch
>
>
> ZOOKEEPER-938 addresses mutual authentication between clients and servers. 
> This bug, on the other hand, is for authentication among quorum peers. 
> Hopefully much of the work done on SASL integration with Zookeeper for 
> ZOOKEEPER-938 can be used as a foundation for this enhancement.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to