Return-Path: Delivered-To: apmail-hadoop-hbase-issues-archive@minotaur.apache.org Received: (qmail 23027 invoked from network); 22 Apr 2010 18:48:11 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Apr 2010 18:48:11 -0000 Received: (qmail 22531 invoked by uid 500); 22 Apr 2010 18:48:11 -0000 Delivered-To: apmail-hadoop-hbase-issues-archive@hadoop.apache.org Received: (qmail 22509 invoked by uid 500); 22 Apr 2010 18:48:11 -0000 Mailing-List: contact hbase-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list hbase-issues@hadoop.apache.org Received: (qmail 22501 invoked by uid 99); 22 Apr 2010 18:48:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Apr 2010 18:48:11 +0000 X-ASF-Spam-Status: No, hits=-1333.2 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; Thu, 22 Apr 2010 18:48:10 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o3MIloUf018971 for ; Thu, 22 Apr 2010 18:47:50 GMT Message-ID: <19427121.145341271962070131.JavaMail.jira@thor> Date: Thu, 22 Apr 2010 14:47:50 -0400 (EDT) From: "Todd Lipcon (JIRA)" To: hbase-issues@hadoop.apache.org Subject: [jira] Commented: (HBASE-2479) NPE in master when meta is unavailable 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-2479?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12859951#action_12859951 ] Todd Lipcon commented on HBASE-2479: ------------------------------------ Here's my modified doWithRetries: {code} 57 protected T doWithRetries() 58 throws IOException, RuntimeException { 59 List exceptions = new ArrayList(); 60 for (int tries = 0; tries < this.master.numRetries; tries++) { 61 if (this.master.closed.get()) { 62 return null; 63 } 64 try { 65 // Seen an NPE here before, adding lots of logging to try to find it! 66 if (this.master == null) { 67 ReflectionUtils.logThreadInfo(LOG, "master null", 1); 68 } else if (this.master.connection == null) { 69 ReflectionUtils.logThreadInfo(LOG, "connection null", 1); 70 } else if (m == null) { 71 ReflectionUtils.logThreadInfo(LOG, "m null", 1); 72 } 73 74 this.server = 75 this.master.connection.getHRegionConnection(m.getServer()); 76 return this.call(); {code} > NPE in master when meta is unavailable > -------------------------------------- > > Key: HBASE-2479 > URL: https://issues.apache.org/jira/browse/HBASE-2479 > Project: Hadoop HBase > Issue Type: Bug > Components: master > Reporter: Todd Lipcon > Attachments: npe-log.txt > > > A couple times I've managed to get NPEs when processing region status messages due to META being unavailable. Will attach a log segment here. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.