Description
Currently S3Guard doesn't track S3 object versions. If a file is written in S3A with S3Guard and then subsequently overwritten, there is no protection against the next reader seeing the old version of the file instead of the new one.
It seems like the S3Guard metadata could track the S3 object version. When a file is created or updated, the object version could be written to the S3Guard metadata. When a file is read, the read out of S3 could be performed by object version, ensuring the correct version is retrieved.
I don't have a lot of direct experience with this yet, but this is my impression from looking through the code. My organization is looking to shift some datasets stored in HDFS over to S3 and is concerned about this potential issue as there are some cases in our codebase that would do an overwrite.
I imagine this idea may have been considered before but I couldn't quite track down any JIRAs discussing it. If there is one, feel free to close this with a reference to it.
Am I understanding things correctly? Is this idea feasible? Any feedback that could be provided would be appreciated. We may consider crafting a patch.
Attachments
Attachments
Issue Links
- causes
-
HADOOP-16332 Remove S3A's depedency on http core
- Resolved
- contains
-
HADOOP-16370 S3AFileSystem copyFile to propagate etag/version from getObjectMetadata to copy request
- Resolved
- depends upon
-
HADOOP-16190 S3A copyFile operation to include source versionID or etag in the copy request
- Resolved
- is depended upon by
-
HADOOP-14936 S3Guard: remove "experimental" from documentation
- Resolved
- is related to
-
HADOOP-16313 multipart/huge file upload tests to look at checksums returned
- Open
-
HADOOP-15625 S3A input stream to use etags/version number to detect changed source files
- Resolved
-
HADOOP-15894 getFileChecksum() needs to adopt S3Guard
- Resolved
-
HADOOP-16090 S3A Client to add explicit support for versioned stores
- Resolved
-
HADOOP-16368 S3A list operation doesn't pick up etags from results
- Resolved
- supercedes
-
HADOOP-16190 S3A copyFile operation to include source versionID or etag in the copy request
- Resolved
- links to