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

Snapshot read can reveal future bytes if snapshotted while writing

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.7.2
    • Fix Version/s: 2.9.0, 3.0.0-beta1
    • Component/s: hdfs
    • Labels:
      None
    • Environment:

      HDFS-2.7.2, see attached unittest file.

      Description

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

      • Create a new file for writing.
      • Write "hello world"
      • Invoke hsync() on the file handle.
      • Create a snapshot, keep the file open.
      • Append another "hello world" string to the same file handle.
      • Close the file.
      • Read file in the snapshot (not the current file).
      • Output is "hello worldhello world" instead of the expected snapshot contents of "hello world".

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                manojg Manoj Govindassamy
                Reporter:
                abhishekrai Abhishek Rai
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: