hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manoj Govindassamy (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HDFS-10825) Snapshot read can reveal future bytes if snapshotted while writing
Date Fri, 25 Aug 2017 21:45:01 GMT

     [ https://issues.apache.org/jira/browse/HDFS-10825?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Manoj Govindassamy resolved HDFS-10825.
---------------------------------------
       Resolution: Duplicate
    Fix Version/s: 3.0.0-beta1
                   2.9.0

HDFS-11402 solves the core issue of making HDFS snapshots immutable w.r.t open files. Tested
with the patch attached in this jira and with the fix it passes through. Closing this jira
as a duplicate. Please let me know if you think otherwise.

> 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
>            Assignee: Manoj Govindassamy
>             Fix For: 2.9.0, 3.0.0-beta1
>
>         Attachments: TestSnapshotFileBeingWritten.java
>
>
> 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.4.14#64029)

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


Mime
View raw message