Repository navigation
CLDSRV-1087: Return RestoreStatus only for objects being restored or restored - #6399
Draft
anurag4DSB wants to merge 2 commits into
Draft
anurag4DSB wants to merge 2 commits into
anurag4DSB wants to merge 2 commits into
Conversation
Listings asked for the RestoreStatus optional attribute returned IsRestoreInProgress=false for every object, including objects that were never archived. AWS returns the element only while a restore is in progress or while a restored copy exists, and a completed restore always carries RestoreExpiryDate. Clients that parse the element strictly failed the whole listing.
The before hook of the optional attributes tests returned the result of initMetadata while taking a callback. With MongoDB, metadata.setup returns a promise, so mocha failed the hook as overspecified and skipped every test of the block in the mongo jobs. On S3C, no Transition lifecycle rule is supported, so no object is ever archived, and faking an archive breaks the bucket cleanup: the metadata update of a non-versioned object is sent with an empty versionId, which gives the master a new version id that the deletion of the listed versions leaves behind, and every later test of the file saw extra objects. The tests that need an archive or restore state now run only where cold storage is supported, and the two existing tests that set a restored state expect no RestoreStatus element elsewhere.
Contributor
Hello anurag4dsb,My role is to assist you with the merge of this Available options
Available commands
Status report is not available. |
Contributor
Missing Jira issueIt is mandatory to specify a Jira issue in the source branch name I could not find such an issue in |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TL;DR: listings return
RestoreStatusonly for an object that is being restored or has a restored copy, as AWS does. Today every object getsIsRestoreInProgress=false, which breaks the AWS S3 connector for PyTorch and Mountpoint.Context / Why
CLDSRV-1087, the same defect as S3C-11607.
mountpoint-s3-clientsendx-amz-optional-object-attributes: RestoreStatuson every listing.RestoreExpiryDate, sos3torchconnector1.5.0 fails to list a prefix with "Missing field RestoreExpiryDate".development/9.6.🧩 Approach
There is no configuration, metadata or Arsenal change.
🔍 Review focus
lib/api/bucketGet.js › buildRestoreStatusXml: lenient clients such as boto3 no longer see a restore status on ordinary objects. That matches AWS, and it is the behaviour change in this PR.🧪 How to test
tests/unit/api/bucketGet.jsand functional tests intests/functional/aws-node-sdk/test/bucket/get.jscover never archived, archived and never restored, restore in progress, restored, delete markers, and no header.S3MapDataset.from_prefixfroms3torchconnectorlists a prefix of ordinary objects on this build, and fails with "Missing field RestoreExpiryDate" on the base.🔗 References
Draft: the branch name has no ticket key yet, and the forward-port to 9.4 to 9.6 is for Bert-E.