HDFS-14798. Synchronize invalidateBlocks in DatanodeDescriptor. Contributed by hemanthboyina.

This commit is contained in:
Surendra Singh Lilhore 2019-09-12 19:43:18 +05:30
parent d1c303a497
commit 2ff2a7f612
1 changed files with 3 additions and 1 deletions

View File

@ -339,7 +339,9 @@ boolean hasStaleStorages() {
public void resetBlocks() {
updateStorageStats(this.getStorageReports(), 0L, 0L, 0, 0, null);
synchronized (invalidateBlocks) {
this.invalidateBlocks.clear();
}
this.volumeFailures = 0;
// pendingCached, cached, and pendingUncached are protected by the
// FSN lock.