You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by ma...@apache.org on 2014/12/16 21:10:54 UTC
[4/8] incubator-nifi git commit: NIFI-145: Fixed issue that indicated
that NiFi was hung or died when the .pid file wasn't found
NIFI-145: Fixed issue that indicated that NiFi was hung or died when the .pid file wasn't found
Project: http://git-wip-us.apache.org/repos/asf/incubator-nifi/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-nifi/commit/2a2f0f03
Tree: http://git-wip-us.apache.org/repos/asf/incubator-nifi/tree/2a2f0f03
Diff: http://git-wip-us.apache.org/repos/asf/incubator-nifi/diff/2a2f0f03
Branch: refs/heads/develop
Commit: 2a2f0f036434c0fa2dd0f6af67e6cf13b0b3183e
Parents: 8cf0c78
Author: Mark Payne <ma...@hotmail.com>
Authored: Fri Dec 12 10:18:14 2014 -0500
Committer: Mark Payne <ma...@hotmail.com>
Committed: Fri Dec 12 10:18:14 2014 -0500
----------------------------------------------------------------------
.../src/main/java/org/apache/nifi/bootstrap/RunNiFi.java | 5 +++++
1 file changed, 5 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-nifi/blob/2a2f0f03/nifi-bootstrap/src/main/java/org/apache/nifi/bootstrap/RunNiFi.java
----------------------------------------------------------------------
diff --git a/nifi-bootstrap/src/main/java/org/apache/nifi/bootstrap/RunNiFi.java b/nifi-bootstrap/src/main/java/org/apache/nifi/bootstrap/RunNiFi.java
index a230711..270ba48 100644
--- a/nifi-bootstrap/src/main/java/org/apache/nifi/bootstrap/RunNiFi.java
+++ b/nifi-bootstrap/src/main/java/org/apache/nifi/bootstrap/RunNiFi.java
@@ -373,6 +373,11 @@ public class RunNiFi {
return;
}
+ if ( status.getPort() == null ) {
+ logger.info("Apache NiFi is not running");
+ return;
+ }
+
if ( status.getPid() == null ) {
logger.info("Apache NiFi is not responding to Ping requests. The process may have died or may be hung");
} else {