You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Andrew Kyle Purtell (Jira)" <ji...@apache.org> on 2022/06/12 00:07:00 UTC
[jira] [Resolved] (HBASE-7105) RS throws NPE on forcing compaction from HBase shell on a single bulk imported file.
[ https://issues.apache.org/jira/browse/HBASE-7105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Kyle Purtell resolved HBASE-7105.
----------------------------------------
Resolution: Abandoned
> 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
> Priority: Major
> 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
(v8.20.7#820007)