zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ZOOKEEPER-2784) Add some limitations on code level for `SID` to avoid configuration problem
Date Thu, 18 May 2017 09:52:05 GMT

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

ASF GitHub Bot commented on ZOOKEEPER-2784:
-------------------------------------------

Github user asdf2014 commented on the issue:

    https://github.com/apache/zookeeper/pull/257
  
    Finally, it works :smile:
    ```bash
         [exec]     [junit] 2017-05-18 09:29:00,770 [myid:] - INFO  [main:ZKTestCase$1@58]
- STARTING testSameSID
         [exec]     [junit] 2017-05-18 09:29:00,770 [myid:] - INFO  [main:PortAssignment@85]
- Assigned port 24753 from range 24686 - 27378.
         [exec]     [junit] 2017-05-18 09:29:00,770 [myid:] - INFO  [main:PortAssignment@85]
- Assigned port 24754 from range 24686 - 27378.
         [exec]     [junit] 2017-05-18 09:29:00,771 [myid:] - INFO  [main:PortAssignment@85]
- Assigned port 24755 from range 24686 - 27378.
         [exec]     [junit] 2017-05-18 09:29:00,771 [myid:] - INFO  [main:PortAssignment@85]
- Assigned port 24756 from range 24686 - 27378.
         [exec]     [junit] 2017-05-18 09:29:00,771 [myid:] - INFO  [main:PortAssignment@85]
- Assigned port 24757 from range 24686 - 27378.
         [exec]     [junit] 2017-05-18 09:29:00,772 [myid:] - INFO  [main:PortAssignment@85]
- Assigned port 24758 from range 24686 - 27378.
         [exec]     [junit] 2017-05-18 09:29:00,772 [myid:] - INFO  [main:PortAssignment@85]
- Assigned port 24759 from range 24686 - 27378.
         [exec]     [junit] 2017-05-18 09:29:00,772 [myid:] - INFO  [main:PortAssignment@85]
- Assigned port 24760 from range 24686 - 27378.
         [exec]     [junit] 2017-05-18 09:29:00,773 [myid:] - INFO  [main:PortAssignment@85]
- Assigned port 24761 from range 24686 - 27378.
         [exec]     [junit] 2017-05-18 09:29:00,773 [myid:] - INFO  [main:JUnit4ZKTestRunner$LoggedInvokeMethod@77]
- RUNNING TEST METHOD testSameSID
         [exec]     [junit] 2017-05-18 09:29:00,773 [myid:] - INFO  [main:ServerCnxnFactory@134]
- Using org.apache.zookeeper.server.NIOServerCnxnFactory as server connection factory
         [exec]     [junit] 2017-05-18 09:29:00,773 [myid:] - INFO  [main:NIOServerCnxnFactory@673]
- Configuring NIO connection handler with 10s sessionless connection timeout, 3 selector thread(s),
48 worker threads, and 64 kB direct buffers.
         [exec]     [junit] 2017-05-18 09:29:00,774 [myid:] - INFO  [main:NIOServerCnxnFactory@686]
- binding to port /127.0.0.1:24760
         [exec]     [junit] 2017-05-18 09:29:00,775 [myid:] - INFO  [main:CnxManagerTest@392]
- Creating socket connection, host: 127.0.0.1, port: 24761
         [exec]     [junit] 2017-05-18 09:29:00,775 [myid:] - INFO  [QuorumPeerListener:QuorumCnxManager$Listener@636]
- My election bind port: /127.0.0.1:24761
         [exec]     [junit] 2017-05-18 09:29:00,775 [myid:] - INFO  [/127.0.0.1:24761:QuorumCnxManager$Listener@642]
- Received connection request /127.0.0.1:54430
         [exec]     [junit] 2017-05-18 09:29:00,775 [myid:] - WARN  [main:QuorumCnxManager@342]
- Exception reading or writing challenge: java.io.EOFException
         [exec]     [junit] 2017-05-18 09:29:00,776 [myid:] - ERROR [/127.0.0.1:24761:QuorumCnxManager$Listener@664]
- Appearing duplicate SID: 2
    ```


> Add some limitations on code level for `SID` to avoid configuration problem
> ---------------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-2784
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2784
>             Project: ZooKeeper
>          Issue Type: Improvement
>          Components: quorum
>    Affects Versions: 3.5.2
>            Reporter: Benedict Jin
>             Fix For: 3.5.4
>
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> As so far, `QuorumCnxManager#receiveConnection` cannot find out the same `SID` problem,
then the Zookeeper cluster will start successfully. But the cluster is not health, and it
will throw some problem like `not synchronized`. So, i thought we should add some limitations
on code level for `SID` to find those configuration problem more early.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message