You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Shilun Fan (Jira)" <ji...@apache.org> on 2026/05/30 14:57:00 UTC

[jira] [Created] (HDDS-15438) [DiskBalancer] Validate persisted diskbalancer.info while reading YAML

Shilun Fan created HDDS-15438:
---------------------------------

             Summary: [DiskBalancer] Validate persisted diskbalancer.info while reading YAML
                 Key: HDDS-15438
                 URL: https://issues.apache.org/jira/browse/HDDS-15438
             Project: Apache Ozone
          Issue Type: Improvement
            Reporter: Shilun Fan
            Assignee: Shilun Fan


DiskBalancerYaml.readDiskBalancerInfoFile() currently accepts some malformed diskbalancer.info content without failing at the YAML read boundary. For example, missing operationalState, missing or unsupported version, or invalid persisted configuration values can be read into DiskBalancerInfo and only fail later during service initialization, status/report generation, or persistence.

This makes startup failures harder to diagnose and can leave DiskBalancer with partially invalid in-memory state. The YAML reader should validate persisted data immediately and fail with a clear IOException.



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