Details
Description
HADOOP-5124 provided some improvements to FSNamesystem#recentInvalidateSets. But it introduced unprotected access to the data structure recentInvalidateSets. Specifically, FSNamesystem.computeInvalidateWork accesses recentInvalidateSets without read-lock protection. If there is concurrent activity (like reducing replication on a file) that adds to recentInvalidateSets, the name-node crashes with a ConcurrentModificationException.
Attachments
Attachments
Issue Links
- is related to
-
HDFS-2273 Refactor BlockManager.recentInvalidateSets to a new class
- Closed
- relates to
-
HADOOP-5124 A few optimizations to FsNamesystem#RecentInvalidateSets
- Closed