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

Steve Loughran commented on HADOOP-11149:
-----------------------------------------

Note that the test is being killed in JUnit as the test hangs, It's doing that 
as the failover is spinning for 60s in 
{{ZKFailoverController.doGracefulFailover()}}

{code}
waitForActiveAttempt(timeout + 60000);
{code}

It may be that the test is working, but the 25s timeout is too short. Setting 
it to 120000 millis would  ensure that the test at least failed with a 
meaningful exception raised from the ZKFailoverController.

> TestZKFailoverController fails
> ------------------------------
>
>                 Key: HADOOP-11149
>                 URL: https://issues.apache.org/jira/browse/HADOOP-11149
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 2.5.0, 2.5.1, 3.0.0
>         Environment: Jenkins
>            Reporter: Rajat Jain
>
> {code}
> Running org.apache.hadoop.ha.TestZKFailoverController
> Tests run: 19, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 56.875 sec 
> <<< FAILURE! - in org.apache.hadoop.ha.TestZKFailoverController
> testGracefulFailover(org.apache.hadoop.ha.TestZKFailoverController)  Time 
> elapsed: 25.045 sec  <<< ERROR!
> java.lang.Exception: test timed out after 25000 milliseconds
>       at java.lang.Object.wait(Native Method)
>       at 
> org.apache.hadoop.ha.ZKFailoverController.waitForActiveAttempt(ZKFailoverController.java:467)
>       at 
> org.apache.hadoop.ha.ZKFailoverController.doGracefulFailover(ZKFailoverController.java:657)
>       at 
> org.apache.hadoop.ha.ZKFailoverController.access$400(ZKFailoverController.java:61)
>       at 
> org.apache.hadoop.ha.ZKFailoverController$3.run(ZKFailoverController.java:602)
>       at 
> org.apache.hadoop.ha.ZKFailoverController$3.run(ZKFailoverController.java:599)
>       at java.security.AccessController.doPrivileged(Native Method)
>       at javax.security.auth.Subject.doAs(Subject.java:415)
>       at 
> org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1621)
>       at 
> org.apache.hadoop.ha.ZKFailoverController.gracefulFailoverToYou(ZKFailoverController.java:599)
>       at 
> org.apache.hadoop.ha.ZKFCRpcServer.gracefulFailover(ZKFCRpcServer.java:94)
>       at 
> org.apache.hadoop.ha.TestZKFailoverController.testGracefulFailover(TestZKFailoverController.java:448)
> Results :
> Tests in error:
>   TestZKFailoverController.testGracefulFailover:448->Object.wait:-2 ยป  test 
> time...
> {code}
> Running on centos6.5



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

Reply via email to