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