Return-Path: Delivered-To: apmail-hadoop-hbase-dev-archive@locus.apache.org Received: (qmail 74520 invoked from network); 31 Mar 2008 19:04:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Mar 2008 19:04:49 -0000 Received: (qmail 72513 invoked by uid 500); 31 Mar 2008 19:04:49 -0000 Delivered-To: apmail-hadoop-hbase-dev-archive@hadoop.apache.org Received: (qmail 72499 invoked by uid 500); 31 Mar 2008 19:04:49 -0000 Mailing-List: contact hbase-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hbase-dev@hadoop.apache.org Delivered-To: mailing list hbase-dev@hadoop.apache.org Received: (qmail 72490 invoked by uid 99); 31 Mar 2008 19:04:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Mar 2008 12:04:49 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Mar 2008 19:04:07 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C35DD234C0B3 for ; Mon, 31 Mar 2008 12:02:24 -0700 (PDT) Message-ID: <1805801660.1206990144799.JavaMail.jira@brutus> Date: Mon, 31 Mar 2008 12:02:24 -0700 (PDT) From: "Jim Kellerman (JIRA)" To: hbase-dev@hadoop.apache.org Subject: [jira] Updated: (HBASE-543) A region's state is kept in several places in the master opening the possibility for race conditions In-Reply-To: <110325218.1206397644432.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/HBASE-543?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jim Kellerman updated HBASE-543: -------------------------------- Description: A region's state exists in multiple maps in the RegionManager: unassignedRegions, pendingRegions, regionsToClose, closingRegions, regionsToDelete, etc. One of these race conditions was found in HBASE-534. For HBase-0.1.x, we should just patch the holes we find. The ultimate solution (which requires a lot of changes in HMaster) should be applied to HBase trunk. Proposed solution: Create a class that encapsulates a region's state and provide synchronized access to the class that validates state changes. There should be a single structure that holds regions in these transitional states and it should be a synchronized collection of some kind. was: A region's state exists in multiple maps in the RegionManager: unassignedRegions, pendingRegions, regionsToClose, closingRegions, regionsToDelete, etc. One of these race conditions was found in HBASE-534. Proposed solution: Create a class that encapsulates a region's state and provide synchronized access to the class that validates state changes. There should be a single structure that holds regions in these transitional states and it should be a synchronized collection of some kind. > A region's state is kept in several places in the master opening the possibility for race conditions > ---------------------------------------------------------------------------------------------------- > > Key: HBASE-543 > URL: https://issues.apache.org/jira/browse/HBASE-543 > Project: Hadoop HBase > Issue Type: Bug > Components: master > Affects Versions: 0.2.0, 0.1.1, 0.1.0 > Reporter: Jim Kellerman > Assignee: Jim Kellerman > Fix For: 0.2.0, 0.1.1 > > > A region's state exists in multiple maps in the RegionManager: unassignedRegions, pendingRegions, regionsToClose, closingRegions, regionsToDelete, etc. > One of these race conditions was found in HBASE-534. > For HBase-0.1.x, we should just patch the holes we find. > The ultimate solution (which requires a lot of changes in HMaster) should be applied to HBase trunk. > Proposed solution: > Create a class that encapsulates a region's state and provide synchronized access to the class that validates state changes. > There should be a single structure that holds regions in these transitional states and it should be a synchronized collection of some kind. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.