You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: services-custom/s3-transfer-manager/src/test/java/software/amazon/awssdk/transfer/s3/internal/CrtFileUploadTest.java
Copy file name to clipboardExpand all lines: services/s3/src/main/java/software/amazon/awssdk/services/s3/internal/crt/S3CrtResponseHandlerAdapter.java
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,7 @@ public S3CrtResponseHandlerAdapter(CompletableFuture<Void> executeFuture,
63
63
return;
64
64
}
65
65
66
-
if (executeFuture.isCancelled()) {
66
+
if (t != null) {
67
67
s3MetaRequest.cancel();
68
68
}
69
69
s3MetaRequest.close();
@@ -108,6 +108,13 @@ public int onResponseBody(ByteBuffer bodyBytesIn, long objectRangeStart, long ob
108
108
failResponseHandlerAndFuture(failure);
109
109
return;
110
110
}
111
+
112
+
if (s3MetaRequest() == null) {
113
+
// should not happen
114
+
failResponseHandlerAndFuture(SdkClientException.create("Unexpected exception occurred: s3metaRequest is not "
0 commit comments