Skip to content

Commit

Permalink
[skip ci] more debug in S3MultipartUploadCommitPartRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
adoroszlai committed Nov 10, 2024
1 parent a86ea89 commit a09fa35
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@ public OMClientResponse validateAndUpdateCache(OzoneManager ozoneManager, TermIn

oldPartKeyInfo = multipartKeyInfo.getPartKeyInfo(partNumber);

final int size = multipartKeyInfo.getPartKeyInfoMap().size();

// Build this multipart upload part info.
OzoneManagerProtocolProtos.PartKeyInfo.Builder partKeyInfo =
OzoneManagerProtocolProtos.PartKeyInfo.newBuilder();
Expand All @@ -210,6 +212,8 @@ public OMClientResponse validateAndUpdateCache(OzoneManager ozoneManager, TermIn
multipartKeyInfo.setUpdateID(trxnLogIndex,
ozoneManager.isRatisEnabled());

LOG.debug("ZZZ Add {} part {}: {} to {} parts, overwrite:{}", keyName, partNumber, partName, size, oldPartKeyInfo != null);

// OldPartKeyInfo will be deleted. Its updateID will be set in
// S3MultipartUploadCommitPartResponse before being added to
// DeletedKeyTable.
Expand Down Expand Up @@ -327,8 +331,7 @@ private void logResult(OzoneManager ozoneManager,

switch (result) {
case SUCCESS:
LOG.debug("MultipartUpload Commit is successfully for Key:{} in " +
"Volume/Bucket {}/{}", keyName, volumeName, bucketName);
LOG.debug("MultipartUpload Commit successful {}", auditMap);
break;
case FAILURE:
ozoneManager.getMetrics().incNumCommitMultipartUploadPartFails();
Expand Down

0 comments on commit a09fa35

Please sign in to comment.