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 4EAE118B55 for ; Mon, 26 Oct 2015 18:03:02 +0000 (UTC) Received: (qmail 40318 invoked by uid 500); 26 Oct 2015 18:02:28 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 40227 invoked by uid 500); 26 Oct 2015 18:02:28 -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 40196 invoked by uid 99); 26 Oct 2015 18:02:27 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Oct 2015 18:02:27 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id CFA6C2C1F57 for ; Mon, 26 Oct 2015 18:02:27 +0000 (UTC) Date: Mon, 26 Oct 2015 18:02:27 +0000 (UTC) From: "Chris Nauroth (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-12508) delete fails with exception when lease is held on blob 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-12508?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14974678#comment-14974678 ] Chris Nauroth commented on HADOOP-12508: ---------------------------------------- Thank you for the further details, [~gouravk]. It sounds like the root cause here is likely a difference in the lease semantics of WASB compared to HDFS. In HDFS, a delete operation succeeds despite another concurrent client holding a lease on that path. In WASB, it fails due to the lease enforcement of the backing Azure Storage. Would it be a potential improvement to break the lease explicitly? The downside of the current patch is that a client calling delete on a path with a lease held and the leasing process still alive will suffer up to 60 seconds additional latency. If the lease was broken explicitly, then you could send a shorter x-ms-lease-break-period to avoid that latency. > delete fails with exception when lease is held on blob > ------------------------------------------------------ > > Key: HADOOP-12508 > URL: https://issues.apache.org/jira/browse/HADOOP-12508 > Project: Hadoop Common > Issue Type: Bug > Reporter: Gaurav Kanade > Assignee: Gaurav Kanade > Priority: Blocker > Attachments: HADOOP-12508.01.patch, HADOOP-12508.02.patch > > > The delete function as implemented by AzureNativeFileSystem store attempts delete without a lease. In most cases this works but in the case of a dangling lease resulting out of say a process killed and leaving a lease dangling for a small period a delete attempted during this period simply crashes. This fix addresses the situation by re-attempting the delete after a lease acqusition in this case -- This message was sent by Atlassian JIRA (v6.3.4#6332)