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

fix inconsistent synchronization of CachingStrategy

    XMLWordPrintableJSON

    Details

    • 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:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: