Return-Path: Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: (qmail 36491 invoked from network); 22 May 2010 22:15:37 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 May 2010 22:15:37 -0000 Received: (qmail 21650 invoked by uid 500); 22 May 2010 22:15:37 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 21616 invoked by uid 500); 22 May 2010 22:15:37 -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 21608 invoked by uid 500); 22 May 2010 22:15:37 -0000 Delivered-To: apmail-hadoop-hbase-issues@hadoop.apache.org Received: (qmail 21605 invoked by uid 99); 22 May 2010 22:15:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 May 2010 22:15:37 +0000 X-ASF-Spam-Status: No, hits=-1455.4 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 May 2010 22:15:36 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o4MMFFNH025622 for ; Sat, 22 May 2010 22:15:16 GMT Message-ID: <10094470.36651274566515874.JavaMail.jira@thor> Date: Sat, 22 May 2010 18:15:15 -0400 (EDT) From: "stack (JIRA)" To: hbase-issues@hadoop.apache.org Subject: [jira] Commented: (HBASE-2599) BaseScanner says "Current assignment of X is not valid" over and over for same region 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-2599?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870324#action_12870324 ] stack commented on HBASE-2599: ------------------------------ Fix this too: {code} // Set the address for now even tho it will not be persisted on HRS side // If the address given is not the default one, use IP given by the user. if (serverInfo.getServerAddress().getBindAddress().equals(DEFAULT_HOST)) { String rsAddress = HBaseServer.getRemoteAddress(); serverInfo.setServerAddress(new HServerAddress(rsAddress, serverInfo.getServerAddress().getPort())); } {code} > BaseScanner says "Current assignment of X is not valid" over and over for same region > ------------------------------------------------------------------------------------- > > Key: HBASE-2599 > URL: https://issues.apache.org/jira/browse/HBASE-2599 > Project: Hadoop HBase > Issue Type: Bug > Reporter: stack > > From IRC today > {code} > 12:41 < cmorgan> hey guys. I'm having a recent issue with a single node cluster running 0.20.4. After stopping for a backup I now get region assignment churn. Seems master keeps thinking that region > assignment is not valid even when it is. Following is a log snippet: > 12:41 < cmorgan> [21/05/10 00:59:42] 3443246 [ HMaster] DEBUG ter.RegionServerOperationQueue - Processing todo: PendingOpenOperation from localhost.,7802,1274425405680 > 12:41 < cmorgan> [21/05/10 00:59:42] 3443246 [ HMaster] INFO e.master.RegionServerOperation - net_troove_coin_account_AccountCredentials,,1234913258116 open on 127.0.0.1:7802 > 12:41 < cmorgan> [21/05/10 00:59:42] 3443246 [ HMaster] INFO e.master.RegionServerOperation - Updated row net_troove_coin_account_AccountCredentials,,1234913258116 in region .META.,,1 with > startcode=1274425405680, server=127.0.0.1:7802 > 12:41 < cmorgan> [21/05/10 00:59:42] 3443246 [ HMaster] DEBUG ter.RegionServerOperationQueue - Processing todo: PendingOpenOperation from localhost.,7802,1274425405680 > 12:41 < cmorgan> [21/05/10 00:59:42] 3443246 [ HMaster] INFO e.master.RegionServerOperation - net_troove_application_request_TemporaryRequest,,1234913268355 open on 127.0.0.1:7802 > 12:41 < cmorgan> [21/05/10 00:59:42] 3443247 [ HMaster] INFO e.master.RegionServerOperation - Updated row net_troove_application_request_TemporaryRequest,,1234913268355 in region .META.,,1 with > startcode=1274425405680, server=127.0.0.1:7802 > 12:41 < cmorgan> [21/05/10 00:59:42] 3443247 [ger.metaScanner] DEBUG adoop.hbase.master.BaseScanner - Current assignment of net_troove_coin_account_AccountEntry,,1271448856984 is not valid; > serverAddress=127.0.0.1:7802, startCode=1274425405680 unknown. > 12:41 < cmorgan> [21/05/10 00:59:42] 3443248 [ger.metaScanner] DEBUG adoop.hbase.master.BaseScanner - Current assignment of net_troove_coin_account_AccountEntry-Base_EntryDay_DESCENDING,,1273266418876 > is not valid; serverAddress=127.0.0.1:7802, startCode=1274425405680 unknown. > 12:41 < cmorgan> [21/05/10 00:59:42] 3443251 [ger.metaScanner] DEBUG adoop.hbase.master.BaseScanner - Current assignment of net_troove_coin_bank_BankStatement,,1266433980935 is not valid; > serverAddress=127.0.0.1:7802, startCode=1274425405680 unknown. > 12:58 < cmorgan> stack: I'd been running with 0.20.4 for a week or so starting/stopping every night. Now this happens... > 14:11 < cmorgan> stack: some more info: On our mini production server the regionserver is getting "My address is localhost.:7802" (notice the dot after localhost). But the master is also sometimes > referring to it as 127.0.0.1. I just used the same data and config on my laptop, and its binding to my external LAN ip ("My address is 10.0.1.4:7802"). Under this setup hbase comes up > stable (no region assignment churn). > {code} > Looking at this, I think issue is that when we register a server we use a getServerName on a HServerInfo provided by the regionserver (though we are on the master side) but BaseScanner uses a getServerName that is made by doing a dns lookup using the IP that it finds in the server column of .META. My sense is that is possible for the regionserver hostname and what the master finds when it does a lookup against dns can disagree, fatally. > This issue seems popular over last few weeks. Was reported at least once more on a standalone instance and also on krispykola's 15-node ec2 cluster (He went back to 0.20.3 and then it went away?). It made for what looked like double-assignment in his case (Our attempt at caching DNS names may be amiss -- I tihnk tht the main diff between 0.20.3 and 0.20.4 in this area). > My thought is to purge DNS from the HServerInfo passed by the RS to Master on startup and heartbeating and to use IPs only (and even then, the IP that the master tells the RS to use, its remote address as seen by the master). We might have to do this fix for 0.20.5 since it seems to happen more in 0.20.4. > I'm looking into this. Opinions welcome. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.