NSFS | Versioning | Implement GET/HEAD object
See original GitHub issueIs your feature request related to a problem? Please describe. This feature is part of NSFS versioning.
Describe the solution you’d like GET object will return the latest or the requested version object. Basically bucket can be version:
- Disabled
- No call flow will/behaviour will be changed
- Enabled
- return the latest object if specific version is not requested.
- fetch the stat of all objects and return the object which is requested for
- Suspended Same behaviour as in case of Version enabled
steps:
- Funnel the application to namespaceFS.js based on bucketspace and namespace
- if version is specified as part of the GET, then stat(“version”) under
.versiondirectory,
if present
return the file
else
return err
- If no version specified then return the file under the specified path
- Follow the same process for HEAD object, instead of data just return the metadata of the request file
@dannyzaken @romayalon Please correct if wrong
Issue Analytics
- State:
- Created 9 months ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
HeadObject - Amazon Simple Storage Service
The HEAD action retrieves metadata from an object without returning the object itself. ... To use HEAD, you must have READ access to...
Read more >Using Object Versioning - Oracle Help Center
This topic describes object versioning and how to enable and manage object versions.
Read more >Object Versioning | Cloud Storage - Google Cloud
The bucket no longer accumulates new noncurrent versions of objects. Object versions that already exist in the bucket are unaffected. Important: If you...
Read more >Manage objects in a versioning-suspended bucket
Object Storage Service (OSS) allows you to suspend versioning for a ... In the following figure, when you use the PutObject operation to ......
Read more >Versioning Archives - Jayendra's Cloud Certification Blog
S3 Object Versioning can be used to protect from unintended overwrites and accidental ... You must use the AWS Command Line Interface (AWS...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjectVersions.html So actually the default behavior of list-object-versions is to return all the bucket versions, The user can pass parameters to filter the result on the server side. Always continue thinking, I appreciate it!
Hi @v-harihar @guymguym back with an answer from the FS experts, The suggestion of creating directories for each object, and maintaining them can be more expensive in time and in place. think about a situation where we have millions of objects… And regarding list object versions - maybe i’m mistaken but I believe that one readdir operation on .versions/ should take less time than millions of readdir operations (when having millions of objects each has a directory under .versions/)
I suggested to the GPFS team to add a prefix field for readdir, which seems to be possible if really needed