Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-2193

reconfig command completes even if parameter is wrong obviously

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.5.0
    • 3.5.1, 3.6.0
    • leaderElection, server
    • None
    • CentOS7 + Java7

    Description

      Even if reconfig parameter is wrong, it was confirmed to complete.
      refer to the following.

      • Ensemble consists of four nodes
      [zk: vm-101:2181(CONNECTED) 0] config
      server.1=192.168.100.101:2888:3888:participant
      server.2=192.168.100.102:2888:3888:participant
      server.3=192.168.100.103:2888:3888:participant
      server.4=192.168.100.104:2888:3888:participant
      version=100000000
      
      • add node by reconfig command
      [zk: vm-101:2181(CONNECTED) 9] reconfig -add server.5=192.168.100.104:2888:3888:participant;0.0.0.0:2181
      Committed new configuration:
      server.1=192.168.100.101:2888:3888:participant
      server.2=192.168.100.102:2888:3888:participant
      server.3=192.168.100.103:2888:3888:participant
      server.4=192.168.100.104:2888:3888:participant
      server.5=192.168.100.104:2888:3888:participant;0.0.0.0:2181
      version=300000007
      

      server.4 and server.5 of the IP address is a duplicate.

      In this state, reader election will not work properly.
      Besides, it is assumed an ensemble will be undesirable state.
      I think that need a parameter validation when reconfig.

      Attachments

        1. ZOOKEEPER-2193.patch
          2 kB
          Yasuhito Fukuda
        2. ZOOKEEPER-2193-v2.patch
          4 kB
          Yasuhito Fukuda
        3. ZOOKEEPER-2193-v3.patch
          4 kB
          Yasuhito Fukuda
        4. ZOOKEEPER-2193-v4.patch
          4 kB
          Yasuhito Fukuda
        5. ZOOKEEPER-2193-v5.patch
          6 kB
          Yasuhito Fukuda
        6. ZOOKEEPER-2193-v6.patch
          7 kB
          Yasuhito Fukuda
        7. ZOOKEEPER-2193-v7.patch
          7 kB
          Yasuhito Fukuda
        8. ZOOKEEPER-2193-v8.patch
          7 kB
          Yasuhito Fukuda

        Activity

          People

            Yasuhito Fukuda Yasuhito Fukuda
            Yasuhito Fukuda Yasuhito Fukuda
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: