Joey Frazee created NIFI-8505:
---------------------------------

             Summary: RunNiFi is_loaded returns 0 exit code for all statuses
                 Key: NIFI-8505
                 URL: https://issues.apache.org/jira/browse/NIFI-8505
             Project: Apache NiFi
          Issue Type: Bug
          Components: Core Framework
    Affects Versions: 1.13.2, 1.13.1, 1.13.0
            Reporter: Joey Frazee


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. 

1. 
https://github.com/apache/nifi/blob/3963f66dffcdc0ca8c3c5a35844007c077d77f41/nifi-bootstrap/src/main/java/org/apache/nifi/bootstrap/RunNiFi.java



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to