Details
-
Sub-task
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
-
None
Description
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.