HBASE-3524 NPE from CompactionChecker
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1070033 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5311df528e
commit
7901f641d5
|
@ -108,6 +108,7 @@ Release 0.90.1 - Unreleased
|
|||
|
||||
BUG FIXES
|
||||
HBASE-3483 Memstore lower limit should trigger asynchronous flushes
|
||||
HBASE-3524 NPE from CompactionChecker
|
||||
|
||||
IMPROVEMENTS
|
||||
HBASE-3508 LruBlockCache statistics thread should have a name
|
||||
|
|
|
@ -788,7 +788,10 @@ public class Store implements HeapSize {
|
|||
if (filesToCompact.size() == 1) {
|
||||
// Single file
|
||||
StoreFile sf = filesToCompact.get(0);
|
||||
long oldest = now - sf.getReader().timeRangeTracker.minimumTimestamp;
|
||||
long oldest =
|
||||
(sf.getReader().timeRangeTracker == null) ?
|
||||
Long.MIN_VALUE :
|
||||
now - sf.getReader().timeRangeTracker.minimumTimestamp;
|
||||
if (sf.isMajorCompaction() &&
|
||||
(this.ttl == HConstants.FOREVER || oldest < this.ttl)) {
|
||||
if (LOG.isDebugEnabled()) {
|
||||
|
|
Loading…
Reference in New Issue