Ethan Rose created HDDS-11727:
---------------------------------
Summary: Block `ozone repair` when a node is running
Key: HDDS-11727
URL: https://issues.apache.org/jira/browse/HDDS-11727
Project: Apache Ozone
Issue Type: Sub-task
Reporter: Ethan Rose
Commands under {{ozone repair}} are meant to be done while the node is stopped.
In the {{ozone}} shell script, we can use the pid file of each process to check
which ozone services are running on this host, and pass that information to the
{{ozone-tools}} jar when it is invoked. In the Java code we can then fail
subcommands like {{ozone repair om}} if the OM process is still running on this
host. A {{--force}} flag could optionally override this in false positive cases
like services being co-located for testing.
As part of this Jira we can also output a generic stderr warning that repair is
for advanced use only.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]