File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
src/examples/java/software/amazon/encryption/s3/examples Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -126,6 +126,7 @@ public static void LowLevelMultipartUpload() throws IOException {
126126
127127 // Upload the last part multipart upload to invoke `cipher.doFinal()`
128128 final InputStream partInputStream = new ByteArrayInputStream (outputStream .toByteArray ());
129+ System .out .println ("uploading FINAL part no: " + uploadPartRequest .partNumber ());
129130 UploadPartResponse uploadPartResult = v3Client .uploadPart (uploadPartRequest ,
130131 RequestBody .fromInputStream (partInputStream , partInputStream .available ()));
131132
@@ -136,13 +137,15 @@ public static void LowLevelMultipartUpload() throws IOException {
136137
137138 // Finally call completeMultipartUpload operation to tell S3 to merge all uploaded
138139 // parts and finish the multipart operation.
140+ System .out .println ("completing MPU" );
139141 v3Client .completeMultipartUpload (builder -> builder
140142 .bucket (BUCKET )
141143 .key (objectKey )
142144 .uploadId (initiateResult .uploadId ())
143145 .multipartUpload (partBuilder -> partBuilder .parts (partETags )));
144146
145147 // Call getObject to retrieve and decrypt the object from S3
148+ System .out .println ("GetObject follows" );
146149 ResponseInputStream <GetObjectResponse > output = v3Client .getObject (builder -> builder
147150 .bucket (BUCKET )
148151 .key (objectKey ));
You can’t perform that action at this time.
0 commit comments