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 82C72200C82 for ; Sat, 13 May 2017 05:46:08 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 813B8160BC8; Sat, 13 May 2017 03: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 C6C48160BB8 for ; Sat, 13 May 2017 05:46:07 +0200 (CEST) Received: (qmail 11789 invoked by uid 500); 13 May 2017 03: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 11778 invoked by uid 99); 13 May 2017 03:46:06 -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; Sat, 13 May 2017 03:46:06 +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 5396EC0273 for ; Sat, 13 May 2017 03: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-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 4SvBbduJqRat for ; Sat, 13 May 2017 03:46:05 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 16E855F4EE for ; Sat, 13 May 2017 03:46:05 +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 576F6E05A2 for ; Sat, 13 May 2017 03:46:04 +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 176E724015 for ; Sat, 13 May 2017 03:46:04 +0000 (UTC) Date: Sat, 13 May 2017 03:46:04 +0000 (UTC) From: "Hudson (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-18014) A case of Region remain unassigned when table enabled MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 13 May 2017 03:46:08 -0000 [ https://issues.apache.org/jira/browse/HBASE-18014?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16009106#comment-16009106 ] Hudson commented on HBASE-18014: -------------------------------- SUCCESS: Integrated in Jenkins build HBase-1.3-JDK8 #177 (See [https://builds.apache.org/job/HBase-1.3-JDK8/177/]) HBASE-18014 A case of Region remain unassigned when table enabled (Allan (apurtell: rev 36ebe05fc9013fe27ba0eca410ed11e5c5b112cb) * (edit) hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestAdmin2.java * (edit) hbase-server/src/main/java/org/apache/hadoop/hbase/master/AssignmentManager.java > A case of Region remain unassigned when table enabled > ----------------------------------------------------- > > Key: HBASE-18014 > URL: https://issues.apache.org/jira/browse/HBASE-18014 > Project: HBase > Issue Type: Bug > Affects Versions: 1.4.0, 1.1.10 > Reporter: Allan Yang > Assignee: Allan Yang > Fix For: 1.4.0, 1.3.2 > > Attachments: HBASE-18014-branch-1.patch, HBASE-18014-branch-1.v2.patch > > > Reproduce procedure: > 1. Create a table, say the regions of this table are opened on RS1 > 2. Disable this table > 3. Abort RS1 and wait for SSH to complete > 4. Wait for a while, RS1 will be deleted from processedServers(a HashMap in {{RegionState}} to store processed dead servers) > 5. Enable the table, then the region of the table will remain unassigned until master restarts. > Why? > When assigning regions after the table enabled, AssignmentManager will check whether those regions are on servers which are dead but not processed, since RS1 already have deleted from the map of 'processedServers'. Then the AssignmentManager think this region is on a dead but not processed server. So it will skip assign, let the region be handled by SSH. > {code:java} > case OFFLINE: > if (useZKForAssignment > && regionStates.isServerDeadAndNotProcessed(sn) > && wasRegionOnDeadServerByMeta(region, sn)) { > if (!regionStates.isRegionInTransition(region)) { > LOG.info("Updating the state to " + State.OFFLINE + " to allow to be reassigned by SSH"); > regionStates.updateRegionState(region, State.OFFLINE); > } > LOG.info("Skip assigning " + region.getRegionNameAsString() > + ", it is on a dead but not processed yet server: " + sn); > return null; > } > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346)