Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Here is the code:
failedStorageInfos = new HashSet<DatanodeStorageInfo>(
storageMap.values());
In other places, the lock on "DatanodeDescriptor.storageMap" is held:
synchronized (storageMap) { final Collection<DatanodeStorageInfo> storages = storageMap.values(); return storages.toArray(new DatanodeStorageInfo[storages.size()]); }