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 E6D7D200C8E for ; Thu, 25 May 2017 01:46:08 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E5786160BD7; Wed, 24 May 2017 23:46:08 +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 3788B160BB6 for ; Thu, 25 May 2017 01:46:08 +0200 (CEST) Received: (qmail 43974 invoked by uid 500); 24 May 2017 23:46:07 -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 43963 invoked by uid 99); 24 May 2017 23:46:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 May 2017 23:46:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id D6D09CAA33 for ; Wed, 24 May 2017 23:46:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id CBBsAQ5EB2-Q for ; Wed, 24 May 2017 23:46:06 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 0FD7C5FC4D for ; Wed, 24 May 2017 23:46:06 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 3618BE0DD1 for ; Wed, 24 May 2017 23:46:05 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 65F8123FDE for ; Wed, 24 May 2017 23:46:04 +0000 (UTC) Date: Wed, 24 May 2017 23:46:04 +0000 (UTC) From: "stack (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HBASE-18105) [AMv2] Split/Merge need cleanup; currently they diverge and do not fully embrace AMv2 world MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 24 May 2017 23:46:09 -0000 stack created HBASE-18105: ----------------------------- Summary: [AMv2] Split/Merge need cleanup; currently they diver= ge and do not fully embrace AMv2 world Key: HBASE-18105 URL: https://issues.apache.org/jira/browse/HBASE-18105 Project: HBase Issue Type: Sub-task Components: Region Assignment Affects Versions: 2.0.0 Reporter: stack Region Split and Merge work on the new AMv2 but they work differently. This= issue is about bringing them back together and fully embracing the AMv2 pr= ogram. They both have issues mostly the fact that they carry around baggage no lon= ger necessary in the new world of assignment. Here are some of the items: Split and Merge metadata modifications are done by the Master now but we ha= ve vestige of Split/Merge on RS still; e.g. when we SPLIT, we ask the Maste= r which asks the RS, which turns around, and asks the Master to run the ope= ration. Fun. MERGE is all done Master-side. =20 Clean this up. Remove asking RS to run SPLIT and remove RegionMergeRequest,= etc. on RS-side. Also remove PONR. We don=E2=80=99t Points-Of-No-Return no= w we are up on Pv2. Remove all calls in Interfaces; they are unused. Make R= S still able to detect when split, but have it be a client of Master like a= nyone else. Split is Async but does not return procId Split is async. Doesn=E2=80=99t return the procId though. Merge does. Fix. = Only hard part here I think is the Admin API does not allow procid return. Flags Currently OFFLINE is determined by looking either at the master instance of= HTD (isOffline) and/or at the RegionState#state. Ditto for SPLIT. For MERG= E, we rely on RegionState#state. Related is a note above on how split works= -- there is a split flag in HTD when there should not be. =20 TODO is move to rely on RegionState#state exclusively in Master. From Split/Merge Procedures need finishing in https://docs.google.com/docum= ent/d/1eVKa7FHdeoJ1-9o8yZcOTAQbv0u0bblBlCCzVSIn69g/edit#heading=3Dh.4b60dc1= h4m1f -- This message was sent by Atlassian JIRA (v6.3.15#6346)