You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note the 2 slashes: these occur because the AWS Go SDK v2 no longer strips double slashes when they appear at the start of a bucket.
This is a repeat of a similar bug in Graveler; however because we use the block adapter directly we are again exposed. The issue is in these lines in garbage_collection_manager.go:
Those leading slashes end up (mistakenly!) being trimmed by the AWS Go S3 SDK (v1). If we keep this bug we will have an issue (objects misplaced on block storage) when porting GC to Azure and/or GCS. We also cannot upgrade to AWS Go SDK v2 with this.
One place where the AWS Go S3 SDK (v1) might keep on using two slashes is if you define garbage collection on a repo whose storage namespace is nested in a bucket rather than a complete bucket.
The text was updated successfully, but these errors were encountered:
Check whether there is a double slash when the storage namespace includes a prefix (and is not just a bucket).
If there is no double slash, just close this bug.
If there is a double slash, the quickest fix might be to change the path, then try reading from the new location and then the old location. That's ugly but will work safely. :-(
When I enable trace logging and run the garbage collection test with #2717 I see in logs, line 337 of step 11:
Complete logs attached: logs_22472.zip
Note the 2 slashes: these occur because the AWS Go SDK v2 no longer strips double slashes when they appear at the start of a bucket.
This is a repeat of a similar bug in Graveler; however because we use the block adapter directly we are again exposed. The issue is in these lines in
garbage_collection_manager.go
:Those leading slashes end up (mistakenly!) being trimmed by the AWS Go S3 SDK (v1). If we keep this bug we will have an issue (objects misplaced on block storage) when porting GC to Azure and/or GCS. We also cannot upgrade to AWS Go SDK v2 with this.
One place where the AWS Go S3 SDK (v1) might keep on using two slashes is if you define garbage collection on a repo whose storage namespace is nested in a bucket rather than a complete bucket.
The text was updated successfully, but these errors were encountered: