Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
2.7.2
-
None
-
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
Attachments
Issue Links
- duplicates
-
HDFS-11402 HDFS Snapshots should capture point-in-time copies of OPEN files
- Resolved
- relates to
-
HDFS-7263 Snapshot read can reveal future bytes for appended files.
- Closed