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

Snapshot read can reveal future bytes for appended files.

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      The following sequence of steps will produce extra bytes, that should not be visible, because they are not in the snapshot.

      • Create a file of size L, where L % blockSize != 0.
      • Create a snapshot
      • Append bytes to the file
      • Read file in the snapshot (not the current file)
      • You will see the bytes are read beoynd the original file size L

      Attachments

        1. TestSnapshotRead.java
          3 kB
          Konstantin Shvachko
        2. HDFS-7263.patch
          4 kB
          Tao Luo
        3. HDFS-7263.patch
          5 kB
          Tao Luo
        4. HDFS-7263.patch
          5 kB
          Tao Luo

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            taoluo Tao Luo
            shv Konstantin Shvachko
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment