You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Jelmer Kuperus (JIRA)" <ji...@apache.org> on 2018/05/04 07:33:00 UTC

[jira] [Created] (HADOOP-15447) SwiftRestClient does not propertly close connections

Jelmer Kuperus created HADOOP-15447:
---------------------------------------

             Summary: SwiftRestClient does not propertly close connections
                 Key: HADOOP-15447
                 URL: https://issues.apache.org/jira/browse/HADOOP-15447
             Project: Hadoop Common
          Issue Type: Improvement
          Components: fs/swift
    Affects Versions: 3.0.2, 2.7.4, 2.6.5, 2.9.0
            Reporter: Jelmer Kuperus


On production the output of netstat -a showed a large number of connections to swift hosts in the  CLOSE_WAIT and ESTABLISHED state

The reason is that while the SwiftRestClient calls releaseConnection, because HTTP 1.1 is used, the connection is not closed by the http client. Because it could  pipeline further requests to the same host:port in the same connection.



One way to remedy this is to add a "Connection: close" header



This article further explains the issue : https://doc.nuxeo.com/blog/using-httpclient-properly-avoid-closewait-tcp-connections/

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org