Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-3159

FileSystem cache keep overwriting cached value

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 0.16.2
    • 0.16.3
    • 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.

      Attachments

        1. 3159_20080403.patch
          4 kB
          Tsz-wo Sze
        2. 3159_20080402.patch
          4 kB
          Tsz-wo Sze

        Activity

          People

            szetszwo Tsz-wo Sze
            szetszwo Tsz-wo Sze
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: