hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Badger (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-11094) TestLargeBlockReport fails intermittently
Date Wed, 02 Nov 2016 20:12:58 GMT

     [ https://issues.apache.org/jira/browse/HDFS-11094?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Eric Badger updated HDFS-11094:
    Attachment: HDFS-11094.001.patch

The problem is that the MiniDFSCluster doesn't wait for the DN(s) to heartbeat before it declares
itself as "active" or "up". Since the DNs haven't heartbeated in yet, if the test asks the
DN for the active NN it will return null. This will then cause the test to fail. 

So I am proposing that we wait for the DN(s) to hearbeat into the NN before allowing the cluster
to return from its {{build()}} method. This may also have a performance boost since it will
cause the DNs to be proactive in talking to the namenode instead of waiting and doing it on
a timer. 

> TestLargeBlockReport fails intermittently
> -----------------------------------------
>                 Key: HDFS-11094
>                 URL: https://issues.apache.org/jira/browse/HDFS-11094
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Eric Badger
>            Assignee: Eric Badger
>         Attachments: HDFS-11094.001.patch
> {noformat}
> java.lang.NullPointerException: null
> 	at org.apache.hadoop.hdfs.server.datanode.TestLargeBlockReport.testBlockReportSucceedsWithLargerLengthLimit(TestLargeBlockReport.java:96)
> {noformat}

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