HDFS-14618. Incorrect synchronization of ArrayList field (ArrayList is thread-unsafe). Contributed by Paul Ward.
(cherry picked from commit d203045c30
)
This commit is contained in:
parent
76a9135947
commit
0559c1dba3
|
@ -132,7 +132,9 @@ class PendingReconstructionBlocks {
|
||||||
public void clear() {
|
public void clear() {
|
||||||
synchronized (pendingReconstructions) {
|
synchronized (pendingReconstructions) {
|
||||||
pendingReconstructions.clear();
|
pendingReconstructions.clear();
|
||||||
timedOutItems.clear();
|
synchronized (timedOutItems) {
|
||||||
|
timedOutItems.clear();
|
||||||
|
}
|
||||||
timedOutCount = 0L;
|
timedOutCount = 0L;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue