HDFS-7066. LazyWriter#evictBlocks misses a null check for replicaState. (Contributed by Xiaoyu Yao)
This commit is contained in:
parent
fdf0542d8e
commit
a4dcbaa332
@ -44,3 +44,6 @@
|
||||
HDFS-6978. Directory scanner should correctly reconcile blocks on RAM
|
||||
disk. (Arpit Agarwal)
|
||||
|
||||
HDFS-7066. LazyWriter#evictBlocks misses a null check for replicaState.
|
||||
(Xiaoyu Yao via Arpit Agarwal)
|
||||
|
||||
|
@ -2331,6 +2331,10 @@ private void evictBlocks() throws IOException {
|
||||
LazyWriteReplicaTracker.ReplicaState replicaState =
|
||||
lazyWriteReplicaTracker.getNextCandidateForEviction();
|
||||
|
||||
if (replicaState == null) {
|
||||
break;
|
||||
}
|
||||
|
||||
if (LOG.isDebugEnabled()) {
|
||||
LOG.debug("Evicting block " + replicaState);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user