[ 
https://issues.apache.org/jira/browse/HDDS-6450?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kaijie Chen updated HDDS-6450:
------------------------------
    Description: 
The incorrect preAllocatedBlocks for EC keys HDDS-6452 revealed the bug.
The correctedSpace in commitKey should be calculated against preAllocatedBlocks 
instead of the actual blocks in the final.

  was:
Steps to reproduce the bug:

{{First, cherry-pick f826d124aa1d8063d37a1ef3c1809787401b7b0b from master.}}
{code:java}
KEYSIZE=$(expr 256 '*' 1024 '*' 1024 '+' 1)
ozone sh volume create vol1
ozone sh bucket create vol1/bucket1 -l FILE_SYSTEM_OPTIMIZED -t EC -r 
rs-3-2-1024k
ozone freon ockg --volume vol1 --bucket bucket1 -s $KEYSIZE -n 1 -p foobar
ozone freon ockr --volume vol1 --bucket bucket1 -n 1 -p foobar
ozone sh bucket info vol1/bucket1
{code}
{{usedBytes should be 0 instead of 1342177280.}}


> [FSO] Fix correctedSpace for usedBytes in commitKey
> ---------------------------------------------------
>
>                 Key: HDDS-6450
>                 URL: https://issues.apache.org/jira/browse/HDDS-6450
>             Project: Apache Ozone
>          Issue Type: Sub-task
>          Components: Ozone Manager
>            Reporter: Kaijie Chen
>            Assignee: Kaijie Chen
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.3.0
>
>
> The incorrect preAllocatedBlocks for EC keys HDDS-6452 revealed the bug.
> The correctedSpace in commitKey should be calculated against 
> preAllocatedBlocks instead of the actual blocks in the final.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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

Reply via email to