[
https://issues.apache.org/jira/browse/HBASE-7105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14291323#comment-14291323
]
Enis Soztutar commented on HBASE-7105:
--------------------------------------
[~clehene] I was reading the code around this, but I failed to understand the
original description for the issue. Bulk loaded files also do create readers,
and hence call open() setting isMajorCompaction field.
Is this a concurrency issue where before this is set, a compaction request can
see the file? Do you have a stack trace or logs showing this state ?
> 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: 1.0.0, 2.0.0
>
> 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)