Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5.1, 1.6.0
    • Fix Version/s: 1.5.2, 1.6.1, 1.7.0
    • Component/s: test
    • Labels:
      None

      Description

      In ZooLockTest, we create a ZooKeeper instance and then use it without waiting for it to be connected. Because ZooKeeper uses an asynchronous connection, this can cause spurious failures in ZooLockTest.

      Create a simple Watcher that we can use to know when we're connected.

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        19h 6m 1 Josh Elser 24/Jun/14 18:40
        Josh Elser made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        ASF subversion and git services made changes -
        Time Spent 20m [ 1200 ] 0.5h [ 1800 ]
        Worklog Id 16444 [ 16444 ]
        ASF subversion and git services logged work - 24/Jun/14 01:26
        • Time Spent:
          10m
           
          Commit 65782b505478a37d01468064c6bcd5eb5cd75f88 in accumulo's branch refs/heads/master from [~elserj]
          [ https://git-wip-us.apache.org/repos/asf?p=accumulo.git;h=65782b5 ]

          ACCUMULO-2940 Add a Watcher to not use ZooKeeper before we're connected.

          ZooKeeper connection is asynchronous, so we need to set a Watcher to know
          when the client is actually connected. We should really be checking for connections
          after any exception, but we hopefully won't get disconnected mid-test.
        ASF subversion and git services made changes -
        Time Spent 10m [ 600 ] 20m [ 1200 ]
        Worklog Id 16443 [ 16443 ]
        ASF subversion and git services logged work - 24/Jun/14 01:26
        • Time Spent:
          10m
           
          Commit 65782b505478a37d01468064c6bcd5eb5cd75f88 in accumulo's branch refs/heads/1.6.1-SNAPSHOT from [~elserj]
          [ https://git-wip-us.apache.org/repos/asf?p=accumulo.git;h=65782b5 ]

          ACCUMULO-2940 Add a Watcher to not use ZooKeeper before we're connected.

          ZooKeeper connection is asynchronous, so we need to set a Watcher to know
          when the client is actually connected. We should really be checking for connections
          after any exception, but we hopefully won't get disconnected mid-test.
        ASF subversion and git services made changes -
        Field Original Value New Value
        Remaining Estimate 0h [ 0 ]
        Time Spent 10m [ 600 ]
        Worklog Id 16442 [ 16442 ]
        ASF subversion and git services logged work - 24/Jun/14 01:26
        • Time Spent:
          10m
           
          Commit 65782b505478a37d01468064c6bcd5eb5cd75f88 in accumulo's branch refs/heads/1.5.2-SNAPSHOT from [~elserj]
          [ https://git-wip-us.apache.org/repos/asf?p=accumulo.git;h=65782b5 ]

          ACCUMULO-2940 Add a Watcher to not use ZooKeeper before we're connected.

          ZooKeeper connection is asynchronous, so we need to set a Watcher to know
          when the client is actually connected. We should really be checking for connections
          after any exception, but we hopefully won't get disconnected mid-test.
        Josh Elser created issue -

          People

          • Assignee:
            Josh Elser
            Reporter:
            Josh Elser
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0h
              0h
              Logged:
              Time Spent - 0.5h
              0.5h

                Development