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 B123F200BE2 for ; Thu, 1 Dec 2016 06:16:01 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id AFC60160B21; Thu, 1 Dec 2016 05:16: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 2B42D160B13 for ; Thu, 1 Dec 2016 06:16:01 +0100 (CET) Received: (qmail 49223 invoked by uid 500); 1 Dec 2016 05:16:00 -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 49190 invoked by uid 99); 1 Dec 2016 05:15:59 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Dec 2016 05:15:59 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id B52312C2A67 for ; Thu, 1 Dec 2016 05:15:59 +0000 (UTC) Date: Thu, 1 Dec 2016 05:15:59 +0000 (UTC) From: "Guanghao Zhang (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-17205) Add a metric for the duration of region in transition MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 01 Dec 2016 05:16:01 -0000 [ https://issues.apache.org/jira/browse/HBASE-17205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15710926#comment-15710926 ] Guanghao Zhang commented on HBASE-17205: ---------------------------------------- Failed ut are related to HBASE-17212. > Add a metric for the duration of region in transition > ----------------------------------------------------- > > Key: HBASE-17205 > URL: https://issues.apache.org/jira/browse/HBASE-17205 > Project: HBase > Issue Type: Improvement > Components: Region Assignment > Affects Versions: 2.0.0, 1.4.0 > Reporter: Guanghao Zhang > Assignee: Guanghao Zhang > Priority: Minor > Attachments: HBASE-17205-branch-1.patch, HBASE-17205-v1.patch, HBASE-17205.patch > > > When work for HBASE-17178, I found there are not a metric for the overall duration of region in transition. When move a region form A to B, the transformation of region state is PENDING_CLOSE => CLOSING => CLOSED => PENDING_OPEN => OPENING => OPENED. When transform old region state to new region state, it update the time stamp to current time. So we can't get the overall transformation's duration of region in transition. Add a rit duration to RegionState for accumulating this metric. -- This message was sent by Atlassian JIRA (v6.3.4#6332)