[
https://issues.apache.org/jira/browse/HADOOP-9745?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13742387#comment-13742387
]
Elizabeth Thomas commented on HADOOP-9745:
------------------------------------------
[[email protected]] I checked out the source code from the trunk
(http://svn.apache.org/repos/asf/hadoop/common/trunk and revision 1514608)
which is the latest successful build from the link
https://builds.apache.org/job/Hadoop-trunk-Commit/4280/.
On running a "mvn install", the following tests fail, which includes the above
three tests.
===================================================================================================================
Results :
Failed tests:
testGracefulFailoverFailBecomingActive(org.apache.hadoop.ha.TestZKFailoverController):
Did not fail to graceful failover when target failed to become active!
testGracefulFailoverFailBecomingStandby(org.apache.hadoop.ha.TestZKFailoverController):
expected:<1> but was:<0>
testGracefulFailoverFailBecomingStandbyAndFailFence(org.apache.hadoop.ha.TestZKFailoverController):
Failover should have failed when old node wont fence
testCachingRelaysResolveQueries(org.apache.hadoop.net.TestStaticMapping):
Expected two entries in the map Mapping: cached switch mapping relaying to
static mapping with single switch = false(..)
testCachingCachesNegativeEntries(org.apache.hadoop.net.TestStaticMapping):
Expected two entries in the map Mapping: cached switch mapping relaying to
static mapping with single switch = false(..)
testResolve(org.apache.hadoop.net.TestTableMapping): expected:</[rack1]> but
was:</[default-rack]>
testTableCaching(org.apache.hadoop.net.TestTableMapping): expected:</[rack1]>
but was:</[default-rack]>
testClearingCachedMappings(org.apache.hadoop.net.TestTableMapping):
expected:</[rack1]> but was:</[default-rack]>
testNormalizeHostName(org.apache.hadoop.net.TestNetUtils):
expected:<[67.215.65.145]> but was:<[UnknownHost123]>
Tests in error:
testGracefulFailover(org.apache.hadoop.ha.TestZKFailoverController): test
timed out after 25000 milliseconds
testChown(org.apache.hadoop.fs.TestFsShellReturnCode): test timed out after
30000 milliseconds
testChgrp(org.apache.hadoop.fs.TestFsShellReturnCode): test timed out after
30000 milliseconds
Tests run: 2128, Failures: 9, Errors: 3, Skipped: 71
=========================================================================================================================
Should I checkout the code from elsewhere so that I could run these unit tests
successfully? Or is there a pre-requisite/configuration for these tests (like
any Unix service or any other apache services like ZooKeeper to be up) to run
successfully on a Unix machine? I believe these unit tests should not have any
dependencies.
Could you pls provide your pointers?
> TestZKFailoverController test fails
> -----------------------------------
>
> Key: HADOOP-9745
> URL: https://issues.apache.org/jira/browse/HADOOP-9745
> Project: Hadoop Common
> Issue Type: Bug
> Components: test
> Affects Versions: 3.0.0
> Reporter: Jean-Baptiste Onofré
>
> -
> testGracefulFailoverFailBecomingActive(org.apache.hadoop.ha.TestZKFailoverController):
> Did not fail to graceful failover when target failed to become active!
> -
> testGracefulFailoverFailBecomingStandby(org.apache.hadoop.ha.TestZKFailoverController):
> expected:<1> but was:<0>
> -
> testGracefulFailoverFailBecomingStandbyAndFailFence(org.apache.hadoop.ha.TestZKFailoverController):
> Failover should have failed when old node wont fence
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira