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

WebHDFS append returned stream has incorrectly set position

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.9.0, 2.8.3, 2.7.5, 3.0.1
    • None
    • webhdfs
    • None

    Description

      If you call getPos() on an FSDataOutputStream returned by WebHdfsFileSystem#append, it will initially return 0, even if the file already had content. This method should return the initial length of the file before appending.

      Attachments

        1. HDFS-13400-unit-test.patch
          3 kB
          Erik Krogen

        Activity

          People

            Unassigned Unassigned
            xkrogen Erik Krogen
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated: