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 A96649658 for ; Wed, 25 Apr 2012 15:58:41 +0000 (UTC) Received: (qmail 12131 invoked by uid 500); 25 Apr 2012 15:58:41 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 12093 invoked by uid 500); 25 Apr 2012 15:58:41 -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 12085 invoked by uid 99); 25 Apr 2012 15:58:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Apr 2012 15:58:41 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Apr 2012 15:58:39 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id D291735FDEC for ; Wed, 25 Apr 2012 15:58:17 +0000 (UTC) Date: Wed, 25 Apr 2012 15:58:17 +0000 (UTC) From: "rajeshbabu (JIRA)" To: issues@hbase.apache.org Message-ID: <1450914904.807.1335369497883.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <394557411.72.1335341883119.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HBASE-5873) TimeOut Monitor thread should be started after atleast one region server registers. 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-5873?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13261742#comment-13261742 ] rajeshbabu commented on HBASE-5873: ----------------------------------- This patch uploaded for 0.94 > TimeOut Monitor thread should be started after atleast one region server registers. > ----------------------------------------------------------------------------------- > > Key: HBASE-5873 > URL: https://issues.apache.org/jira/browse/HBASE-5873 > Project: HBase > Issue Type: Bug > Affects Versions: 0.90.6 > Reporter: ramkrishna.s.vasudevan > Priority: Minor > Fix For: 0.90.7, 0.92.2, 0.94.0, 0.96.0 > > Attachments: HBASE-5873.patch > > > Currently timeout monitor thread is started even before the region server has registered with the master. > In timeout monitor we depend on the region server to be online > {code} > boolean allRSsOffline = this.serverManager.getOnlineServersList(). > isEmpty(); > {code} > Now when the master starts up it sees there are no online servers and hence sets > allRSsOffline to true. > {code} > setAllRegionServersOffline(allRSsOffline); > {code} > So this.allRegionServersOffline is also true. > By this time an RS has come up, > Now timeout comes up again (after 10secs) in the next cycle he sees allRSsOffline as false. > Hence > {code} > else if (this.allRegionServersOffline && !allRSsOffline) { > // if some RSs just came back online, we can start the > // the assignment right away > actOnTimeOut(regionState); > {code} > This condition makes him to take action based on timeout. > Because of this even if one Region assignment of ROOT is going on, this piece of code triggers another assignment and thus we get RegionAlreadyinTransition Exception. Later we need to wait for 30 mins for assigning ROOT itself. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira