camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrea Cosentino (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (CAMEL-11674) Couchbase client is never shut down
Date Mon, 21 Aug 2017 08:31:00 GMT

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

Andrea Cosentino reassigned CAMEL-11674:
----------------------------------------

    Assignee: Andrea Cosentino

> Couchbase client is never shut down
> -----------------------------------
>
>                 Key: CAMEL-11674
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11674
>             Project: Camel
>          Issue Type: Bug
>    Affects Versions: 2.20.0
>            Reporter: James Netherton
>            Assignee: Andrea Cosentino
>             Fix For: 2.20.0
>
>
> I'm testing couchbase while it's running within a container (WildFly). If my camel-couchbase
application is terminated, I still see client connections being attempted. I guess there's
a background thread that's still operational.
> The client has a {{shutdown()}} method, so we should probably make use of that somewhere.
> Server logs are full of errors like:
> {code}
> 2017-08-16 19:59:56.074 WARN com.couchbase.client.vbucket.ConfigurationProviderHTTP:
 Connection problems with URI http://localhost:8091/pools ...skipping
> java.net.ConnectException: Connection refused (Connection refused)
> 	at java.net.PlainSocketImpl.socketConnect(Native Method)
>     at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
>     at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
>     at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
>     at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
>     at java.net.Socket.connect(Socket.java:589)
>     at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
>     at sun.net.www.http.HttpClient.openServer(HttpClient.java:463)
>     at sun.net.www.http.HttpClient.openServer(HttpClient.java:558)
>     at sun.net.www.http.HttpClient.<init>(HttpClient.java:242)
>     at sun.net.www.http.HttpClient.New(HttpClient.java:339)
>     at sun.net.www.http.HttpClient.New(HttpClient.java:357)
>     at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1202)
>     at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1138)
>     at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1032)
>     at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:966)
>     at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1546)
>     at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474)
>     at com.couchbase.client.vbucket.ConfigurationProviderHTTP.readToString(ConfigurationProviderHTTP.java:420)
>     at com.couchbase.client.vbucket.ConfigurationProviderHTTP.readPools(ConfigurationProviderHTTP.java:206)
>     at com.couchbase.client.vbucket.ConfigurationProviderHTTP.getBucketConfiguration(ConfigurationProviderHTTP.java:143)
>     at com.couchbase.client.vbucket.provider.BucketConfigurationProvider.bootstrapHttp(BucketConfigurationProvider.java:352)
>     at com.couchbase.client.vbucket.provider.BucketConfigurationProvider.bootstrap(BucketConfigurationProvider.java:128)
>     at com.couchbase.client.vbucket.provider.BucketConfigurationProvider.signalOutdated(BucketConfigurationProvider.java:521)
>     at com.couchbase.client.vbucket.provider.BucketConfigurationProvider.reloadConfig(BucketConfigurationProvider.java:545)
>     at com.couchbase.client.CouchbaseConnection.queueReconnect(CouchbaseConnection.java:369)
>     at net.spy.memcached.MemcachedConnection.lostConnection(MemcachedConnection.java:634)
>     at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:703)
>     at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:436)
>     at com.couchbase.client.CouchbaseConnection.run(CouchbaseConnection.java:325)
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message