[ 
https://issues.apache.org/jira/browse/HDDS-9526?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17779145#comment-17779145
 ] 

ChenXi commented on HDDS-9526:
------------------------------

h1. Another similar problem:

Ozone can generate an incomplete key.
h1. Reproduce Step:
h2. Ozone S3

Upload the key and interrupt (ctrl + c) the upload before it completes.

An incomplete key will commit
{code:java}
[root@VM-8-3-centos ~]$ aws configure set default.s3.multipart_threshold 1GB
[root@VM-8-3-centos ~]$ aws s3 --endpoint-url http://localhost:9878 cp 
~/500M.img s3://bucket1/500M.img
^Ccancelled: ctrl-c received 
[root@VM-8-3-centos /tmp]$ aws s3 ls s3://bucket1/ --endpoint-url 
http://localhost:9878
2023-10-24 15:48:13  121208832 500M.img{code}
h2. AWS S3

Upload the key and interrupt (ctrl + c) the upload before it completes.

the incomplete key will not be committed
{code:java}
[root@VM-8-3-centos ~]$ aws configure set default.s3.multipart_threshold 1GB 
[root@VM-8-3-centos ~]$ aws s3 cp ~/500M.img s3://bucket1/500M.img 
^Ccancelled: ctrl-c received 
[root@VM-8-3-centos ~]$ aws s3 ls s3://bucket1/500M.img
// nothing output{code}

> Two S3G instances writing the same key may cause data loss in case of an 
> exception.
> -----------------------------------------------------------------------------------
>
>                 Key: HDDS-9526
>                 URL: https://issues.apache.org/jira/browse/HDDS-9526
>             Project: Apache Ozone
>          Issue Type: Bug
>            Reporter: ChenXi
>            Assignee: ChenXi
>            Priority: Critical
>         Attachments: image-2023-10-24-23-20-23-399.png
>
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to