nifi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (NIFI-916) NiFi stop command occasionally results in Socket Timeout exception
Date Sun, 06 Sep 2015 17:26:45 GMT

    [ https://issues.apache.org/jira/browse/NIFI-916?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14732466#comment-14732466
] 

ASF subversion and git services commented on NIFI-916:
------------------------------------------------------

Commit 85534ca860b6e0169a7d66c99ac3f293031ccbbc in nifi's branch refs/heads/master from [~bbende]
[ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=85534ca ]

NIFI-916 Refactoring how the closed flag is used in PersistentProvenanceRepository to ensure
proper shutdown


> 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
>            Assignee: Bryan Bende
>             Fix For: 0.3.0
>
>         Attachments: NIFI-916.patch
>
>
> 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)

Mime
View raw message