Addendum patch for HBASE-12870. Added check for null pointer.

Signed-off-by: Andrew Purtell <apurtell@apache.org>
This commit is contained in:
Chinmay Kulkarni 2017-05-03 13:34:56 -07:00 committed by Andrew Purtell
parent ff998ef74f
commit 78f6799f4d
1 changed files with 4 additions and 1 deletions

View File

@ -72,7 +72,10 @@ public class RatioBasedCompactionPolicy extends SortedCompactionPolicy {
regionInfo = this.toString();
}
// Major compaction time has elapsed.
long cfTTL = this.storeConfigInfo.getStoreFileTtl();
long cfTTL = HConstants.FOREVER;
if (this.storeConfigInfo != null) {
cfTTL = this.storeConfigInfo.getStoreFileTtl();
}
if (filesToCompact.size() == 1) {
// Single file
StoreFile sf = filesToCompact.iterator().next();