Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-5676

fix inconsistent synchronization of CachingStrategy

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.3.0
    • 2.3.0
    • hdfs-client
    • None

    Description

      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.

      Attachments

        1. HDFS-5676.003.patch
          12 kB
          Colin McCabe
        2. HDFS-5676.001.patch
          12 kB
          Colin McCabe

        Activity

          People

            cmccabe Colin McCabe
            cmccabe Colin McCabe
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: