Addendum patch for HBASE-12870. Added check for null pointer.
Signed-off-by: Andrew Purtell <apurtell@apache.org>
This commit is contained in:
parent
9f25836d99
commit
e08277ac8f
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user