Addendum patch for HBASE-12870. Added check for null pointer.
Signed-off-by: Andrew Purtell <apurtell@apache.org>
This commit is contained in:
parent
ff998ef74f
commit
78f6799f4d
|
@ -72,7 +72,10 @@ public class RatioBasedCompactionPolicy extends SortedCompactionPolicy {
|
||||||
regionInfo = this.toString();
|
regionInfo = this.toString();
|
||||||
}
|
}
|
||||||
// Major compaction time has elapsed.
|
// 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) {
|
if (filesToCompact.size() == 1) {
|
||||||
// Single file
|
// Single file
|
||||||
StoreFile sf = filesToCompact.iterator().next();
|
StoreFile sf = filesToCompact.iterator().next();
|
||||||
|
|
Loading…
Reference in New Issue