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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to