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

Merge upstream changes #9

Merged
merged 3 commits into from
Aug 27, 2024
Merged

Conversation

julienrf
Copy link
Collaborator

smadurawe-oss and others added 2 commits August 5, 2024 15:19
…#201)

* Fix reflection logic of aws-java-sdk-v2 credential providers

DynamoDB connector uses reflection to load custom credential providers.
When the package was upgraded to use aws-java-sdk-v2, the package was
only updated to fix the differing classpaths. SDK-v2 credential
providers no longer use constructors but static create() methods to
initialize the instance which was not handled in the previous
implementation. This PR accounts for this use case and includes a
fallback to the original logic to ensure backwards compatibility.

* Refactor and fix javadoc

---------

Co-authored-by: Sugath Madurawe <[email protected]>
* Set default credential provider to sdk's default provider

The default credential provide dynamo-db connector falls back to is
InstanceProfileCredentialProvider. However, instance profile is not
available in all deployment environments (e.g. EMR Serverless). Instead,
aws-java-sdk-v2 default provider should be used as the fallback.

* Add unit test

* nit: fix imports

---------

Co-authored-by: Sugath Madurawe <[email protected]>
@julienrf julienrf merged commit 2b23379 into scylladb:scylla-5.x Aug 27, 2024
1 check passed
@julienrf julienrf deleted the merge-upstream branch August 27, 2024 16:30
julienrf added a commit to julienrf/scylla-migrator that referenced this pull request Aug 30, 2024
It is not needed now that `emr-dynamodb-connector` defaults to the same credentials provider (see awslabs/emr-dynamodb-connector#203 and scylladb/emr-dynamodb-connector#9).
julienrf added a commit to julienrf/scylla-migrator that referenced this pull request Aug 31, 2024
It is not needed now that `emr-dynamodb-connector` defaults to the same credentials provider (see awslabs/emr-dynamodb-connector#203 and scylladb/emr-dynamodb-connector#9).
julienrf added a commit to julienrf/scylla-migrator that referenced this pull request Sep 2, 2024
It is not needed now that `emr-dynamodb-connector` defaults to the same credentials provider (see awslabs/emr-dynamodb-connector#203 and scylladb/emr-dynamodb-connector#9).
tarzanek pushed a commit to scylladb/scylla-migrator that referenced this pull request Sep 2, 2024
It is not needed now that `emr-dynamodb-connector` defaults to the same credentials provider (see awslabs/emr-dynamodb-connector#203 and scylladb/emr-dynamodb-connector#9).
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