Return-Path: Delivered-To: apmail-lucene-hadoop-dev-archive@locus.apache.org Received: (qmail 2047 invoked from network); 25 Apr 2007 21:03:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Apr 2007 21:03:36 -0000 Received: (qmail 2580 invoked by uid 500); 25 Apr 2007 21:03:43 -0000 Delivered-To: apmail-lucene-hadoop-dev-archive@lucene.apache.org Received: (qmail 2547 invoked by uid 500); 25 Apr 2007 21:03:43 -0000 Mailing-List: contact hadoop-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hadoop-dev@lucene.apache.org Delivered-To: mailing list hadoop-dev@lucene.apache.org Received: (qmail 2533 invoked by uid 99); 25 Apr 2007 21:03:43 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Apr 2007 14:03:43 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Apr 2007 14:03:35 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 91029714077 for ; Wed, 25 Apr 2007 14:03:15 -0700 (PDT) Message-ID: <13075321.1177534995591.JavaMail.jira@brutus> Date: Wed, 25 Apr 2007 14:03:15 -0700 (PDT) From: "dhruba borthakur (JIRA)" To: hadoop-dev@lucene.apache.org Subject: [jira] Commented: (HADOOP-1220) block not found in blockMap In-Reply-To: <2516872.1175897012800.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-1220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12491772 ] dhruba borthakur commented on HADOOP-1220: ------------------------------------------ I am not too inclined to put in a check to f.exists() after every call to f.delete(). If you are doubting the correctness of f.delete() then what guarantees does f.exists() have? But I am printing the full path of the file when a file gets deleted, earlier it was only printing the blockid. This message might help in determining if we are deleting the correct file or not. > block not found in blockMap > --------------------------- > > Key: HADOOP-1220 > URL: https://issues.apache.org/jira/browse/HADOOP-1220 > Project: Hadoop > Issue Type: Bug > Components: dfs > Reporter: Koji Noguchi > Assigned To: dhruba borthakur > Attachments: datanodeDeleteBlocks.patch > > > From Hadoop-973 debug message, we had datanode constantly printing out the following message. > ... > 2007-04-02 23:59:50,122 WARN org.apache.hadoop.dfs.DataNode: java.io.IOException: Unexpected error trying to delete block blk_-3400783150525166031. Block not found in blockMap. > at org.apache.hadoop.dfs.FSDataset.invalidate(FSDataset.java:596) > at org.apache.hadoop.dfs.DataNode.offerService(DataNode.java:460) > at org.apache.hadoop.dfs.DataNode.run(DataNode.java:1053) > at java.lang.Thread.run(Thread.java:619) > 2007-04-02 23:59:50,433 INFO org.apache.hadoop.dfs.DataNode: Served block blk_-8672111663356339464 to /72.30.127.164 > 2007-04-02 23:59:52,993 WARN org.apache.hadoop.dfs.DataNode: java.io.IOException: Unexpected error trying to delete block blk_-3400783150525166031. Block not found in blockMap. > at org.apache.hadoop.dfs.FSDataset.invalidate(FSDataset.java:596) > at org.apache.hadoop.dfs.DataNode.offerService(DataNode.java:460) > at org.apache.hadoop.dfs.DataNode.run(DataNode.java:1053) > at java.lang.Thread.run(Thread.java:619) > .... > Ten minutes before these logs, there was > 2007-04-02 20:42:49,648 INFO org.apache.hadoop.dfs.DataNode: Deleting block blk_-3400783150525166031 > There was a file for that block in the directory. > /../../hadoop/dfs/data/data/subdir17/blk_-3400783150525166031 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.