[
https://issues.apache.org/jira/browse/HDFS-10449?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15302169#comment-15302169
]
Daniel Templeton commented on HDFS-10449:
-----------------------------------------
I accidentally debugged this issue. You need to replace:
{code}
fail("No exception was generated while stopping sink "
+ "even though HDFS was unavailable");
{code}
with
{code}
assertTrue("No exception was generated while stopping sink "
+ "even though HDFS was unavailable", MockSink.errored);
{code}
> TestRollingFileSystemSinkWithHdfs#testFailedClose() fails on branch-2
> ---------------------------------------------------------------------
>
> Key: HDFS-10449
> URL: https://issues.apache.org/jira/browse/HDFS-10449
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: test
> Environment: jenkins
> Reporter: Takanobu Asanuma
> Assignee: Takanobu Asanuma
>
> {noformat}
> Running org.apache.hadoop.metrics2.sink.TestRollingFileSystemSinkWithHdfs
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 9.263 sec <<<
> FAILURE! - in
> org.apache.hadoop.metrics2.sink.TestRollingFileSystemSinkWithHdfs
> testFailedClose(org.apache.hadoop.metrics2.sink.TestRollingFileSystemSinkWithHdfs)
> Time elapsed: 8.729 sec <<< FAILURE!
> java.lang.AssertionError: No exception was generated while stopping sink even
> though HDFS was unavailable
> at org.junit.Assert.fail(Assert.java:88)
> at
> org.apache.hadoop.metrics2.sink.TestRollingFileSystemSinkWithHdfs.testFailedClose(TestRollingFileSystemSinkWithHdfs.java:187)
> {noformat}
> This passes fine on trunk.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]