Skip to content

Commit c2d61ba

Browse files
Merge pull request #572 from aws/staging/51aaee0c-a643-48b4-8edd-56a9c3cb3d72
Pull request: release <- staging/51aaee0c-a643-48b4-8edd-56a9c3cb3d72
2 parents b007e45 + 83e379d commit c2d61ba

File tree

235 files changed

+441
-267
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

235 files changed

+441
-267
lines changed

.changes/2.7.15.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"version": "2.7.15",
3+
"date": "2019-07-30",
4+
"entries": [
5+
{
6+
"type": "feature",
7+
"category": "AWS Elemental MediaConvert",
8+
"description": "MediaConvert adds support for specifying priority (-50 to 50) on jobs submitted to on demand or reserved queues"
9+
},
10+
{
11+
"type": "feature",
12+
"category": "Amazon Route 53",
13+
"description": "Amazon Route 53 now supports the Middle East (Bahrain) Region (me-south-1) for latency records, geoproximity records, and private DNS for Amazon VPCs in that region."
14+
},
15+
{
16+
"type": "feature",
17+
"category": "Amazon Polly",
18+
"description": "Amazon Polly adds support for Neural text-to-speech engine."
19+
},
20+
{
21+
"type": "bugfix",
22+
"category": "AWS SDK for Java v2",
23+
"description": "Fixed the issue where `AsyncResponseHandler#prepare` was not invoked before `#onHeaders`. See [#1343](https://github.com/aws/aws-sdk-java-v2/issues/1343)."
24+
}
25+
]
26+
}

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
# __2.7.15__ __2019-07-30__
2+
## __AWS Elemental MediaConvert__
3+
- ### Features
4+
- MediaConvert adds support for specifying priority (-50 to 50) on jobs submitted to on demand or reserved queues
5+
6+
## __AWS SDK for Java v2__
7+
- ### Bugfixes
8+
- Fixed the issue where `AsyncResponseHandler#prepare` was not invoked before `#onHeaders`. See [#1343](https://github.com/aws/aws-sdk-java-v2/issues/1343).
9+
10+
## __Amazon Polly__
11+
- ### Features
12+
- Amazon Polly adds support for Neural text-to-speech engine.
13+
14+
## __Amazon Route 53__
15+
- ### Features
16+
- Amazon Route 53 now supports the Middle East (Bahrain) Region (me-south-1) for latency records, geoproximity records, and private DNS for Amazon VPCs in that region.
17+
118
# __2.7.14__ __2019-07-29__
219
## __AWS CodeCommit__
320
- ### Features

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ To automatically manage module versions (currently all modules have the same ver
4848
<dependency>
4949
<groupId>software.amazon.awssdk</groupId>
5050
<artifactId>bom</artifactId>
51-
<version>2.7.14</version>
51+
<version>2.7.15</version>
5252
<type>pom</type>
5353
<scope>import</scope>
5454
</dependency>
@@ -82,12 +82,12 @@ Alternatively you can add dependencies for the specific services you use only:
8282
<dependency>
8383
<groupId>software.amazon.awssdk</groupId>
8484
<artifactId>ec2</artifactId>
85-
<version>2.7.14</version>
85+
<version>2.7.15</version>
8686
</dependency>
8787
<dependency>
8888
<groupId>software.amazon.awssdk</groupId>
8989
<artifactId>s3</artifactId>
90-
<version>2.7.14</version>
90+
<version>2.7.15</version>
9191
</dependency>
9292
```
9393

@@ -99,7 +99,7 @@ You can import the whole SDK into your project (includes *ALL* services). Please
9999
<dependency>
100100
<groupId>software.amazon.awssdk</groupId>
101101
<artifactId>aws-sdk-java</artifactId>
102-
<version>2.7.14</version>
102+
<version>2.7.15</version>
103103
</dependency>
104104
```
105105

aws-sdk-java/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>software.amazon.awssdk</groupId>
66
<artifactId>aws-sdk-java-pom</artifactId>
7-
<version>2.7.14</version>
7+
<version>2.7.15</version>
88
<relativePath>../pom.xml</relativePath>
99
</parent>
1010
<artifactId>aws-sdk-java</artifactId>

bom-internal/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>aws-sdk-java-pom</artifactId>
77
<groupId>software.amazon.awssdk</groupId>
8-
<version>2.7.14</version>
8+
<version>2.7.15</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

bom/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>software.amazon.awssdk</groupId>
66
<artifactId>aws-sdk-java-pom</artifactId>
7-
<version>2.7.14</version>
7+
<version>2.7.15</version>
88
<relativePath>../pom.xml</relativePath>
99
</parent>
1010
<artifactId>bom</artifactId>

bundle/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<parent>
2222
<groupId>software.amazon.awssdk</groupId>
2323
<artifactId>aws-sdk-java-pom</artifactId>
24-
<version>2.7.14</version>
24+
<version>2.7.15</version>
2525
</parent>
2626
<artifactId>bundle</artifactId>
2727
<packaging>jar</packaging>

codegen-lite-maven-plugin/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>software.amazon.awssdk</groupId>
99
<artifactId>aws-sdk-java-pom</artifactId>
10-
<version>2.7.14</version>
10+
<version>2.7.15</version>
1111
<relativePath>../pom.xml</relativePath>
1212
</parent>
1313
<artifactId>codegen-lite-maven-plugin</artifactId>

codegen-lite/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>software.amazon.awssdk</groupId>
88
<artifactId>aws-sdk-java-pom</artifactId>
9-
<version>2.7.14</version>
9+
<version>2.7.15</version>
1010
</parent>
1111
<artifactId>codegen-lite</artifactId>
1212
<name>AWS Java SDK :: Code Generator Lite</name>

codegen-maven-plugin/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<groupId>software.amazon.awssdk</groupId>
2424
<artifactId>aws-sdk-java-pom</artifactId>
25-
<version>2.7.14</version>
25+
<version>2.7.15</version>
2626
<relativePath>../pom.xml</relativePath>
2727
</parent>
2828
<artifactId>codegen-maven-plugin</artifactId>

codegen/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<parent>
2222
<groupId>software.amazon.awssdk</groupId>
2323
<artifactId>aws-sdk-java-pom</artifactId>
24-
<version>2.7.14</version>
24+
<version>2.7.15</version>
2525
</parent>
2626
<artifactId>codegen</artifactId>
2727
<name>AWS Java SDK :: Code Generator</name>

core/annotations/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>core</artifactId>
77
<groupId>software.amazon.awssdk</groupId>
8-
<version>2.7.14</version>
8+
<version>2.7.15</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

core/auth/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>software.amazon.awssdk</groupId>
99
<artifactId>core</artifactId>
10-
<version>2.7.14</version>
10+
<version>2.7.15</version>
1111
</parent>
1212

1313
<artifactId>auth</artifactId>

core/aws-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>software.amazon.awssdk</groupId>
99
<artifactId>core</artifactId>
10-
<version>2.7.14</version>
10+
<version>2.7.15</version>
1111
</parent>
1212

1313
<artifactId>aws-core</artifactId>

core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<parent>
2222
<artifactId>aws-sdk-java-pom</artifactId>
2323
<groupId>software.amazon.awssdk</groupId>
24-
<version>2.7.14</version>
24+
<version>2.7.15</version>
2525
</parent>
2626

2727
<artifactId>core</artifactId>

core/profiles/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<groupId>software.amazon.awssdk</groupId>
2424
<artifactId>core</artifactId>
25-
<version>2.7.14</version>
25+
<version>2.7.15</version>
2626
</parent>
2727

2828
<artifactId>profiles</artifactId>

core/protocols/aws-cbor-protocol/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>protocols</artifactId>
77
<groupId>software.amazon.awssdk</groupId>
8-
<version>2.7.14</version>
8+
<version>2.7.15</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

core/protocols/aws-ion-protocol/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>protocols</artifactId>
77
<groupId>software.amazon.awssdk</groupId>
8-
<version>2.7.14</version>
8+
<version>2.7.15</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

core/protocols/aws-json-protocol/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>protocols</artifactId>
77
<groupId>software.amazon.awssdk</groupId>
8-
<version>2.7.14</version>
8+
<version>2.7.15</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

core/protocols/aws-query-protocol/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>protocols</artifactId>
77
<groupId>software.amazon.awssdk</groupId>
8-
<version>2.7.14</version>
8+
<version>2.7.15</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

core/protocols/aws-xml-protocol/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>protocols</artifactId>
77
<groupId>software.amazon.awssdk</groupId>
8-
<version>2.7.14</version>
8+
<version>2.7.15</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

core/protocols/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>core</artifactId>
77
<groupId>software.amazon.awssdk</groupId>
8-
<version>2.7.14</version>
8+
<version>2.7.15</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

core/protocols/protocol-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>protocols</artifactId>
77
<groupId>software.amazon.awssdk</groupId>
8-
<version>2.7.14</version>
8+
<version>2.7.15</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

core/regions/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<groupId>software.amazon.awssdk</groupId>
2424
<artifactId>core</artifactId>
25-
<version>2.7.14</version>
25+
<version>2.7.15</version>
2626
</parent>
2727

2828
<artifactId>regions</artifactId>

core/sdk-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<parent>
2222
<groupId>software.amazon.awssdk</groupId>
2323
<artifactId>core</artifactId>
24-
<version>2.7.14</version>
24+
<version>2.7.15</version>
2525
</parent>
2626
<artifactId>sdk-core</artifactId>
2727
<name>AWS Java SDK :: SDK Core</name>

core/sdk-core/src/main/java/software/amazon/awssdk/core/client/handler/BaseAsyncClientHandler.java

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
package software.amazon.awssdk.core.client.handler;
1717

1818
import static software.amazon.awssdk.core.interceptor.SdkInternalExecutionAttribute.ASYNC_RESPONSE_TRANSFORMER_FUTURE;
19+
import static software.amazon.awssdk.utils.FunctionalUtils.runAndLogError;
1920

2021
import java.util.concurrent.CompletableFuture;
2122
import java.util.function.Function;
@@ -39,9 +40,11 @@
3940
import software.amazon.awssdk.http.SdkHttpFullRequest;
4041
import software.amazon.awssdk.http.SdkHttpFullResponse;
4142
import software.amazon.awssdk.utils.CompletableFutureUtils;
43+
import software.amazon.awssdk.utils.Logger;
4244

4345
@SdkProtectedApi
4446
public abstract class BaseAsyncClientHandler extends BaseClientHandler implements AsyncClientHandler {
47+
private static final Logger log = Logger.loggerFor(BaseAsyncClientHandler.class);
4548
private final SdkClientConfiguration clientConfiguration;
4649
private final AmazonAsyncHttpClient client;
4750
private final Function<SdkHttpFullResponse, SdkHttpFullResponse> crc32Validator;
@@ -77,16 +80,16 @@ public <InputT extends SdkRequest, OutputT extends SdkResponse, ReturnT> Complet
7780

7881
// For streaming requests, prepare() should be called as early as possible to avoid NPE in client
7982
// See https://github.com/aws/aws-sdk-java-v2/issues/1268
80-
CompletableFuture<ReturnT> asyncTransformerFuture = asyncResponseTransformer.prepare();
83+
AsyncStreamingResponseHandler<OutputT, ReturnT> asyncStreamingResponseHandler =
84+
new AsyncStreamingResponseHandler<>(asyncResponseTransformer);
85+
CompletableFuture<ReturnT> asyncTransformerFuture = asyncStreamingResponseHandler.prepare();
8186

8287
ExecutionContext context = createExecutionContext(executionParams);
8388
context.executionAttributes().putAttribute(ASYNC_RESPONSE_TRANSFORMER_FUTURE, asyncTransformerFuture);
8489

8590
HttpResponseHandler<OutputT> decoratedResponseHandlers =
8691
decorateResponseHandlers(executionParams.getResponseHandler(), context);
87-
88-
AsyncStreamingResponseHandler<OutputT, ReturnT> asyncStreamingResponseHandler =
89-
new AsyncStreamingResponseHandler<>(asyncResponseTransformer, decoratedResponseHandlers);
92+
asyncStreamingResponseHandler.responseHandler(decoratedResponseHandlers);
9093

9194
return doExecute(executionParams, context, asyncStreamingResponseHandler);
9295
}
@@ -143,6 +146,10 @@ private <InputT extends SdkRequest, OutputT extends SdkResponse, ReturnT> Comple
143146

144147
return CompletableFutureUtils.forwardExceptionTo(exceptionTranslatedFuture, invokeFuture);
145148
} catch (Throwable t) {
149+
runAndLogError(
150+
log.logger(),
151+
"Error thrown from TransformingAsyncResponseHandler#onError, ignoring.",
152+
() -> asyncResponseHandler.onError(t));
146153
return CompletableFutureUtils.failedFuture(ThrowableUtils.asSdkException(t));
147154
}
148155
}

core/sdk-core/src/main/java/software/amazon/awssdk/core/internal/http/async/AsyncStreamingResponseHandler.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,17 @@
3131
* Response handler for asynchronous streaming operations.
3232
*/
3333
@SdkInternalApi
34-
public class AsyncStreamingResponseHandler<OutputT extends SdkResponse, ReturnT>
34+
public final class AsyncStreamingResponseHandler<OutputT extends SdkResponse, ReturnT>
3535
implements TransformingAsyncResponseHandler<ReturnT> {
3636

3737
private final AsyncResponseTransformer<OutputT, ReturnT> asyncResponseTransformer;
38-
private final HttpResponseHandler<OutputT> responseHandler;
39-
private volatile CompletableFuture<ReturnT> transformFuture;
38+
private volatile HttpResponseHandler<OutputT> responseHandler;
4039

41-
public AsyncStreamingResponseHandler(AsyncResponseTransformer<OutputT, ReturnT> asyncResponseTransformer,
42-
HttpResponseHandler<OutputT> responseHandler) {
40+
public AsyncStreamingResponseHandler(AsyncResponseTransformer<OutputT, ReturnT> asyncResponseTransformer) {
4341
this.asyncResponseTransformer = asyncResponseTransformer;
42+
}
43+
44+
public void responseHandler(HttpResponseHandler<OutputT> responseHandler) {
4445
this.responseHandler = responseHandler;
4546
}
4647

@@ -53,7 +54,7 @@ public void onHeaders(SdkHttpResponse response) {
5354

5455
asyncResponseTransformer.onResponse(resp);
5556
} catch (Exception e) {
56-
transformFuture.completeExceptionally(e);
57+
asyncResponseTransformer.exceptionOccurred(e);
5758
}
5859
}
5960

@@ -69,7 +70,6 @@ public void onError(Throwable error) {
6970

7071
@Override
7172
public CompletableFuture<ReturnT> prepare() {
72-
this.transformFuture = asyncResponseTransformer.prepare();
73-
return transformFuture;
73+
return asyncResponseTransformer.prepare();
7474
}
7575
}

0 commit comments

Comments
 (0)