From a09fa358930c0ef3c4be1aa7b76ebdb8fb84ee55 Mon Sep 17 00:00:00 2001 From: "Doroszlai, Attila" Date: Sun, 10 Nov 2024 17:18:56 +0100 Subject: [PATCH] [skip ci] more debug in S3MultipartUploadCommitPartRequest --- .../s3/multipart/S3MultipartUploadCommitPartRequest.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/s3/multipart/S3MultipartUploadCommitPartRequest.java b/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/s3/multipart/S3MultipartUploadCommitPartRequest.java index 16ab458a014..d14b2a0ada2 100644 --- a/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/s3/multipart/S3MultipartUploadCommitPartRequest.java +++ b/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/s3/multipart/S3MultipartUploadCommitPartRequest.java @@ -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(); @@ -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. @@ -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();