You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Attila Doroszlai (Jira)" <ji...@apache.org> on 2026/06/16 06:55:00 UTC
[jira] [Updated] (HDDS-14868) Avoid full scan of container list during refreshAndValidate of ContainerSafemodeRule
[ https://issues.apache.org/jira/browse/HDDS-14868?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Attila Doroszlai updated HDDS-14868:
------------------------------------
Fix Version/s: 2.3.0
(was: 2.2.0)
> Avoid full scan of container list during refreshAndValidate of ContainerSafemodeRule
> ------------------------------------------------------------------------------------
>
> Key: HDDS-14868
> URL: https://issues.apache.org/jira/browse/HDDS-14868
> Project: Apache Ozone
> Issue Type: Bug
> Reporter: Sadanand Shenoy
> Assignee: Sadanand Shenoy
> Priority: Major
> Labels: pull-request-available
> Fix For: 2.3.0
>
> Attachments: 9953_review.patch, 9953_review2.patch
>
>
> {{refreshAndValidate()}} runs often (on each transaction apply, leader change, and after restart). The old logic was:
> // OLD
> if (forceRefresh || !validate()) {
> initializeRule();// Full scan of ALL containers - expensive!
> }
> {{initializeRule()}} does a full scan of {{containerManager.getContainers()}} and rebuilds all state. With many containers and frequent {{{}refreshAndValidate(){}}}, this is costly.
> This could be optimized
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org