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 436AE11A2C for ; Mon, 5 May 2014 00:59:24 +0000 (UTC) Received: (qmail 20482 invoked by uid 500); 5 May 2014 00:59:17 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 20368 invoked by uid 500); 5 May 2014 00:59:16 -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 20343 invoked by uid 99); 5 May 2014 00:59:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 May 2014 00:59:15 +0000 Date: Mon, 5 May 2014 00:59:15 +0000 (UTC) From: "Fengdong Yu (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-6338) Add a RPC method to allow administrator to delete the file lease. 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-6338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13989220#comment-13989220 ] Fengdong Yu commented on HDFS-6338: ----------------------------------- Ted, recoverLease() is not I want, which is revoke the lease. but I aim to delete the lease. explain in detail: DFSClient can generate a clientID such as NOMAPREDUCE-1000 before write file-a on HDFS, but it was interrupted and not closed normally. then I try to write it again, DFSClient will generate annothe clientID, such as NOMAPREDUCE-1001, then it throw an exception such as : failed to create file because this file is already being created by NOMAPREDUCE-1000. So I have to waite NOMAPREDUCE-1000 expire. > Add a RPC method to allow administrator to delete the file lease. > ----------------------------------------------------------------- > > Key: HDFS-6338 > URL: https://issues.apache.org/jira/browse/HDFS-6338 > Project: Hadoop HDFS > Issue Type: New Feature > Components: namenode > Affects Versions: 2.4.0 > Reporter: Fengdong Yu > Assignee: Fengdong Yu > Priority: Minor > > we have to wait file lease expire after unexpected interrupt during HDFS writing. so I want to add a RPC method to allow administrator delete the file lease. > Please leave comments here, I am workong on the patch now. -- This message was sent by Atlassian JIRA (v6.2#6252)