You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Abhishek Rai (JIRA)" <ji...@apache.org> on 2016/09/01 04:13:20 UTC

[jira] [Created] (HDFS-10825) Snapshot read can reveal future bytes if snapshotted while writing

Abhishek Rai created HDFS-10825:
-----------------------------------

             Summary: Snapshot read can reveal future bytes if snapshotted while writing
                 Key: HDFS-10825
                 URL: https://issues.apache.org/jira/browse/HDFS-10825
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: hdfs
    Affects Versions: 2.7.2
         Environment: HDFS-2.7.2, see attached unittest file.
            Reporter: Abhishek Rai


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".



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org