Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 97975EE1C for ; Thu, 14 Mar 2013 04:08:14 +0000 (UTC) Received: (qmail 63144 invoked by uid 500); 14 Mar 2013 04:08:14 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 63000 invoked by uid 500); 14 Mar 2013 04:08:13 -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 62969 invoked by uid 99); 14 Mar 2013 04:08:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Mar 2013 04:08:13 +0000 Date: Thu, 14 Mar 2013 04:08:13 +0000 (UTC) From: "Lars Hofhansl (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-8099) ReplicationZookeeper.copyQueuesFromRSUsingMulti should not return any queues if it failed to execute. 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-8099?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13602012#comment-13602012 ] Lars Hofhansl commented on HBASE-8099: -------------------------------------- That works. Personally I'd probably just return queues in the first case and do a clear() for the second like this: {code} - if (peerIdsToProcess == null) return null; // node already processed + if (peerIdsToProcess == null) return queues; // node already processed ... LOG.warn("Got exception in copyQueuesFromRSUsingMulti: ", e); + queues.clear(); {code} Maybe while we're add it, we could add a random jitter to the failover. Add a Random member to ReplicationSourceManager and than do this in NodeFailoverWorker: {code} - Thread.sleep(sleepBeforeFailover); + Thread.sleep(sleepBeforeFailover + (long)(random.nextFloat()*sleepBeforeFailover)); {code} > ReplicationZookeeper.copyQueuesFromRSUsingMulti should not return any queues if it failed to execute. > ----------------------------------------------------------------------------------------------------- > > Key: HBASE-8099 > URL: https://issues.apache.org/jira/browse/HBASE-8099 > Project: HBase > Issue Type: Bug > Reporter: Lars Hofhansl > Assignee: Himanshu Vashishtha > Priority: Blocker > Fix For: 0.94.7 > > Attachments: HBase-8099-94.patch, HBase-8099-94-v2.patch, HBase-8099-trunk-2.patch, HBase-8099-trunk.patch > > > We just ran into an interesting scenario. We restarted a cluster that was setup as a replication source. > The stop went cleanly. > Upon restart *all* regionservers aborted within a few seconds with variations of these errors: > http://pastebin.com/3iQVuBqS -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira