HDFS-14618. Incorrect synchronization of ArrayList field (ArrayList is thread-unsafe). Contributed by Paul Ward.
(cherry picked from commit d203045c3024b134d7a0417d1ea3a60d03a1534a)
This commit is contained in:
parent
d95dd33ea1
commit
ab7ecd6a0f
@ -132,7 +132,9 @@ void remove(BlockInfo block) {
|
||||
public void clear() {
|
||||
synchronized (pendingReconstructions) {
|
||||
pendingReconstructions.clear();
|
||||
timedOutItems.clear();
|
||||
synchronized (timedOutItems) {
|
||||
timedOutItems.clear();
|
||||
}
|
||||
timedOutCount = 0L;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user