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 9D3922009C6 for ; Tue, 17 May 2016 04:55:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9A257160A1F; Tue, 17 May 2016 02:55:14 +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 13415160A16 for ; Tue, 17 May 2016 04:55:13 +0200 (CEST) Received: (qmail 29380 invoked by uid 500); 17 May 2016 02:55:13 -0000 Mailing-List: contact dev-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list dev@hbase.apache.org Received: (qmail 29360 invoked by uid 99); 17 May 2016 02:55:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 May 2016 02:55:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id D7EF82C1F58 for ; Tue, 17 May 2016 02:55:12 +0000 (UTC) Date: Tue, 17 May 2016 02:55:12 +0000 (UTC) From: "Matteo Bertozzi (JIRA)" To: dev@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HBASE-15843) Replace RegionState.getRegionInTransition() Map with a Set MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 17 May 2016 02:55:14 -0000 Matteo Bertozzi created HBASE-15843: --------------------------------------- Summary: Replace RegionState.getRegionInTransition() Map with a Set Key: HBASE-15843 URL: https://issues.apache.org/jira/browse/HBASE-15843 Project: HBase Issue Type: Improvement Components: master, Region Assignment Affects Versions: 1.2.1, 2.0.0, 1.3.0 Reporter: Matteo Bertozzi Assignee: Matteo Bertozzi Priority: Trivial Fix For: 2.0.0 RegionState.getRegionInTransition() is always used as a Set. replace the Map with a Set, avoid some allocation and extra code. also ClusterStatus.RegionInTransition has duplicated information. The spec field contains the regionName (not encoded). but we have the same info as part of the region_state with the HRegionInfo serialized. unfortunately I don't think we can get rid of 'spec' that being a required field. {noformat} message RegionInTransition { required RegionSpecifier spec = 1; required RegionState region_state = 2; } {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)