-
Type:
Improvement
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.3.0
-
Fix Version/s: 2.3.0
-
Component/s: hdfs-client
-
Labels:None
-
Target Version/s:
Currently, the synchronization for CachingStrategy is a little inconsistent. DFSOutputStream#setDropBehind modifies the strategy object, but there's nothing protecting that object against concurrent use in createBlockOutputStream. Similarly, DFSInputStream#setDropBehind is synchronized, but not all the uses of cachingStrategy are.