You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Alexander Shraer (JIRA)" <ji...@apache.org> on 2016/07/27 00:08:20 UTC

[jira] [Comment Edited] (ZOOKEEPER-2080) ReconfigRecoveryTest fails intermittently

    [ https://issues.apache.org/jira/browse/ZOOKEEPER-2080?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15394813#comment-15394813 ] 

Alexander Shraer edited comment on ZOOKEEPER-2080 at 7/27/16 12:07 AM:
-----------------------------------------------------------------------

Hi Michael, thanks for the patch, it looks good to me. I have two questions: do you think that the creation of a new election object won't be
interfered if the old object shutdown/GC hasn't happened yet ? and any way to test this using a unit test ? Since you're doing
stress tests I'm less worried if a unit test is complicated. You'd probably have to somehow suspend a messaging thread to create
the deadlock, not sure.


was (Author: shralex):
Hi Michael, thanks for the patch, it looks good to me. I have two questions: do you think that the creation of a new election object won't be
interfered if the old object if shutdown/GC hasn't happened yet ? and any way to test this using a unit test ? Since you're doing
stress tests I'm less worried if a unit test is complicated. You'd probably have to somehow suspend a messaging thread to create
the deadlock, not sure.

> ReconfigRecoveryTest fails intermittently
> -----------------------------------------
>
>                 Key: ZOOKEEPER-2080
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2080
>             Project: ZooKeeper
>          Issue Type: Sub-task
>            Reporter: Ted Yu
>            Assignee: Michael Han
>             Fix For: 3.5.3, 3.6.0
>
>         Attachments: ZOOKEEPER-2080.patch, ZOOKEEPER-2080.patch, jacoco-ZOOKEEPER-2080.unzip-grows-to-70MB.7z, repro-20150816.log, threaddump.log
>
>
> I got the following test failure on MacBook with trunk code:
> {code}
> Testcase: testCurrentObserverIsParticipantInNewConfig took 93.628 sec
>   FAILED
> waiting for server 2 being up
> junit.framework.AssertionFailedError: waiting for server 2 being up
>   at org.apache.zookeeper.server.quorum.ReconfigRecoveryTest.testCurrentObserverIsParticipantInNewConfig(ReconfigRecoveryTest.java:529)
>   at org.apache.zookeeper.JUnit4ZKTestRunner$LoggedInvokeMethod.evaluate(JUnit4ZKTestRunner.java:52)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)