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

Remove coupling of DynamoDbLockClient from S3 storage #535

Merged
merged 3 commits into from
Jan 12, 2022
Merged

Remove coupling of DynamoDbLockClient from S3 storage #535

merged 3 commits into from
Jan 12, 2022

Conversation

ahmedriza
Copy link
Contributor

Description

As part of the refactoring done by #508, the LockClient used by the S3 storage implementation got coupled to a specific implementation of the LockClient, i.e. DynamoDbLockClient. That doesn't look to be necessary and this PR addresses that by removing that coupling and let the S3 storage support any LockClient.

This is useful in cases where we may not be using S3 in AWS. For example, one could be using MinIO, Hitachi HCP etc which implement the S3 protocol and can be used just like S3. In these cases, a DynamoDb based lock is not required and some other implementation can be used.

Related Issue(s)

Documentation

@rtyler rtyler requested a review from mosyp January 6, 2022 20:40
@rtyler rtyler added the binding/rust Issues for the Rust crate label Jan 6, 2022
Copy link
Member

@rtyler rtyler left a comment

Choose a reason for hiding this comment

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

Nice little refactor! I like it, but will wait for @mosyp the original contributor of this code to approve before merge

Copy link
Contributor

@mosyp mosyp left a comment

Choose a reason for hiding this comment

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

Nice one, thank you @ahmedriza

@mosyp mosyp merged commit 6a8195d into delta-io:main Jan 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
binding/rust Issues for the Rust crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants