Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
0.16.2
-
None
-
None
Description
Consider the following:
Configuration conf1 = new Configuration(); FileSystem fs1 = FileSystem.get(conf1); //conf1 may be modified, the cache key stored will use the modified values. Configuration conf2 = new Configuration(); //create another conf, which won't have the modified values. FileSystem fs2 = FileSystem.get(conf2); //may initialize another FileSystem instead of returning the cached FileSystem, since conf2 does not have the modified values initially.
Therefore, FileSystem.get(conf) may keeps creating FileSystem and replaces the cached one.