hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mingliang Liu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-11122) TestDFSAdmin.testReportCommand fails due to timed out
Date Fri, 11 Nov 2016 02:13:58 GMT

    [ https://issues.apache.org/jira/browse/HDFS-11122?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15655872#comment-15655872

Mingliang Liu commented on HDFS-11122:


Will commit this with a clean Jenkins run.

trivial comments:
we can totally skip the {{throwException}} and its assertion. All other exception will fail
the test anyway (with ChecksumException expected and ignored).
	      try {
	        IOUtils.copyBytes(fs.open(file), new IOUtils.NullOutputStream(),
	            conf, true);
	        fail("Should have failed to read the file with corrupted blocks.");
	      } catch (ChecksumException ignored) {
	        // expected exception reading corrupt blocks

> TestDFSAdmin.testReportCommand fails due to timed out
> -----------------------------------------------------
>                 Key: HDFS-11122
>                 URL: https://issues.apache.org/jira/browse/HDFS-11122
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: test
>            Reporter: Yiqun Lin
>            Assignee: Yiqun Lin
>            Priority: Minor
>         Attachments: HDFS-11122.001.patch, HDFS-11122.002.patch, HDFS-11122.003.patch,
> After HDFS-11083, the test {{TestDFSAdmi}} fails sometimes dueto timed out. The stack
> {code}
> java.lang.Exception: test timed out after 30000 milliseconds
> 	at java.lang.Thread.sleep(Native Method)
> 	at org.apache.hadoop.test.GenericTestUtils.waitFor(GenericTestUtils.java:268)
> 	at org.apache.hadoop.hdfs.tools.TestDFSAdmin.testReportCommand(TestDFSAdmin.java:540)
> {code}
> The timed out is happened in {{GenericTestUtils.waitFor}}. We can make a improvement
in the logic of waiting the corrupt blocks.

This message was sent by Atlassian JIRA

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

View raw message