Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5B57E87B6 for ; Sat, 10 Sep 2011 01:15:33 +0000 (UTC) Received: (qmail 24921 invoked by uid 500); 10 Sep 2011 01:15:33 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 24871 invoked by uid 500); 10 Sep 2011 01:15:32 -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 24862 invoked by uid 99); 10 Sep 2011 01:15:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Sep 2011 01:15:32 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Sep 2011 01:15:30 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id F28AE8B3C3 for ; Sat, 10 Sep 2011 01:15:08 +0000 (UTC) Date: Sat, 10 Sep 2011 01:15:08 +0000 (UTC) From: "Suresh Srinivas (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <1116424301.10828.1315617308990.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (HDFS-1252) TestDFSConcurrentFileOperations broken in 0.20-appendj MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HDFS-1252?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Suresh Srinivas updated HDFS-1252: ---------------------------------- Attachment: HDFS-1252.20s.1.patch The test TestDFSConcurrentFileOperations failed because append was not enabled. Enabling append in the test to fix the issue. > TestDFSConcurrentFileOperations broken in 0.20-appendj > ------------------------------------------------------ > > Key: HDFS-1252 > URL: https://issues.apache.org/jira/browse/HDFS-1252 > Project: Hadoop HDFS > Issue Type: Test > Components: test > Affects Versions: 0.20-append > Reporter: Todd Lipcon > Assignee: Todd Lipcon > Fix For: 0.20-append > > Attachments: HDFS-1252.20s.1.patch, HDFS-1252.20s.patch, hdfs-1252.txt > > > This test currently has several flaws: > - It calls DN.updateBlock with a BlockInfo instance, which then causes java.lang.RuntimeException: java.lang.NoSuchMethodException: org.apache.hadoop.hdfs.server.namenode.BlocksMap$BlockInfo.() in the logs when the DN tries to send blockReceived for the block > - It assumes that getBlockLocations returns an up-to-date length block after a sync, which is false. It happens to work because it calls getBlockLocations directly on the NN, and thus gets a direct reference to the block in the blockmap, which later gets updated > This patch fixes this test to use the AppendTestUtil functions to intiiate recovery, and generally pass more reliably. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira