Return-Path: Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: (qmail 84064 invoked from network); 1 Dec 2010 19:53:33 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Dec 2010 19:53:33 -0000 Received: (qmail 8866 invoked by uid 500); 1 Dec 2010 19:53:33 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 8840 invoked by uid 500); 1 Dec 2010 19:53:33 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 8832 invoked by uid 99); 1 Dec 2010 19:53:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Dec 2010 19:53:33 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Dec 2010 19:53:33 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oB1JrCnd015935 for ; Wed, 1 Dec 2010 19:53:13 GMT Message-ID: <1562774.53791291233192930.JavaMail.jira@thor> Date: Wed, 1 Dec 2010 14:53:12 -0500 (EST) From: "Konstantin Boudnik (JIRA)" To: hdfs-issues@hadoop.apache.org Subject: [jira] Commented: (HDFS-1502) TestBlockRecovery triggers NPE in assert In-Reply-To: <20087842.156541290022575183.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-1502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12965823#action_12965823 ] Konstantin Boudnik commented on HDFS-1502: ------------------------------------------ With the patch only these two cases testRBWReplicas & testRWRReplicas keep failing. > TestBlockRecovery triggers NPE in assert > ---------------------------------------- > > Key: HDFS-1502 > URL: https://issues.apache.org/jira/browse/HDFS-1502 > Project: Hadoop HDFS > Issue Type: Bug > Affects Versions: 0.22.0 > Reporter: Eli Collins > Priority: Minor > Fix For: 0.22.0 > > Attachments: HDFS-1502.patch > > > {noformat} > Testcase: testRBW_RWRReplicas took 10.333 sec > Caused an ERROR > null > java.lang.NullPointerException > at org.apache.hadoop.hdfs.server.datanode.DataNode.syncBlock(DataNode.java:1881) > at org.apache.hadoop.hdfs.server.datanode.TestBlockRecovery.testSyncReplicas(TestBlockRecovery.java:144) > at org.apache.hadoop.hdfs.server.datanode.TestBlockRecovery.testRBW_RWRReplicas(TestBlockRecovery.java:305) > {noformat} > {noformat} > Block reply = r.datanode.updateReplicaUnderRecovery( > r.rInfo, recoveryId, newBlock.getNumBytes()); > assert reply.equals(newBlock) && > reply.getNumBytes() == newBlock.getNumBytes() : > "Updated replica must be the same as the new block."; <----- line 1881 > {noformat} > Not sure how reply could be null since updateReplicaUnderRecovery always returns a newly instantiated object. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.