Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-11674

Couchbase client is never shut down

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.20.0
    • 2.20.0
    • None
    • None
    • Unknown

    Description

      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:

      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)
      

      Attachments

        Activity

          People

            acosentino Andrea Cosentino
            jamesnetherton James Netherton
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: