hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Konstantin Shvachko (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (HDFS-7263) Snapshot read can reveal future bytes for appended files.
Date Thu, 30 Oct 2014 03:41:34 GMT

    [ https://issues.apache.org/jira/browse/HDFS-7263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14189574#comment-14189574
] 

Konstantin Shvachko edited comment on HDFS-7263 at 10/30/14 3:40 AM:
---------------------------------------------------------------------

I just committed this. Thank you Tao.


was (Author: shv):
I jsut committed this. Thank you Tao.

> 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
>             Fix For: 2.7.0
>
>         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)

Mime
View raw message