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

hdfs-nfs connector fails on O_TRUNC

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • None
    • None
    • nfs
    • None

    Description

      Linux NFS client will issue `open(.. O_TRUNC); write()` when overwriting a file that's in nfs client cache (to not evict the inode, probably). Which will spectacularly fail on hdfs-nfs with I/O error.
      Example:
      $ cp /some/file /to/hdfs/mount/
      $ cp /some/file /to/hdfs/mount/
      I/O error

      The first write will pass if the file is not in cache, the second one will always fail.

      Attachments

        1. HDFS-9164.1.patch
          11 kB
          Constantine Peresypkin

        Issue Links

          Activity

            People

              psorcerer Constantine Peresypkin
              psorcerer Constantine Peresypkin
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: