UENISHI Kota created HDDS-6399:
----------------------------------
Summary: Bucket usage should be updated on MultipartUploadComplete
Key: HDDS-6399
URL: https://issues.apache.org/jira/browse/HDDS-6399
Project: Apache Ozone
Issue Type: Bug
Components: Ozone Manager
Affects Versions: 1.2.0
Reporter: UENISHI Kota
During my work for HDDS-5656, thanks to [the reviewer's
comment|https://github.com/apache/ozone/pull/2813/files#r817253974], I have
found that usage size of a bucket is not updated when a mutlipart upload is
committed. In
[S3MultipartUploadCompleteRequest|https://github.com/apache/ozone/blob/53d25b92ee5490cea72bbf07045ea9593dc982c4/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/s3/multipart/S3MultipartUploadCompleteRequest.java]
(and Response), unused parts shall be deleted. The data size of those *all*
parts, including unused parts, are already counted as used even before
multipart upload commit. In this case, the size of unused parts, (and with
HDDS-5656, overwritten object), should be subtracted from total size of a
bucket.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]