Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
1.13.0, 1.13.1, 1.13.2
-
None
-
None
Description
The is_loaded command in RunNiFi should return a non-zero exit code when NiFi is not running.
RunNiFi [1] handles the is_loaded not running state by catching a NiFiNotRunningException and then exiting cleanly. This is inconsistent with error handling in the rest of the commands, particularly compared to status() which returns a non-zero exit code for not running.
Additionally, isNiFiFullyRunning() is unique in handling its error states via an exception. It'd be good if there was consistency across all the commands, either managing this via exception or not.