Return-Path: Delivered-To: apmail-lucene-hadoop-dev-archive@locus.apache.org Received: (qmail 12909 invoked from network); 11 Dec 2007 01:03:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Dec 2007 01:03:04 -0000 Received: (qmail 21973 invoked by uid 500); 11 Dec 2007 01:02:52 -0000 Delivered-To: apmail-lucene-hadoop-dev-archive@lucene.apache.org Received: (qmail 21941 invoked by uid 500); 11 Dec 2007 01:02:52 -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 21932 invoked by uid 99); 11 Dec 2007 01:02:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Dec 2007 17:02:52 -0800 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; Tue, 11 Dec 2007 01:02:39 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 205DC714233 for ; Mon, 10 Dec 2007 17:02:43 -0800 (PST) Message-ID: <21899045.1197334963130.JavaMail.jira@brutus> Date: Mon, 10 Dec 2007 17:02:43 -0800 (PST) From: "dhruba borthakur (JIRA)" To: hadoop-dev@lucene.apache.org Subject: [jira] Commented: (HADOOP-2401) Lease holder information should be passed in ClientProtocol.abandonBlock(...) In-Reply-To: <7148888.1197331963202.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-2401?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12550257 ] dhruba borthakur commented on HADOOP-2401: ------------------------------------------ +1 code looks good. I guess it will be difficult to write a unit test for this one, is that right? > Lease holder information should be passed in ClientProtocol.abandonBlock(...) > ----------------------------------------------------------------------------- > > Key: HADOOP-2401 > URL: https://issues.apache.org/jira/browse/HADOOP-2401 > Project: Hadoop > Issue Type: Improvement > Components: dfs > Affects Versions: 0.15.0 > Reporter: Tsz Wo (Nicholas), SZE > Assignee: Tsz Wo (Nicholas), SZE > Fix For: 0.16.0 > > Attachments: 2401_20071210.patch > > > Logically, only the lease holder can do abandonBlock(...). However, since the file is visible to the other clients once it has been created. It is possible for the other client to obtain block information for a file which is being created (i.e. not called complete(String, String) yet). Then, they can do abandonBlock(...) with the obtained block information. > I suggest to add lease holder information as a parameter in abandonBlock(...). So that we can make sure only the lease holder can do abandonBlock(...). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.