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 570C610AFC for ; Sat, 17 Jan 2015 02:36:33 +0000 (UTC) Received: (qmail 54472 invoked by uid 500); 17 Jan 2015 02:36:35 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 54398 invoked by uid 500); 17 Jan 2015 02:36:34 -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 54385 invoked by uid 99); 17 Jan 2015 02:36:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Jan 2015 02:36:34 +0000 Date: Sat, 17 Jan 2015 02:36:34 +0000 (UTC) From: "Andrew Purtell (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-12875) Region mover script region_mover.rb sometimes fail with NPE 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-12875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14281164#comment-14281164 ] Andrew Purtell commented on HBASE-12875: ---------------------------------------- I'm not a jRuby expert but this seems to be due to an access/update race on the hash used to cache HTables. We don't actually need to cache HTable instances if we open a HConnection, stash it in a global, and use it to create flyweight HTables on demand. Something like: {code} $CONN = HConnectionManager.getConnection(HConfiguration.create)) ... table = $CONN.getTable(TableName.valueOf("...")) begin # do stuff rescue table.close end {code} > Region mover script region_mover.rb sometimes fail with NPE > ----------------------------------------------------------- > > Key: HBASE-12875 > URL: https://issues.apache.org/jira/browse/HBASE-12875 > Project: HBase > Issue Type: Bug > Components: regionserver > Affects Versions: 0.98.8 > Reporter: Sameer Vaishampayan > Assignee: Sameer Vaishampayan > Priority: Minor > > Moved region _IDX_EVENT.PLATFORM_EVENT_METRICS,\x0B\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00,1421392135537.f058d58e0560a5a0d681d3345d778b71. cost: 1.643 > NoMethodError: undefined method `getScanner' for nil:NilClass > isSuccessfulScan at <>/bin/region_mover.rb:138 > unloadRegions at <>/bin/region_mover.rb:360 > call at org/jruby/RubyProc.java:270 > call at org/jruby/RubyProc.java:220 > initialize at<>/bin/thread-pool.rb:33 > loop at org/jruby/RubyKernel.java:1439 > initialize at <>/bin/thread-pool.rb:31 > catch at org/jruby/RubyKernel.java:1212 > initialize at <>/bin/thread-pool.rb:30 > call at org/jruby/RubyProc.java:270 > call at org/jruby/RubyProc.java:224 -- This message was sent by Atlassian JIRA (v6.3.4#6332)