Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 5BAAF200BC1 for ; Wed, 2 Nov 2016 03:15:01 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 5A0A2160B0A; Wed, 2 Nov 2016 02:15:01 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C7BB7160B02 for ; Wed, 2 Nov 2016 03:15:00 +0100 (CET) Received: (qmail 81629 invoked by uid 500); 2 Nov 2016 02:14:59 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 81597 invoked by uid 99); 2 Nov 2016 02:14:59 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Nov 2016 02:14:59 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 9EC882C14F9 for ; Wed, 2 Nov 2016 02:14:59 +0000 (UTC) Date: Wed, 2 Nov 2016 02:14:59 +0000 (UTC) From: "Stephen Yuan Jiang (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-16865) Procedure v2 - Inherit lock from root proc MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 02 Nov 2016 02:15:01 -0000 [ https://issues.apache.org/jira/browse/HBASE-16865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15627385#comment-15627385 ] Stephen Yuan Jiang commented on HBASE-16865: -------------------------------------------- Since we always passes down lock from root, that is why I also suggestion to just check root - {{return proc.hasParent() && isLockOwner(proc.getRootProcId());}} > Procedure v2 - Inherit lock from root proc > ------------------------------------------ > > Key: HBASE-16865 > URL: https://issues.apache.org/jira/browse/HBASE-16865 > Project: HBase > Issue Type: Sub-task > Components: proc-v2 > Affects Versions: 2.0.0 > Reporter: Matteo Bertozzi > Assignee: Matteo Bertozzi > Fix For: 2.0.0 > > Attachments: HBASE-16865-v0.patch > > > At the moment we support inheriting locks from the parent procedure for a 2 level procedures, but in case of reopen table regions we have a 3 level procedures (ModifyTable -> ReOpen -> [Unassign/Assign]) and reopen does not have any locks on its own. -- This message was sent by Atlassian JIRA (v6.3.4#6332)