hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Badger (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HADOOP-10980) TestActiveStandbyElector fails occasionally in trunk
Date Tue, 02 Aug 2016 22:27:20 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-10980?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Eric Badger updated HADOOP-10980:
---------------------------------
    Attachment: HADOOP-10980.002.patch

Attaching a patch that mocks up the ZooKeeper instance for the test, so that there will always
be a connection timeout. I had to make a new protected method to gain access to the ZooKeeper
instance. The getNewZooKeeper() method claims that it was made 'protected' so that a mocked
ZooKeeper instance could be passed in, but I don't see how that is possible since it is explicitly
set within the function. Please let me know if I'm missing something.

[~jlowe], does this change look correct?

> TestActiveStandbyElector fails occasionally in trunk
> ----------------------------------------------------
>
>                 Key: HADOOP-10980
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10980
>             Project: Hadoop Common
>          Issue Type: Test
>    Affects Versions: 3.0.0-alpha1
>            Reporter: Ted Yu
>            Assignee: Eric Badger
>            Priority: Minor
>         Attachments: HADOOP-10980.001.patch, HADOOP-10980.002.patch
>
>
> From https://builds.apache.org/job/Hadoop-Common-trunk/1211/consoleFull :
> {code}
> Running org.apache.hadoop.ha.TestActiveStandbyElector
> Tests run: 23, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.7 sec <<<
FAILURE! - in org.apache.hadoop.ha.TestActiveStandbyElector
> testWithoutZKServer(org.apache.hadoop.ha.TestActiveStandbyElector)  Time elapsed: 0.051
sec  <<< FAILURE!
> java.lang.AssertionError: Did not throw zookeeper connection loss exceptions!
> 	at org.junit.Assert.fail(Assert.java:88)
> 	at org.apache.hadoop.ha.TestActiveStandbyElector.testWithoutZKServer(TestActiveStandbyElector.java:722)
> {code}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Mime
View raw message