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 5AB42200D2B for ; Thu, 2 Nov 2017 19:42:07 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 59517160BE5; Thu, 2 Nov 2017 18:42:07 +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 9C9DD1609EB for ; Thu, 2 Nov 2017 19:42:06 +0100 (CET) Received: (qmail 54380 invoked by uid 500); 2 Nov 2017 18:42:05 -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 54369 invoked by uid 99); 2 Nov 2017 18:42:05 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Nov 2017 18:42:05 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 431D6181A26 for ; Thu, 2 Nov 2017 18:42:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, 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 (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id t6ttS9ulooUW for ; Thu, 2 Nov 2017 18:42:03 +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 4802D61177 for ; Thu, 2 Nov 2017 18:42:02 +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 692D1E2593 for ; Thu, 2 Nov 2017 18:42:01 +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 D7AEF24172 for ; Thu, 2 Nov 2017 18:42:00 +0000 (UTC) Date: Thu, 2 Nov 2017 18:42:00 +0000 (UTC) From: "churro morales (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (HBASE-19144) [RSgroups] Retry assignments in FAILED_OPEN state when servers (re)join the cluster MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 02 Nov 2017 18:42:07 -0000 [ https://issues.apache.org/jira/browse/HBASE-19144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16236362#comment-16236362 ] churro morales edited comment on HBASE-19144 at 11/2/17 6:41 PM: ----------------------------------------------------------------- lgtm, Should we first check there is at least one server up? the master patch looks good because we have a serverAdded. In the branch-1.4 patch looks like we only have serverChanged. So this case we could kick this off when we don't have any servers from our group up yet? We could just do a wait for at least one server to come up, but i don't know if thats overkill something like {code} while (Collections.disjoint(masterServices.getServerManager().getOnlineServersList(), RSGroupInfoManagerImpl.this.getDefaultServers()) { //wait } {code} might be overkill but looks like not necessary in the master branch, only 1.4 was (Author: churromorales): lgtm, Should we first check there is at least one server up? the master patch looks good because we have a serverAdded. In the branch-1.4 patch looks like we only have serverChanged. So this case we could kick this off when we don't have any servers from our group up yet? We could just do a wait for at least one server to come up, but i don't know if thats overkill something like {code} while (Collections.disjoint(masterServices.getServerManager().getOnlineServersList(), RSGroupInfoManagerImpl.this.getDefaultServers()) { //wait } {code} might be overkill but otherwise lgtm! > [RSgroups] Retry assignments in FAILED_OPEN state when servers (re)join the cluster > ----------------------------------------------------------------------------------- > > Key: HBASE-19144 > URL: https://issues.apache.org/jira/browse/HBASE-19144 > Project: HBase > Issue Type: Bug > Reporter: Andrew Purtell > Assignee: Andrew Purtell > Priority: Major > Fix For: 2.0.0, 3.0.0, 1.4.0, 1.5.0 > > Attachments: HBASE-19144-branch-1.patch, HBASE-19144.patch > > > After all servers in the RSgroup are down the regions cannot be opened anywhere and transition rapidly into FAILED_OPEN state. > > 2017-10-31 21:06:25,449 INFO [ProcedureExecutor-13] master.RegionStates: Transition {c6c8150c9f4b8df25ba32073f25a5143 state=OFFLINE, ts=1509483985448, server=node-5.cluster,16020,1509482700768} to {c6c8150c9f4b8df25ba32073f25a5143 state=FAILED_OPEN, ts=1509483985449, server=node-5.cluster,16020,1509482700768} > 2017-10-31 21:06:25,449 WARN [ProcedureExecutor-13] master.RegionStates: Failed to open/close d4e2f173e31ffad6aac140f4bd7b02bc on node-5.cluster,16020,1509482700768, set to FAILED_OPEN > > Any region in FAILED_OPEN state has to be manually reassigned, or the master can be restarted and this will also cause reattempt of assignment of any regions in FAILED_OPEN state. This is not unexpected but is an operational headache. It would be better if the RSGroupInfoManager could automatically kick reassignments of regions in FAILED_OPEN state when servers rejoin the cluster. -- This message was sent by Atlassian JIRA (v6.4.14#64029)