From issues-return-337207-archive-asf-public=cust-asf.ponee.io@hbase.apache.org Thu Mar 8 07:52:05 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id E195F18064C for ; Thu, 8 Mar 2018 07:52:04 +0100 (CET) Received: (qmail 77346 invoked by uid 500); 8 Mar 2018 06:52:03 -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 77335 invoked by uid 99); 8 Mar 2018 06:52:03 -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, 08 Mar 2018 06:52:03 +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 DAD4C180119 for ; Thu, 8 Mar 2018 06:52:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.311 X-Spam-Level: X-Spam-Status: No, score=-110.311 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, 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 LxUKUa56_3Rq for ; Thu, 8 Mar 2018 06:52:01 +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 08EB55F216 for ; Thu, 8 Mar 2018 06:52:01 +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 5C081E015D for ; Thu, 8 Mar 2018 06:52:00 +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 1895A253FF for ; Thu, 8 Mar 2018 06:52:00 +0000 (UTC) Date: Thu, 8 Mar 2018 06:52:00 +0000 (UTC) From: "stack (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-20152) [AMv2] DisableTableProcedure versus ServerCrashProcedure MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-20152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] stack updated HBASE-20152: -------------------------- Description: Seeing a small spate of issues where disabled tables/regions are being assigned. Usually they happen when a DisableTableProcedure is running concurrent with a ServerCrashProcedure. See below. See associated HBASE-20131. This is umbrella issue for fixing. h3. Deadlock From HBASE-20137, 'TestRSGroups is Flakey', https://issues.apache.org/jira/browse/HBASE-20137?focusedCommentId=16390325&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-16390325 {code} * SCP is running because a server was aborted in test. * SCP starts AssignProcedure of region X from crashed server. * DisableTable Procedure runs because test has finished and we're doing table delete. Queues * UnassignProcedure for region X. * Disable Unassign gets Lock on region X first. * SCP AssignProcedure tries to get lock, waits on lock. * DisableTable Procedure UnassignProcedure RPC fails because server is down (Thats why the SCP). * Tries to expire the server it failed the RPC against. Fails (currently being SCP'd). * DisableTable Procedure Unassign is suspended. It is a suspend with lock on region X held * SCP can't run because lock on X is held * Test timesout. {code} h3. Delete of online Regions Saw this in nightly failure #452 for branch-2 in TestSplitTransactionOnCluster.org.apache.hadoop.hbase.regionserver.TestSplitTransactionOnCluster {code} * DisableTableProcedure is queued before SCP. * DisableTableProcedure Unassign fails because can't RPC to crashed server and can't expire. * Unassign is Stuck in suspend. * SCP runs and cleans up suspended Disable Unassign. * SCP completes which includes assign of Disable Unassign region. * Disable Unassign completes * Disable completes. * A scheduled Drop Table Procedure runs (its end of test). * Succeeds deleting regions that are actually assigned (see above where SCP assigned region). {code} was: Seeing a small spate of issues where disabled tables/regions are being assigned. Usually they happen when a DisableTableProcedure is running concurrent with a ServerCrashProcedure. See below. See associated HBASE-20131. This is umbrella issue for fixing. .h2 Deadlock From HBASE-20137, 'TestRSGroups is Flakey', https://issues.apache.org/jira/browse/HBASE-20137?focusedCommentId=16390325&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-16390325 {code} * SCP is running because a server was aborted in test. * SCP starts AssignProcedure of region X from crashed server. * DisableTable Procedure runs because test has finished and we're doing table delete. Queues * UnassignProcedure for region X. * Disable Unassign gets Lock on region X first. * SCP AssignProcedure tries to get lock, waits on lock. * DisableTable Procedure UnassignProcedure RPC fails because server is down (Thats why the SCP). * Tries to expire the server it failed the RPC against. Fails (currently being SCP'd). * DisableTable Procedure Unassign is suspended. It is a suspend with lock on region X held * SCP can't run because lock on X is held * Test timesout. {code} .h2 Delete of online Regions Saw this in nightly failure #452 for branch-2 in TestSplitTransactionOnCluster.org.apache.hadoop.hbase.regionserver.TestSplitTransactionOnCluster {code} * DisableTableProcedure is queued before SCP. * DisableTableProcedure Unassign fails because can't RPC to crashed server and can't expire. * Unassign is Stuck in suspend. * SCP runs and cleans up suspended Disable Unassign. * SCP completes which includes assign of Disable Unassign region. * Disable Unassign completes * Disable completes. * A scheduled Drop Table Procedure runs (its end of test). * Succeeds deleting regions that are actually assigned (see above where SCP assigned region). {code} > [AMv2] DisableTableProcedure versus ServerCrashProcedure > -------------------------------------------------------- > > Key: HBASE-20152 > URL: https://issues.apache.org/jira/browse/HBASE-20152 > Project: HBase > Issue Type: Bug > Components: amv2 > Reporter: stack > Assignee: stack > Priority: Major > > Seeing a small spate of issues where disabled tables/regions are being assigned. Usually they happen when a DisableTableProcedure is running concurrent with a ServerCrashProcedure. See below. See associated HBASE-20131. This is umbrella issue for fixing. > h3. Deadlock > From HBASE-20137, 'TestRSGroups is Flakey', https://issues.apache.org/jira/browse/HBASE-20137?focusedCommentId=16390325&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-16390325 > {code} > * SCP is running because a server was aborted in test. > * SCP starts AssignProcedure of region X from crashed server. > * DisableTable Procedure runs because test has finished and we're doing table delete. Queues > * UnassignProcedure for region X. > * Disable Unassign gets Lock on region X first. > * SCP AssignProcedure tries to get lock, waits on lock. > * DisableTable Procedure UnassignProcedure RPC fails because server is down (Thats why the SCP). > * Tries to expire the server it failed the RPC against. Fails (currently being SCP'd). > * DisableTable Procedure Unassign is suspended. It is a suspend with lock on region X held > * SCP can't run because lock on X is held > * Test timesout. > {code} > h3. Delete of online Regions > Saw this in nightly failure #452 for branch-2 in TestSplitTransactionOnCluster.org.apache.hadoop.hbase.regionserver.TestSplitTransactionOnCluster > {code} > * DisableTableProcedure is queued before SCP. > * DisableTableProcedure Unassign fails because can't RPC to crashed server and can't expire. > * Unassign is Stuck in suspend. > * SCP runs and cleans up suspended Disable Unassign. > * SCP completes which includes assign of Disable Unassign region. > * Disable Unassign completes > * Disable completes. > * A scheduled Drop Table Procedure runs (its end of test). > * Succeeds deleting regions that are actually assigned (see above where SCP assigned region). > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)