slfan1989 opened a new pull request, #10395:
URL: https://github.com/apache/ozone/pull/10395

   ## What changes were proposed in this pull request?
   
   This PR adds validation when DiskBalancer reads the persisted 
diskbalancer.info YAML file.
   
   Previously, DiskBalancerYaml.readDiskBalancerInfoFile() could deserialize 
malformed persisted data and return a partially invalid DiskBalancerInfo. For 
example, missing operationalState, missing or unsupported version, or invalid 
configuration values such as an out-of-range threshold or non-movable container 
states were not rejected at the YAML read boundary. Such invalid data could 
fail later during service initialization or persistence, making the failure 
harder to diagnose.
   
   ## What is the link to the Apache JIRA
   
   JIRA: HDDS-15438. [DiskBalancer] Validate persisted diskbalancer.info while 
reading YAML.
   
   ## How was this patch tested?
   
   Add Junit Test.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to