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 9f25836d99
commit e08277ac8f

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();