Alternator 0.8.0-SNAPSHOT: Revise for version 1.6.11 of AWS SDK for Java. #84
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.
This addresses Issue #83 regarding use of version 1.6.8 or higher of the AWS SDK for Java:
#83
The primary fix was to modify AlternatorDBClient.setEndpoint to explicitly pass "dynamodb" as the service name to the superclass to bypass new inference logic based on the class name of the client. The same revision was also made to AlternatorDBClientV2.setEndpoint.
Also, the .invoke method in both client classes was revised to unwrap the Response object now returned by the AmazonHttpClient.execute method. (Version 1.6.4 simply returned an object of type X.)
All tests pass using 'mvn verify', including an alternate run with AlternatorTest.SPAWN_LOCAL_DB_SERVICE temporarily compiled as false, with an instance of Alternator running in another terminal window via 'mvn exec:java'.
I updated the maven-compiler-plugin version to 3.1 to resolve an issue with setting the <source> and <target> to Java 1.5 to match the AWS SDK for Java settings.
I updated the snapshot version of Alternator to 0.8.0 since this involves referencing a new version of the AWS SDK for Java for client projects.
The AWS SDK for Java source code can be reviewed at their GitHub repository:
https://github.com/aws/aws-sdk-java.git