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

Sarveksha Yeshavantha Raju commented on HDDS-14435:
---------------------------------------------------

Post HDDS-13756 merge, I’ve observed that updates to {{usedBytes}} and 
{{usedNamespace}} are slow after deleting a few keys from an OBS bucket.
{code:java}
bash-5.1$ ozone sh key delete s3v/obs1/key1
bash-5.1$ ozone sh key delete s3v/obs1/key2
bash-5.1$ ozone sh bucket list s3v
[ {
  "metadata" : { },
  "volumeName" : "s3v",
  "name" : "obs1",
  "storageType" : "DISK",
  "versioning" : false,
  "listCacheSize" : 1000,
  "usedBytes" : 4218,
  "usedNamespace" : 2,
  "creationTime" : "2026-01-17T09:15:51.388Z",
  "modificationTime" : "2026-01-17T09:15:51.388Z",
  "sourcePathExist" : true,
  "quotaInBytes" : -1,
  "quotaInNamespace" : -1,
  "bucketLayout" : "OBJECT_STORE",
  "owner" : "om",
  "link" : false
} ]      {code}
It took ~30 seconds for the values to reduce to 0.
{code:java}
bash-5.1$ ozone sh bucket list s3v
[ {
  "metadata" : { },
  "volumeName" : "s3v",
  "name" : "obs1",
  "storageType" : "DISK",
  "versioning" : false,
  "listCacheSize" : 1000,
  "usedBytes" : 0,
  "usedNamespace" : 0,
  "creationTime" : "2026-01-17T09:15:51.388Z",
  "modificationTime" : "2026-01-17T09:15:51.388Z",
  "sourcePathExist" : true,
  "quotaInBytes" : -1,
  "quotaInNamespace" : -1,
  "bucketLayout" : "OBJECT_STORE",
  "owner" : "om",
  "link" : false
} ] {code}

> usedNamespace is being decremented incorrectly
> ----------------------------------------------
>
>                 Key: HDDS-14435
>                 URL: https://issues.apache.org/jira/browse/HDDS-14435
>             Project: Apache Ozone
>          Issue Type: Bug
>    Affects Versions: 2.1.0
>            Reporter: Wei-Chiu Chuang
>            Assignee: Aswin Shakil
>            Priority: Major
>
> [~sarvekshayr] reported that after HDDS-13756 seems to cause a regression:
> https://github.com/apache/ozone/pull/9115#discussion_r2685116012
> {noformat}
> After this PR, observed an issue where usedBytes is high while usedNamespace 
> is 0, even though the bucket has no keys.
> It appears that usedNamespace is being decremented incorrectly. In the 
> overwrite case, the namespace seems to be reduced twice, whereas it should 
> done once by 1.
> Since the bucket has no data, this likely indicates a problem in how 
> namespace is being updated during the commit or delete flow.
> {noformat}
> [~aswinshakil] [~smeng] 



--
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