You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Henry Robinson (JIRA)" <ji...@apache.org> on 2010/03/09 22:40:27 UTC
[jira] Created: (ZOOKEEPER-693) TestObserver stuck in tight
notification loop in FLE
TestObserver stuck in tight notification loop in FLE
----------------------------------------------------
Key: ZOOKEEPER-693
URL: https://issues.apache.org/jira/browse/ZOOKEEPER-693
Project: Zookeeper
Issue Type: Bug
Affects Versions: 3.3.0
Reporter: Henry Robinson
Priority: Critical
Fix For: 3.3.0
See http://hudson.zones.apache.org/hudson/view/ZooKeeper/job/Zookeeper-Patch-h7.grid.sp2.yahoo.net/77/testReport/junit/org.apache.zookeeper.test/ObserverTest/testObserver/
[exec] [junit] 2010-03-04 00:23:37,803 - INFO [QuorumPeer:/0:0:0:0:0:0:0:0:11229:FastLeaderElection@683] - Notification time out: 3200
[exec] [junit] 2010-03-04 00:23:37,804 - INFO [QuorumPeer:/0:0:0:0:0:0:0:0:11229:FastLeaderElection@689] - Notification: 2, 0, 2, 3, LOOKING, LOOKING, 1
ad infinitum.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (ZOOKEEPER-693) TestObserver stuck in tight
notification loop in FLE
Posted by "Flavio Paiva Junqueira (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ZOOKEEPER-693?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Flavio Paiva Junqueira updated ZOOKEEPER-693:
---------------------------------------------
Attachment: ZOOKEEPER-693.patch
Taking a look at the log, I realized that that the execution of the two tests of ObserverTest were overlapping. More specifically, leader election instances were not being shut down correctly after the first test (testObserver), and it seems that they were interfering with the second test (testSingleObserver).
The real issue is that I have been shutting down FLE separately from the QuorumPeer in tests, and QuorumPeerTestBase that ObserverTest is using has no way to access the underlying QuorumPeer instance.
To solve this problem, I simply added code to QuorumPeer:shutdown so that we make sure that we shutdown all leader election instances. I had to also add a new method to the Election interface, and implement an empty method in LeaderElection.
Since it is ok to call shutdown multiple times, I'll leave the FLE tests untouched for this patch. I have run the tests a few times, and I didn't see any issue. I'll create a jira issue to remove the duplicate calls to shutdown.
> TestObserver stuck in tight notification loop in FLE
> ----------------------------------------------------
>
> Key: ZOOKEEPER-693
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-693
> Project: Zookeeper
> Issue Type: Bug
> Affects Versions: 3.3.0
> Reporter: Henry Robinson
> Priority: Critical
> Fix For: 3.3.0
>
> Attachments: ZOOKEEPER-693.patch
>
>
> See http://hudson.zones.apache.org/hudson/view/ZooKeeper/job/Zookeeper-Patch-h7.grid.sp2.yahoo.net/77/testReport/junit/org.apache.zookeeper.test/ObserverTest/testObserver/
> [exec] [junit] 2010-03-04 00:23:37,803 - INFO [QuorumPeer:/0:0:0:0:0:0:0:0:11229:FastLeaderElection@683] - Notification time out: 3200
> [exec] [junit] 2010-03-04 00:23:37,804 - INFO [QuorumPeer:/0:0:0:0:0:0:0:0:11229:FastLeaderElection@689] - Notification: 2, 0, 2, 3, LOOKING, LOOKING, 1
> ad infinitum.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (ZOOKEEPER-693) TestObserver stuck in tight
notification loop in FLE
Posted by "Flavio Paiva Junqueira (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ZOOKEEPER-693?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Flavio Paiva Junqueira updated ZOOKEEPER-693:
---------------------------------------------
Assignee: Flavio Paiva Junqueira
Status: Patch Available (was: Open)
> TestObserver stuck in tight notification loop in FLE
> ----------------------------------------------------
>
> Key: ZOOKEEPER-693
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-693
> Project: Zookeeper
> Issue Type: Bug
> Affects Versions: 3.3.0
> Reporter: Henry Robinson
> Assignee: Flavio Paiva Junqueira
> Priority: Critical
> Fix For: 3.3.0
>
> Attachments: ZOOKEEPER-693.patch
>
>
> See http://hudson.zones.apache.org/hudson/view/ZooKeeper/job/Zookeeper-Patch-h7.grid.sp2.yahoo.net/77/testReport/junit/org.apache.zookeeper.test/ObserverTest/testObserver/
> [exec] [junit] 2010-03-04 00:23:37,803 - INFO [QuorumPeer:/0:0:0:0:0:0:0:0:11229:FastLeaderElection@683] - Notification time out: 3200
> [exec] [junit] 2010-03-04 00:23:37,804 - INFO [QuorumPeer:/0:0:0:0:0:0:0:0:11229:FastLeaderElection@689] - Notification: 2, 0, 2, 3, LOOKING, LOOKING, 1
> ad infinitum.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (ZOOKEEPER-693) TestObserver stuck in tight
notification loop in FLE
Posted by "Flavio Paiva Junqueira (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ZOOKEEPER-693?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Flavio Paiva Junqueira updated ZOOKEEPER-693:
---------------------------------------------
Attachment: ZOOKEEPER-693.patch
My bad, forgot to fix AuthFLE as well.
> TestObserver stuck in tight notification loop in FLE
> ----------------------------------------------------
>
> Key: ZOOKEEPER-693
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-693
> Project: Zookeeper
> Issue Type: Bug
> Affects Versions: 3.3.0
> Reporter: Henry Robinson
> Assignee: Flavio Paiva Junqueira
> Priority: Critical
> Fix For: 3.3.0
>
> Attachments: ZOOKEEPER-693.patch, ZOOKEEPER-693.patch
>
>
> See http://hudson.zones.apache.org/hudson/view/ZooKeeper/job/Zookeeper-Patch-h7.grid.sp2.yahoo.net/77/testReport/junit/org.apache.zookeeper.test/ObserverTest/testObserver/
> [exec] [junit] 2010-03-04 00:23:37,803 - INFO [QuorumPeer:/0:0:0:0:0:0:0:0:11229:FastLeaderElection@683] - Notification time out: 3200
> [exec] [junit] 2010-03-04 00:23:37,804 - INFO [QuorumPeer:/0:0:0:0:0:0:0:0:11229:FastLeaderElection@689] - Notification: 2, 0, 2, 3, LOOKING, LOOKING, 1
> ad infinitum.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (ZOOKEEPER-693) TestObserver stuck in tight
notification loop in FLE
Posted by "Patrick Hunt (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ZOOKEEPER-693?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Patrick Hunt updated ZOOKEEPER-693:
-----------------------------------
Resolution: Fixed
Hadoop Flags: [Reviewed]
Status: Resolved (was: Patch Available)
+1 looks good, tests pass on my system as well.
Committed revision 921509.
> TestObserver stuck in tight notification loop in FLE
> ----------------------------------------------------
>
> Key: ZOOKEEPER-693
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-693
> Project: Zookeeper
> Issue Type: Bug
> Affects Versions: 3.3.0
> Reporter: Henry Robinson
> Assignee: Flavio Paiva Junqueira
> Priority: Critical
> Fix For: 3.3.0
>
> Attachments: ZOOKEEPER-693.patch, ZOOKEEPER-693.patch
>
>
> See http://hudson.zones.apache.org/hudson/view/ZooKeeper/job/Zookeeper-Patch-h7.grid.sp2.yahoo.net/77/testReport/junit/org.apache.zookeeper.test/ObserverTest/testObserver/
> [exec] [junit] 2010-03-04 00:23:37,803 - INFO [QuorumPeer:/0:0:0:0:0:0:0:0:11229:FastLeaderElection@683] - Notification time out: 3200
> [exec] [junit] 2010-03-04 00:23:37,804 - INFO [QuorumPeer:/0:0:0:0:0:0:0:0:11229:FastLeaderElection@689] - Notification: 2, 0, 2, 3, LOOKING, LOOKING, 1
> ad infinitum.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (ZOOKEEPER-693) TestObserver stuck in tight
notification loop in FLE
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ZOOKEEPER-693?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12844055#action_12844055 ]
Hudson commented on ZOOKEEPER-693:
----------------------------------
Integrated in ZooKeeper-trunk #732 (See [http://hudson.zones.apache.org/hudson/job/ZooKeeper-trunk/732/])
. TestObserver stuck in tight notification loop in FLE
> TestObserver stuck in tight notification loop in FLE
> ----------------------------------------------------
>
> Key: ZOOKEEPER-693
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-693
> Project: Zookeeper
> Issue Type: Bug
> Affects Versions: 3.3.0
> Reporter: Henry Robinson
> Assignee: Flavio Paiva Junqueira
> Priority: Critical
> Fix For: 3.3.0
>
> Attachments: ZOOKEEPER-693.patch, ZOOKEEPER-693.patch
>
>
> See http://hudson.zones.apache.org/hudson/view/ZooKeeper/job/Zookeeper-Patch-h7.grid.sp2.yahoo.net/77/testReport/junit/org.apache.zookeeper.test/ObserverTest/testObserver/
> [exec] [junit] 2010-03-04 00:23:37,803 - INFO [QuorumPeer:/0:0:0:0:0:0:0:0:11229:FastLeaderElection@683] - Notification time out: 3200
> [exec] [junit] 2010-03-04 00:23:37,804 - INFO [QuorumPeer:/0:0:0:0:0:0:0:0:11229:FastLeaderElection@689] - Notification: 2, 0, 2, 3, LOOKING, LOOKING, 1
> ad infinitum.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (ZOOKEEPER-693) TestObserver stuck in tight
notification loop in FLE
Posted by "Henry Robinson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ZOOKEEPER-693?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12843310#action_12843310 ]
Henry Robinson commented on ZOOKEEPER-693:
------------------------------------------
Flavio - this is in the FastLeaderElection path. Can you take a look, as I think you contributed the patches to make Observers work with FLE? (ZOOKEEPER-599)
> TestObserver stuck in tight notification loop in FLE
> ----------------------------------------------------
>
> Key: ZOOKEEPER-693
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-693
> Project: Zookeeper
> Issue Type: Bug
> Affects Versions: 3.3.0
> Reporter: Henry Robinson
> Priority: Critical
> Fix For: 3.3.0
>
>
> See http://hudson.zones.apache.org/hudson/view/ZooKeeper/job/Zookeeper-Patch-h7.grid.sp2.yahoo.net/77/testReport/junit/org.apache.zookeeper.test/ObserverTest/testObserver/
> [exec] [junit] 2010-03-04 00:23:37,803 - INFO [QuorumPeer:/0:0:0:0:0:0:0:0:11229:FastLeaderElection@683] - Notification time out: 3200
> [exec] [junit] 2010-03-04 00:23:37,804 - INFO [QuorumPeer:/0:0:0:0:0:0:0:0:11229:FastLeaderElection@689] - Notification: 2, 0, 2, 3, LOOKING, LOOKING, 1
> ad infinitum.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (ZOOKEEPER-693) TestObserver stuck in tight
notification loop in FLE
Posted by "Flavio Paiva Junqueira (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ZOOKEEPER-693?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Flavio Paiva Junqueira updated ZOOKEEPER-693:
---------------------------------------------
Status: Patch Available (was: Open)
> TestObserver stuck in tight notification loop in FLE
> ----------------------------------------------------
>
> Key: ZOOKEEPER-693
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-693
> Project: Zookeeper
> Issue Type: Bug
> Affects Versions: 3.3.0
> Reporter: Henry Robinson
> Assignee: Flavio Paiva Junqueira
> Priority: Critical
> Fix For: 3.3.0
>
> Attachments: ZOOKEEPER-693.patch, ZOOKEEPER-693.patch
>
>
> See http://hudson.zones.apache.org/hudson/view/ZooKeeper/job/Zookeeper-Patch-h7.grid.sp2.yahoo.net/77/testReport/junit/org.apache.zookeeper.test/ObserverTest/testObserver/
> [exec] [junit] 2010-03-04 00:23:37,803 - INFO [QuorumPeer:/0:0:0:0:0:0:0:0:11229:FastLeaderElection@683] - Notification time out: 3200
> [exec] [junit] 2010-03-04 00:23:37,804 - INFO [QuorumPeer:/0:0:0:0:0:0:0:0:11229:FastLeaderElection@689] - Notification: 2, 0, 2, 3, LOOKING, LOOKING, 1
> ad infinitum.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (ZOOKEEPER-693) TestObserver stuck in tight
notification loop in FLE
Posted by "Henry Robinson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ZOOKEEPER-693?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12843618#action_12843618 ]
Henry Robinson commented on ZOOKEEPER-693:
------------------------------------------
Good catch - patch looks good to me. +1
> TestObserver stuck in tight notification loop in FLE
> ----------------------------------------------------
>
> Key: ZOOKEEPER-693
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-693
> Project: Zookeeper
> Issue Type: Bug
> Affects Versions: 3.3.0
> Reporter: Henry Robinson
> Assignee: Flavio Paiva Junqueira
> Priority: Critical
> Fix For: 3.3.0
>
> Attachments: ZOOKEEPER-693.patch, ZOOKEEPER-693.patch
>
>
> See http://hudson.zones.apache.org/hudson/view/ZooKeeper/job/Zookeeper-Patch-h7.grid.sp2.yahoo.net/77/testReport/junit/org.apache.zookeeper.test/ObserverTest/testObserver/
> [exec] [junit] 2010-03-04 00:23:37,803 - INFO [QuorumPeer:/0:0:0:0:0:0:0:0:11229:FastLeaderElection@683] - Notification time out: 3200
> [exec] [junit] 2010-03-04 00:23:37,804 - INFO [QuorumPeer:/0:0:0:0:0:0:0:0:11229:FastLeaderElection@689] - Notification: 2, 0, 2, 3, LOOKING, LOOKING, 1
> ad infinitum.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (ZOOKEEPER-693) TestObserver stuck in tight
notification loop in FLE
Posted by "Flavio Paiva Junqueira (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ZOOKEEPER-693?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Flavio Paiva Junqueira updated ZOOKEEPER-693:
---------------------------------------------
Status: Open (was: Patch Available)
> TestObserver stuck in tight notification loop in FLE
> ----------------------------------------------------
>
> Key: ZOOKEEPER-693
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-693
> Project: Zookeeper
> Issue Type: Bug
> Affects Versions: 3.3.0
> Reporter: Henry Robinson
> Assignee: Flavio Paiva Junqueira
> Priority: Critical
> Fix For: 3.3.0
>
> Attachments: ZOOKEEPER-693.patch, ZOOKEEPER-693.patch
>
>
> See http://hudson.zones.apache.org/hudson/view/ZooKeeper/job/Zookeeper-Patch-h7.grid.sp2.yahoo.net/77/testReport/junit/org.apache.zookeeper.test/ObserverTest/testObserver/
> [exec] [junit] 2010-03-04 00:23:37,803 - INFO [QuorumPeer:/0:0:0:0:0:0:0:0:11229:FastLeaderElection@683] - Notification time out: 3200
> [exec] [junit] 2010-03-04 00:23:37,804 - INFO [QuorumPeer:/0:0:0:0:0:0:0:0:11229:FastLeaderElection@689] - Notification: 2, 0, 2, 3, LOOKING, LOOKING, 1
> ad infinitum.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (ZOOKEEPER-693) TestObserver stuck in tight
notification loop in FLE
Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ZOOKEEPER-693?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12843522#action_12843522 ]
Hadoop QA commented on ZOOKEEPER-693:
-------------------------------------
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12438399/ZOOKEEPER-693.patch
against trunk revision 921201.
+1 @author. The patch does not contain any @author tags.
+1 tests included. The patch appears to include 3 new or modified tests.
+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 appears to cause Findbugs to fail.
+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: http://hudson.zones.apache.org/hudson/job/Zookeeper-Patch-h1.grid.sp2.yahoo.net/9/testReport/
Console output: http://hudson.zones.apache.org/hudson/job/Zookeeper-Patch-h1.grid.sp2.yahoo.net/9/console
This message is automatically generated.
> TestObserver stuck in tight notification loop in FLE
> ----------------------------------------------------
>
> Key: ZOOKEEPER-693
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-693
> Project: Zookeeper
> Issue Type: Bug
> Affects Versions: 3.3.0
> Reporter: Henry Robinson
> Assignee: Flavio Paiva Junqueira
> Priority: Critical
> Fix For: 3.3.0
>
> Attachments: ZOOKEEPER-693.patch
>
>
> See http://hudson.zones.apache.org/hudson/view/ZooKeeper/job/Zookeeper-Patch-h7.grid.sp2.yahoo.net/77/testReport/junit/org.apache.zookeeper.test/ObserverTest/testObserver/
> [exec] [junit] 2010-03-04 00:23:37,803 - INFO [QuorumPeer:/0:0:0:0:0:0:0:0:11229:FastLeaderElection@683] - Notification time out: 3200
> [exec] [junit] 2010-03-04 00:23:37,804 - INFO [QuorumPeer:/0:0:0:0:0:0:0:0:11229:FastLeaderElection@689] - Notification: 2, 0, 2, 3, LOOKING, LOOKING, 1
> ad infinitum.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (ZOOKEEPER-693) TestObserver stuck in tight
notification loop in FLE
Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ZOOKEEPER-693?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12843531#action_12843531 ]
Hadoop QA commented on ZOOKEEPER-693:
-------------------------------------
+1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12438401/ZOOKEEPER-693.patch
against trunk revision 921201.
+1 @author. The patch does not contain any @author tags.
+1 tests included. The patch appears to include 3 new or modified tests.
+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 passed core unit tests.
+1 contrib tests. The patch passed contrib unit tests.
Test results: http://hudson.zones.apache.org/hudson/job/Zookeeper-Patch-h1.grid.sp2.yahoo.net/10/testReport/
Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Zookeeper-Patch-h1.grid.sp2.yahoo.net/10/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Console output: http://hudson.zones.apache.org/hudson/job/Zookeeper-Patch-h1.grid.sp2.yahoo.net/10/console
This message is automatically generated.
> TestObserver stuck in tight notification loop in FLE
> ----------------------------------------------------
>
> Key: ZOOKEEPER-693
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-693
> Project: Zookeeper
> Issue Type: Bug
> Affects Versions: 3.3.0
> Reporter: Henry Robinson
> Assignee: Flavio Paiva Junqueira
> Priority: Critical
> Fix For: 3.3.0
>
> Attachments: ZOOKEEPER-693.patch, ZOOKEEPER-693.patch
>
>
> See http://hudson.zones.apache.org/hudson/view/ZooKeeper/job/Zookeeper-Patch-h7.grid.sp2.yahoo.net/77/testReport/junit/org.apache.zookeeper.test/ObserverTest/testObserver/
> [exec] [junit] 2010-03-04 00:23:37,803 - INFO [QuorumPeer:/0:0:0:0:0:0:0:0:11229:FastLeaderElection@683] - Notification time out: 3200
> [exec] [junit] 2010-03-04 00:23:37,804 - INFO [QuorumPeer:/0:0:0:0:0:0:0:0:11229:FastLeaderElection@689] - Notification: 2, 0, 2, 3, LOOKING, LOOKING, 1
> ad infinitum.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.