Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce ObjectId type to reference specific versions of S3 objects #673

Merged
merged 1 commit into from
Dec 11, 2023

Conversation

passaro
Copy link
Contributor

@passaro passaro commented Dec 11, 2023

Description of change

The new ObjectId type holds an S3 object key and etag to identify a specific version of an object. It is used in the data cache, where it is a 1-1 replacement for CacheKey, and also in the prefetcher, where it replaces the S3 key previously used in Part.

Does this change impact existing behavior?

No.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and I agree to the terms of the Developer Certificate of Origin (DCO).

The new `ObjectId` type holds an S3 object key and etag to identify a specific version of an object. It is used in the data cache, where it is a 1-1 replacement for `CacheKey`, and also in the prefetcher, where it replaces the S3 key previously used in `Part`.

Signed-off-by: Alessandro Passaro <[email protected]>
@passaro
Copy link
Contributor Author

passaro commented Dec 11, 2023

This PR splits ObjectId off #644.

Copy link
Contributor

@dannycjones dannycjones left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -81,7 +82,7 @@ struct CachingRequest<Client: ObjectClient, Cache> {
client: Client,
cache: Arc<Cache>,
bucket: String,
cache_key: CacheKey,
cache_key: ObjectId,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's likely worth renaming this argument to match, but not blocking on this

@passaro passaro added this pull request to the merge queue Dec 11, 2023
Merged via the queue into awslabs:main with commit 5e453f1 Dec 11, 2023
24 checks passed
@passaro passaro deleted the object-id branch December 11, 2023 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants