[ 
https://issues.apache.org/jira/browse/HDDS-15438?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gargi Jaiswal resolved HDDS-15438.
----------------------------------
    Fix Version/s: 2.2.0
       Resolution: Fixed

> [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: Sub-task
>            Reporter: Shilun Fan
>            Assignee: Shilun Fan
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 2.2.0
>
>
> 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