Skip to content

Commit 96cb79f

Browse files
author
jeffreykzli
committed
add warn log
1 parent 1890b73 commit 96cb79f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/com/qcloud/cos/transfer/UploadCallable.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,8 @@ private boolean checkResumableUpload() {
258258
partListing = cos.listParts(listPartsRequest);
259259
} catch (CosServiceException cse) {
260260
if (cse.getStatusCode() == 404 && Objects.equals(cse.getErrorCode(), "NoSuchUpload")) {
261+
String warnMsg = String.format("will not do resumable upload, because the uploadId[%s] is not exist, request id is %s", multipartUploadId, cse.getRequestId());
262+
log.warn(warnMsg);
261263
return false;
262264
}
263265
throw cse;

0 commit comments

Comments
 (0)