[
https://issues.apache.org/jira/browse/HDFS-9672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15111745#comment-15111745
]
Mingliang Liu commented on HDFS-9672:
-------------------------------------
The mini cluster is reused for all the tests. If any of the test fails to
restart the cluster, all the following tests will fail. That's why we see fail
message like:
{{Tests run: 8, Failures: 1, Errors: 3, Skipped: 0, Time elapsed: 44.253 sec
<<< FAILURE! - in org.apache.hadoop.hdfs.TestLeaseRecovery2}}
As the mini cluster is changed (e.g. lease period) and restarted differently in
the tests, we'd better build a mini cluster for each test.
> o.a.h.hdfs.TestLeaseRecovery2 fails intermittently
> --------------------------------------------------
>
> Key: HDFS-9672
> URL: https://issues.apache.org/jira/browse/HDFS-9672
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: test
> Affects Versions: 3.0.0
> Reporter: Mingliang Liu
> Assignee: Mingliang Liu
>
> It fails in recent builds, see:
> https://builds.apache.org/job/PreCommit-HDFS-Build/14177/testReport/org.apache.hadoop.hdfs/
> https://builds.apache.org/job/PreCommit-HDFS-Build/14147/testReport/org.apache.hadoop.hdfs/
> Failing test methods include:
> *
> org.apache.hadoop.hdfs.TestLeaseRecovery2.testHardLeaseRecoveryWithRenameAfterNameNodeRestart
> * org.apache.hadoop.hdfs.TestLeaseRecovery2.testLeaseRecoverByAnotherUser
> * org.apache.hadoop.hdfs.TestLeaseRecovery2.testHardLeaseRecovery
> *
> org.apache.hadoop.hdfs.TestLeaseRecovery2.org.apache.hadoop.hdfs.TestLeaseRecovery2
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)