[
https://issues.apache.org/jira/browse/HDFS-7263?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Vinod Kumar Vavilapalli updated HDFS-7263:
------------------------------------------
Labels: 2.6.1-candidate (was: )
This wasn't originally in 2.6.1, must have been committed to 2.6, which was
already 2.6.2. I just committed this to 2.6.1 taking [~sjlee0] cherry-pick,
which must have come from branch-2.6.
Ran compilation and TestSnapshotFileLength before the push.
> Snapshot read can reveal future bytes for appended files.
> ---------------------------------------------------------
>
> Key: HDFS-7263
> URL: https://issues.apache.org/jira/browse/HDFS-7263
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: hdfs-client
> Affects Versions: 2.5.0
> Reporter: Konstantin Shvachko
> Assignee: Tao Luo
> Labels: 2.6.1-candidate
> Fix For: 2.7.0, 2.6.1
>
> Attachments: HDFS-7263.patch, HDFS-7263.patch, HDFS-7263.patch,
> TestSnapshotRead.java
>
>
> 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
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)