ZooKeeper
  1. ZooKeeper
  2. ZOOKEEPER-874

FileTxnSnapLog.restore does not call listener

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 3.3.1
    • Fix Version/s: 3.4.0
    • Component/s: leaderElection
    • Labels:
      None
    • Tags:
      leader election

      Description

      FileTxnSnapLog.restore() does not call listener passed as parameter. The result is that the commitLogs list is empty. When a follower connects to the leader, the leader is forced to send a snapshot to the follower instead of a couple of requests and commits.

        Issue Links

          Activity

          Hide
          Flavio Junqueira added a comment -

          The patch is indeed trivial, but I was wondering if we could write a unit test to verify that it is effective in the case you have identified, Diogo.

          Show
          Flavio Junqueira added a comment - The patch is indeed trivial, but I was wondering if we could write a unit test to verify that it is effective in the case you have identified, Diogo.
          Hide
          Diogo added a comment -

          The same as before but now with correct indentation and filename.

          Show
          Diogo added a comment - The same as before but now with correct indentation and filename.
          Hide
          Hadoop QA added a comment -

          -1 overall. Here are the results of testing the latest attachment
          http://issues.apache.org/jira/secure/attachment/12455142/ZOOKEEPER-874.patch
          against trunk revision 1033155.

          +1 @author. The patch does not contain any @author tags.

          -1 tests included. The patch doesn't appear to include any new or modified tests.
          Please justify why no new tests are needed for this patch.
          Also please list what manual steps were performed to verify this patch.

          +1 javadoc. The javadoc tool did not generate any warning messages.

          +1 javac. The applied patch does not increase the total number of javac compiler warnings.

          +1 findbugs. The patch does not introduce any new Findbugs warnings.

          +1 release audit. The applied patch does not increase the total number of release audit warnings.

          -1 core tests. The patch failed core unit tests.

          +1 contrib tests. The patch passed contrib unit tests.

          Test results: https://hudson.apache.org/hudson/job/PreCommit-ZOOKEEPER-Build/11//testReport/
          Findbugs warnings: https://hudson.apache.org/hudson/job/PreCommit-ZOOKEEPER-Build/11//artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
          Console output: https://hudson.apache.org/hudson/job/PreCommit-ZOOKEEPER-Build/11//console

          This message is automatically generated.

          Show
          Hadoop QA added a comment - -1 overall. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12455142/ZOOKEEPER-874.patch against trunk revision 1033155. +1 @author. The patch does not contain any @author tags. -1 tests included. The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch. +1 javadoc. The javadoc tool did not generate any warning messages. +1 javac. The applied patch does not increase the total number of javac compiler warnings. +1 findbugs. The patch does not introduce any new Findbugs warnings. +1 release audit. The applied patch does not increase the total number of release audit warnings. -1 core tests. The patch failed core unit tests. +1 contrib tests. The patch passed contrib unit tests. Test results: https://hudson.apache.org/hudson/job/PreCommit-ZOOKEEPER-Build/11//testReport/ Findbugs warnings: https://hudson.apache.org/hudson/job/PreCommit-ZOOKEEPER-Build/11//artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html Console output: https://hudson.apache.org/hudson/job/PreCommit-ZOOKEEPER-Build/11//console This message is automatically generated.
          Hide
          Patrick Hunt added a comment -

          Cancelling patch, could you provide a tests that verifies this issue is addressed? Thanks.

          Show
          Patrick Hunt added a comment - Cancelling patch, could you provide a tests that verifies this issue is addressed? Thanks.
          Hide
          Diogo added a comment -

          The same patch now with test case

          Show
          Diogo added a comment - The same patch now with test case
          Hide
          Flavio Junqueira added a comment -

          +1, looks good to me. Thanks, Diogo!

          Show
          Flavio Junqueira added a comment - +1, looks good to me. Thanks, Diogo!
          Hide
          Flavio Junqueira added a comment -

          Committed revision 1091841.

          Thanks again, Diogo.

          Show
          Flavio Junqueira added a comment - Committed revision 1091841. Thanks again, Diogo.
          Hide
          Hudson added a comment -

          Integrated in ZooKeeper-trunk #1153 (See https://hudson.apache.org/hudson/job/ZooKeeper-trunk/1153/)
          ZOOKEEPER-874. FileTxnSnapLog.restore does not call listener (diogo via fpj)

          Show
          Hudson added a comment - Integrated in ZooKeeper-trunk #1153 (See https://hudson.apache.org/hudson/job/ZooKeeper-trunk/1153/ ) ZOOKEEPER-874 . FileTxnSnapLog.restore does not call listener (diogo via fpj)

            People

            • Assignee:
              Diogo
              Reporter:
              Diogo
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development