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 8A6909C19 for ; Tue, 1 May 2012 20:33:14 +0000 (UTC) Received: (qmail 57810 invoked by uid 500); 1 May 2012 20:33:14 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 57764 invoked by uid 500); 1 May 2012 20:33:14 -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 57754 invoked by uid 99); 1 May 2012 20:33:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 May 2012 20:33:14 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_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; Tue, 01 May 2012 20:33:12 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 8AB0742A68E for ; Tue, 1 May 2012 20:32:52 +0000 (UTC) Date: Tue, 1 May 2012 20:32:52 +0000 (UTC) From: "Alejandro Abdelnur (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <1637437463.14436.1335904372577.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1197524108.14166.1335901132798.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (HDFS-3337) HDFS command fails with exception following merge of HADOOP-8325 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-3337?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alejandro Abdelnur updated HDFS-3337: ------------------------------------- Attachment: HDFS-3337.patch My bad, I've missed the removal of the shutdownhook from the closing iteration. Attached is a patch that removes the removal of the shutdownhook from the Cache when the cache is empty. In such situation the shutdownhook will remain and will just do a NOP. Randy, would you please give it a try? don't see how to test this properly from a testcase. thxs > HDFS command fails with exception following merge of HADOOP-8325 > ---------------------------------------------------------------- > > Key: HDFS-3337 > URL: https://issues.apache.org/jira/browse/HDFS-3337 > Project: Hadoop HDFS > Issue Type: Bug > Components: hdfs client > Affects Versions: 2.0.0 > Environment: QE tests on version 2.0.1205010603 > Reporter: Randy Clayton > Assignee: Alejandro Abdelnur > Attachments: HDFS-3337.patch > > > We are seeing most hdfs commands in our nightly acceptance tests fail with an exception as shown below. This started with a few hours of the merge of HADOOP-8325 on 4/30/2012 > hdfs --config conf/hadoop/ dfs -ls dirname > ls: `dirname': No such file or directory > 12/05/01 16:57:52 WARN util.ShutdownHookManager: ShutdownHook 'ClientFinalizer' failed, java.lang.IllegalStateException: Shutdown in progress, cannot remove a shutdownHook > java.lang.IllegalStateException: Shutdown in progress, cannot remove a shutdownHook > at org.apache.hadoop.util.ShutdownHookManager.removeShutdownHook(ShutdownHookManager.java:166) > at org.apache.hadoop.fs.FileSystem$Cache.remove(FileSystem.java:2202) > at org.apache.hadoop.fs.FileSystem$Cache.closeAll(FileSystem.java:2231) > at org.apache.hadoop.fs.FileSystem$Cache$ClientFinalizer.run(FileSystem.java:2251) > at org.apache.hadoop.util.ShutdownHookManager$1.run(ShutdownHookManager.java:54) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira