Mark Payne created NIFI-916:
-------------------------------
Summary: NiFi stop command occasionally results in Socket Timeout
exception
Key: NIFI-916
URL: https://issues.apache.org/jira/browse/NIFI-916
Project: Apache NiFi
Issue Type: Bug
Components: Core Framework
Reporter: Mark Payne
Fix For: 0.3.0
When I issue the bin/nifi.sh stop command, running in CentOS 7 in my VM, I
occasionally get a timeout exception. If this happens, it will continue to
happen until I manually kill the process.
Below is the output that I receive, as well as the results of running netstat
to verify that NiFi is in fact listening on the port reported.
{noformat}
[mark@centos-7 nifi-0.3.0-SNAPSHOT]$ bin/nifi.sh stop
Java home: /usr/java/latest
NiFi home: /opt/nifi-0.3.0-SNAPSHOT
Bootstrap Config File: /opt/nifi-0.3.0-SNAPSHOT/conf/bootstrap.conf
2015-08-31 16:05:38,454 ERROR [main] org.apache.nifi.bootstrap.Command Failed
to send shutdown command to port 49560 due to java.net.SocketTimeoutException:
Read timed out
java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method) ~[na:1.8.0_45]
at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
~[na:1.8.0_45]
at java.net.SocketInputStream.read(SocketInputStream.java:170)
~[na:1.8.0_45]
at java.net.SocketInputStream.read(SocketInputStream.java:141)
~[na:1.8.0_45]
at java.net.SocketInputStream.read(SocketInputStream.java:223)
~[na:1.8.0_45]
at org.apache.nifi.bootstrap.RunNiFi.stop(RunNiFi.java:536)
[nifi-bootstrap-0.3.0-SNAPSHOT.jar:0.3.0-SNAPSHOT]
at org.apache.nifi.bootstrap.RunNiFi.main(RunNiFi.java:208)
[nifi-bootstrap-0.3.0-SNAPSHOT.jar:0.3.0-SNAPSHOT]
[mark@centos-7 nifi-0.3.0-SNAPSHOT]$
[mark@centos-7 nifi-0.3.0-SNAPSHOT]$
[mark@centos-7 nifi-0.3.0-SNAPSHOT]$
[mark@centos-7 nifi-0.3.0-SNAPSHOT]$ netstat -anp | grep 49560
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 127.0.0.1:49560 0.0.0.0:* LISTEN
6873/java
tcp 0 0 127.0.0.1:49560 127.0.0.1:37907 CLOSE_WAIT
6873/java
tcp 0 0 127.0.0.1:49560 127.0.0.1:37905 CLOSE_WAIT
6873/java
tcp6 0 0 127.0.0.1:37907 127.0.0.1:49560 FIN_WAIT2
-
{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)