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

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3.0
    • Component/s: nfs
    • Labels:
      None
    • Hadoop Flags:
      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.003.patch
          16 kB
          Brandon Li
        2. HDFS-5563.002.patch
          16 kB
          Brandon Li
        3. HDFS-5563.001.patch
          16 kB
          Brandon Li

          Activity

            People

            • Assignee:
              brandonli Brandon Li
              Reporter:
              brandonli Brandon Li
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: