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 084FF183D3 for ; Wed, 5 Aug 2015 00:57:05 +0000 (UTC) Received: (qmail 31107 invoked by uid 500); 5 Aug 2015 00:57:04 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 31051 invoked by uid 500); 5 Aug 2015 00:57:04 -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 31037 invoked by uid 99); 5 Aug 2015 00:57:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Aug 2015 00:57:04 +0000 Date: Wed, 5 Aug 2015 00:57:04 +0000 (UTC) From: "Apekshit Sharma (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-7105) RS throws NPE on forcing compaction from HBase shell on a single bulk imported file. 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-7105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14654602#comment-14654602 ] Apekshit Sharma commented on HBASE-7105: ---------------------------------------- I am here....waiting for some action. I believe the current patch has correctness issues, but the system as of now can be improved. How costly is it to open the reader? If not a lot, then maybe few extra IOs are less trouble then exceptions from UX point of view. > RS throws NPE on forcing compaction from HBase shell on a single bulk imported file. > ------------------------------------------------------------------------------------ > > Key: HBASE-7105 > URL: https://issues.apache.org/jira/browse/HBASE-7105 > Project: HBase > Issue Type: Bug > Components: regionserver > Reporter: Karthik Ranganathan > Assignee: Cosmin Lehene > Fix For: 2.0.0, 1.3.0, 1.2.1, 1.0.3, 1.1.3 > > Attachments: 0001-HBASE-7105-RS-throws-NPE-on-forcing-compaction-from-.patch, 0001-HBASE-7105-RS-throws-NPE-on-forcing-compaction-from-.patch > > > In StoreFile, we have: > private AtomicBoolean majorCompaction = null; > In StoreFile.open(), we do: > b = metadataMap.get(MAJOR_COMPACTION_KEY); > if (b != null) { > // init majorCompaction variable > } > Because the file was bulk imported, this is never initialized. Any subsequent call to isMajorCompaction() NPE's. > Fix is to initialize it to false. -- This message was sent by Atlassian JIRA (v6.3.4#6332)