[
https://issues.apache.org/jira/browse/HDFS-12112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16088834#comment-16088834
]
Hudson commented on HDFS-12112:
-------------------------------
SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #12016 (See
[https://builds.apache.org/job/Hadoop-trunk-Commit/12016/])
HDFS-12112. TestBlockManager#testBlockManagerMachinesArray sometimes (brahma:
rev b778887af59d96f1fac30cae14be1cabbdb74c8b)
* (edit)
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/blockmanagement/TestBlockManager.java
> TestBlockManager#testBlockManagerMachinesArray sometimes fails with NPE
> -----------------------------------------------------------------------
>
> Key: HDFS-12112
> URL: https://issues.apache.org/jira/browse/HDFS-12112
> Project: Hadoop HDFS
> Issue Type: Bug
> Affects Versions: 3.0.0-beta1
> Environment: CDH5.12.0
> Reporter: Wei-Chiu Chuang
> Assignee: Wei-Chiu Chuang
> Priority: Minor
> Fix For: 2.9.0, 3.0.0-beta1, 2.8.3
>
> Attachments: HDFS-12112.001.patch
>
>
> Found the following error:
> {quote}
> java.lang.NullPointerException: null
> at
> org.apache.hadoop.hdfs.server.blockmanagement.TestBlockManager.testBlockManagerMachinesArray(TestBlockManager.java:1202)
> {quote}
> The NPE suggests corruptStorageDataNode in the following code snippet could
> be null.
> {code}
> for(int i=0; i<corruptStorageDataNode.getStorageInfos().length; i++) {
> {code}
> Looking at the code, the test does not wait for file replication to happen,
> which is why corruptStorageDataNode (the DN of the second replica) is null.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]