Chi-Hsuan Huang created HDDS-15865:
--------------------------------------

             Summary: Return non-zero exit codes for OM compact and snapshot 
defrag validation failures
                 Key: HDDS-15865
                 URL: https://issues.apache.org/jira/browse/HDDS-15865
             Project: Apache Ozone
          Issue Type: Bug
            Reporter: Chi-Hsuan Huang


The OM compact and snapshot defrag commands currently return exit code 0 when 
OM node validation fails, including when \-\-node\-id is omitted on an HA 
cluster. This makes validation failures difficult for scripts and automation to 
detect.

Update these commands and the shared OM node validation path as appropriate so 
validation failures consistently produce a non\-zero exit code. Add tests 
covering the process exit status.

Follow\-up from 
[https://github.com/apache/ozone/pull/10699|https://github.com/apache/ozone/pull/10699].





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