ZooKeeper
  1. ZooKeeper
  2. ZOOKEEPER-973

bind() could fail on Leader because it does not setReuseAddress on its ServerSocket

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 3.3.2
    • Fix Version/s: 3.4.3, 3.3.5, 3.5.0
    • Component/s: server
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      setReuseAddress(true) should be used below.

      Leader(QuorumPeer self,LeaderZooKeeperServer zk) throws IOException {
      this.self = self;
      try

      { ss = new ServerSocket(self.getQuorumAddress().getPort()); }

      catch (BindException e)

      { LOG.error("Couldn't bind to port " + self.getQuorumAddress().getPort(), e); throw e; }

      this.zk=zk;
      }

      1. ZOOKEEPER-973.patch
        1 kB
        Harsh J
      2. ZOOKEEPER-973.patch
        1 kB
        Harsh J

        Activity

        Vishal Kher created issue -
        Benjamin Reed made changes -
        Field Original Value New Value
        Fix Version/s 3.4.0 [ 12314469 ]
        Fix Version/s 3.3.3 [ 12315482 ]
        Mahadev konar made changes -
        Fix Version/s 3.5.0 [ 12316644 ]
        Fix Version/s 3.4.0 [ 12314469 ]
        Harsh J made changes -
        Assignee Harsh J [ qwertymaniac ]
        Harsh J made changes -
        Attachment ZOOKEEPER-973.patch [ 12509538 ]
        Harsh J made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Patrick Hunt made changes -
        Status Patch Available [ 10002 ] Open [ 1 ]
        Harsh J made changes -
        Attachment ZOOKEEPER-973.patch [ 12509657 ]
        Harsh J made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Patrick Hunt made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Hadoop Flags Reviewed [ 10343 ]
        Fix Version/s 3.3.5 [ 12319081 ]
        Fix Version/s 3.4.3 [ 12319288 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Harsh J
            Reporter:
            Vishal Kher
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development