HDFS-15796. ConcurrentModificationException error happens on NameNode occasionally. Contributed by Daniel Ma
(cherry picked from commit b6c06c4b76
)
This commit is contained in:
parent
ab939814a3
commit
705884b87a
@ -333,7 +333,7 @@ List<DatanodeStorageInfo> getTargets(BlockInfo block) {
|
|||||||
synchronized (pendingReconstructions) {
|
synchronized (pendingReconstructions) {
|
||||||
PendingBlockInfo found = pendingReconstructions.get(block);
|
PendingBlockInfo found = pendingReconstructions.get(block);
|
||||||
if (found != null) {
|
if (found != null) {
|
||||||
return found.targets;
|
return new ArrayList<>(found.targets);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
Loading…
Reference in New Issue
Block a user