Sadanand Shenoy created HDDS-14868:
--------------------------------------
Summary: 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
{{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: [email protected]
For additional commands, e-mail: [email protected]