[ 
https://issues.apache.org/jira/browse/NIFI-8505?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pierre Villard resolved NIFI-8505.
----------------------------------
    Resolution: Feedback Received

Apache NiFi 1.x is no longer maintained and no new release is planned on the 
1.x release line. Marking as resolved as part of a cleanup operation. Please 
open a new one with an updated description if this is still relevant for NiFi 
2.x.

> 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.0, 1.13.1, 1.13.2
>            Reporter: Joey Frazee
>            Priority: Minor
>
> 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.20.10#820010)

Reply via email to