Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-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 7DCEFD818 for ; Sun, 23 Sep 2012 13:59:09 +0000 (UTC) Received: (qmail 92225 invoked by uid 500); 23 Sep 2012 13:59:09 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 92181 invoked by uid 500); 23 Sep 2012 13:59:09 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 92172 invoked by uid 99); 23 Sep 2012 13:59:09 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Sep 2012 13:59:09 +0000 Date: Mon, 24 Sep 2012 00:59:09 +1100 (NCT) From: "Hudson (JIRA)" To: common-issues@hadoop.apache.org Message-ID: <943329283.113695.1348408749089.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (HADOOP-8158) Interrupting hadoop fs -put from the command line causes a LeaseExpiredException 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/HADOOP-8158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13461419#comment-13461419 ] Hudson commented on HADOOP-8158: -------------------------------- Integrated in Hadoop-Mapreduce-trunk #1205 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk/1205/]) HADOOP-8158. Interrupting hadoop fs -put from the command line causes a LeaseExpiredException. Contributed by Daryn Sharp. (harsh) (Revision 1389010) Result = SUCCESS harsh : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1389010 Files : * /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt * /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSClient.java * /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DistributedFileSystem.java * /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDistributedFileSystem.java > Interrupting hadoop fs -put from the command line causes a LeaseExpiredException > -------------------------------------------------------------------------------- > > Key: HADOOP-8158 > URL: https://issues.apache.org/jira/browse/HADOOP-8158 > Project: Hadoop Common > Issue Type: Bug > Affects Versions: 0.23.0 > Reporter: Todd Lipcon > Assignee: Daryn Sharp > Fix For: 3.0.0 > > Attachments: HADOOP-8158.patch, HADOOP-8158.patch > > > If you run "hadoop fs -put - foo", write a few lines, then ^C it from the shell, about half the time you will get a LeaseExpiredException. It seems like the shell is first calling {{delete()}} on the file, then calling {{close()}} on the stream. The {{close}} call fails since the {{delete}} call kills the lease. I saw this on trunk but my guess is that it affects 23 also. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira