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

Fix to two small bugs in ReconfigTest.testPortChange()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.5.0
    • 3.5.0
    • tests
    • None

    Description

      Fix to two small bugs in ReconfigTest.testPortChange():
      1. the test expected a port change to happen immediately, which is not necessarily
      going to happen. The fix waits a bit and also tries several times.
      2. when a client port changes, the test created a new ZooKeeper handle, but didn't specify a Watcher object, which generated some NullPointerException events when the watcher was triggered.

      Attachments

        1. TestPortChange.patch
          2 kB
          Alexander Shraer

        Activity

          People

            shralex Alexander Shraer
            shralex Alexander Shraer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: