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

NFS gateway should commit the buffered data when read request comes after write to the same file

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.3.0
    • nfs
    • None
    • Reviewed

    Description

      HDFS write is asynchronous and data may not be available to read immediately after write.
      One of the main reason is that DFSClient doesn't flush data to DN until its local buffer is full.

      To workaround this problem, when a read comes after write to the same file, NFS gateway should sync the data so the read request can get the latest content. The drawback is that, the frequent hsync() call can slow down data write.

      Attachments

        1. HDFS-5563.001.patch
          16 kB
          Brandon Li
        2. HDFS-5563.002.patch
          16 kB
          Brandon Li
        3. HDFS-5563.003.patch
          16 kB
          Brandon Li

        Activity

          People

            brandonli Brandon Li
            brandonli Brandon Li
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: