Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-22418

[JDBCJSON] ERROR com.couchbase.jdbc.core.ProtocolImpl - Error opening connection Connection pool shut down

    XMLWordPrintable

Details

    • Untriaged
    • Yes

    Description

      JDBC Projection tests fail with this error:

       

      Running com.couchbase.jdbc.ProjectionJDBCDriverTests
      17:11:25.000 [main] TRACE com.couchbase.jdbc.CBConnection - Normal http connection
      17:11:25.535 [main] TRACE com.couchbase.jdbc.core.ProtocolImpl - Cluster response [{"cluster":"default","name":"172.23.105.169","queryEndpoint":"
      http://172.23.105.169:8093/query/service

      ","adminEndpoint":"http://172.23.105.169:8093/admin","querySecure":"https://172.23.105.169:18093/query/service","adminSecure":"https://172.23.105.169:18093/admin","options":null}]
      17:11:25.597 [main] TRACE com.couchbase.jdbc.CBConnection - Normal http connection
      17:11:25.653 [main] TRACE com.couchbase.jdbc.core.ProtocolImpl - Cluster response [{"cluster":"default","name":"172.23.105.169","queryEndpoint":"
      http://172.23.105.169:8093/query/service

      ","adminEndpoint":"http://172.23.105.169:8093/admin","querySecure":"https://172.23.105.169:18093/query/service","adminSecure":"https://172.23.105.169:18093/admin","options":null}]
      17:11:25.657 [main] TRACE com.couchbase.jdbc.connect.Cluster - Endpoint 0 of 1
      17:11:25.658 [main] TRACE com.couchbase.jdbc.core.ProtocolImpl - Using endpoint
      http://172.23.105.169:8093/query/service

      17:11:25.659 [main] TRACE com.couchbase.jdbc.core.ProtocolImpl - do query POST
      http://172.23.105.169:8093/query/service

      HTTP/1.1
      17:11:30.728 [main] TRACE com.couchbase.jdbc.CBConnection - Normal http connection
      17:11:30.798 [main] TRACE com.couchbase.jdbc.core.ProtocolImpl - Cluster response [{"cluster":"default","name":"172.23.105.169","queryEndpoint":"
      http://172.23.105.169:8093/query/service

      ","adminEndpoint":"http://172.23.105.169:8093/admin","querySecure":"https://172.23.105.169:18093/query/service","adminSecure":"https://172.23.105.169:18093/admin","options":null}]
      17:11:30.802 [main] TRACE com.couchbase.jdbc.connect.Cluster - Endpoint 0 of 1
      17:11:30.802 [main] TRACE com.couchbase.jdbc.core.ProtocolImpl - Using endpoint
      http://172.23.105.169:8093/query/service

      17:11:30.805 [main] TRACE com.couchbase.jdbc.core.ProtocolImpl - Get request GET
      http://172.23.105.169:8093/query/service?statement=select+*+from+default+where+testid+%3D+%27ProjectionJDBCDriverTests.testSimpleData%27&encoding=UTF-8&timeout=75s&scan_consistency=not_bounded

      HTTP/1.1
      17:11:30.845 [main] DEBUG com.couchbase.jdbc.CBResultSet - Loaded result set
      17:11:30.849 [main] TRACE com.couchbase.jdbc.connect.Cluster - Endpoint 0 of 1
      17:11:30.850 [main] TRACE com.couchbase.jdbc.core.ProtocolImpl - Using endpoint
      http://172.23.105.169:8093/query/service

      17:11:30.850 [main] TRACE com.couchbase.jdbc.core.ProtocolImpl - do query POST
      http://172.23.105.169:8093/query/service

      HTTP/1.1
      17:11:31.039 [Couchbase housekeeping thread] TRACE com.couchbase.jdbc.core.ProtocolImpl - Cluster response [{"cluster":"default","name":"172.23.105.169","queryEndpoint":"
      http://172.23.105.169:8093/query/service

      ","adminEndpoint":"http://172.23.105.169:8093/admin","querySecure":"https://172.23.105.169:18093/query/service","adminSecure":"https://172.23.105.169:18093/admin","options":null}]
      17:11:40.858 [main] TRACE com.couchbase.jdbc.CBConnection - Normal http connection
      17:11:40.911 [main] TRACE com.couchbase.jdbc.core.ProtocolImpl - Cluster response [{"cluster":"default","name":"172.23.105.169","queryEndpoint":"
      http://172.23.105.169:8093/query/service

      ","adminEndpoint":"http://172.23.105.169:8093/admin","querySecure":"https://172.23.105.169:18093/query/service","adminSecure":"https://172.23.105.169:18093/admin","options":null}]
      17:11:41.090 [Couchbase housekeeping thread] TRACE com.couchbase.jdbc.core.ProtocolImpl - Cluster response [{"cluster":"default","name":"172.23.105.169","queryEndpoint":"
      http://172.23.105.169:8093/query/service

      ","adminEndpoint":"http://172.23.105.169:8093/admin","querySecure":"https://172.23.105.169:18093/query/service","adminSecure":"https://172.23.105.169:18093/admin","options":null}]
      17:11:42.913 [main] TRACE com.couchbase.jdbc.CBConnection - Normal http connection
      17:11:42.955 [main] TRACE com.couchbase.jdbc.core.ProtocolImpl - Cluster response [{"cluster":"default","name":"172.23.105.169","queryEndpoint":"
      http://172.23.105.169:8093/query/service

      ","adminEndpoint":"http://172.23.105.169:8093/admin","querySecure":"https://172.23.105.169:18093/query/service","adminSecure":"https://172.23.105.169:18093/admin","options":null}]
      17:11:42.955 [main] TRACE com.couchbase.jdbc.connect.Cluster - Endpoint 0 of 1
      17:11:42.956 [main] TRACE com.couchbase.jdbc.core.ProtocolImpl - Using endpoint
      http://172.23.105.169:8093/query/service

      17:11:42.956 [main] TRACE com.couchbase.jdbc.core.ProtocolImpl - do query POST
      http://172.23.105.169:8093/query/service

      HTTP/1.1
      17:11:42.962 [main] TRACE com.couchbase.jdbc.CBConnection - Normal http connection
      17:11:43.006 [main] TRACE com.couchbase.jdbc.core.ProtocolImpl - Cluster response [{"cluster":"default","name":"172.23.105.169","queryEndpoint":"
      http://172.23.105.169:8093/query/service

      ","adminEndpoint":"http://172.23.105.169:8093/admin","querySecure":"https://172.23.105.169:18093/query/service","adminSecure":"https://172.23.105.169:18093/admin","options":null}]
      17:11:43.007 [main] TRACE com.couchbase.jdbc.connect.Cluster - Endpoint 0 of 1
      17:11:43.007 [main] TRACE com.couchbase.jdbc.core.ProtocolImpl - Using endpoint
      http://172.23.105.169:8093/query/service

      17:11:43.007 [main] TRACE com.couchbase.jdbc.core.ProtocolImpl - Get request GET
      http://172.23.105.169:8093/query/service?statement=select+name+from+default&encoding=UTF-8&timeout=75s&scan_consistency=not_bounded

      HTTP/1.1
      17:11:43.026 [main] TRACE com.couchbase.jdbc.connect.Cluster - Endpoint 0 of 1
      17:11:43.026 [main] TRACE com.couchbase.jdbc.core.ProtocolImpl - Using endpoint
      http://172.23.105.169:8093/query/service

      17:11:43.026 [main] TRACE com.couchbase.jdbc.core.ProtocolImpl - do query POST
      http://172.23.105.169:8093/query/service

      HTTP/1.1
      17:11:43.128 [Couchbase housekeeping thread] TRACE com.couchbase.jdbc.core.ProtocolImpl - Cluster response [{"cluster":"default","name":"172.23.105.169","queryEndpoint":"
      http://172.23.105.169:8093/query/service

      ","adminEndpoint":"http://172.23.105.169:8093/admin","querySecure":"https://172.23.105.169:18093/query/service","adminSecure":"https://172.23.105.169:18093/admin","options":null}]
      17:11:53.032 [main] TRACE com.couchbase.jdbc.CBConnection - Normal http connection
      17:11:53.088 [main] TRACE com.couchbase.jdbc.core.ProtocolImpl - Cluster response [{"cluster":"default","name":"172.23.105.169","queryEndpoint":"
      http://172.23.105.169:8093/query/service

      ","adminEndpoint":"http://172.23.105.169:8093/admin","querySecure":"https://172.23.105.169:18093/query/service","adminSecure":"https://172.23.105.169:18093/admin","options":null}]
      17:11:53.089 [main] TRACE com.couchbase.jdbc.CBConnection - Normal http connection
      17:11:53.129 [main] TRACE com.couchbase.jdbc.core.ProtocolImpl - Cluster response [{"cluster":"default","name":"172.23.105.169","queryEndpoint":"
      http://172.23.105.169:8093/query/service

      ","adminEndpoint":"http://172.23.105.169:8093/admin","querySecure":"https://172.23.105.169:18093/query/service","adminSecure":"https://172.23.105.169:18093/admin","options":null}]
      17:11:53.130 [main] TRACE com.couchbase.jdbc.connect.Cluster - Endpoint 0 of 1
      17:11:53.130 [main] TRACE com.couchbase.jdbc.core.ProtocolImpl - Using endpoint
      http://172.23.105.169:8093/query/service

      17:11:53.131 [main] TRACE com.couchbase.jdbc.core.ProtocolImpl - do query POST
      http://172.23.105.169:8093/query/service

      HTTP/1.1
      17:11:53.147 [main] TRACE com.couchbase.jdbc.CBConnection - Normal http connection
      Jan 19, 2017 5:11:53 PM org.apache.http.impl.execchain.RetryExec execute
      INFO: I/O exception (java.net.SocketException) caught when processing request to {}->
      http://127.0.0.1:8093

      : Socket closed
      Jan 19, 2017 5:11:53 PM org.apache.http.impl.execchain.RetryExec execute
      INFO: Retrying request to {}->
      http://127.0.0.1:8093

      17:11:53.159 [Couchbase housekeeping thread] ERROR com.couchbase.jdbc.core.ProtocolImpl - Error opening connection Connection pool shut down
      17:11:53.165 [Couchbase housekeeping thread] ERROR com.couchbase.jdbc.CBDriver - Error polling cluster
      java.sql.SQLException: Error getting cluster response
      at com.couchbase.jdbc.core.ProtocolImpl.pollCluster(ProtocolImpl.java:985) ~[classes/:na]
      at com.couchbase.jdbc.CBConnection.pollCluster(CBConnection.java:1772) ~[classes/:na]
      at com.couchbase.jdbc.CBDriver$ClusterThread.run(CBDriver.java:283) ~[classes/:na]
      at java.lang.Thread.run(Thread.java:745) [na:1.8.0_60]
      Caused by: java.lang.IllegalStateException: Connection pool shut down
      at org.apache.http.util.Asserts.check(Asserts.java:34) ~[httpcore-4.4.jar:4.4]
      at org.apache.http.pool.AbstractConnPool.lease(AbstractConnPool.java:184) ~[httpcore-4.4.jar:4.4]
      at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.requestConnection(PoolingHttpClientConnectionManager.java:251) ~[httpclient-4.4.jar:4.4]
      at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:175) ~[httpclient-4.4.jar:4.4]
      at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184) ~[httpclient-4.4.jar:4.4]
      at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88) ~[httpclient-4.4.jar:4.4]
      at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) ~[httpclient-4.4.jar:4.4]
      at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184) ~[httpclient-4.4.jar:4.4]
      at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82) ~[httpclient-4.4.jar:4.4]
      at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:107) ~[httpclient-4.4.jar:4.4]
      at com.couchbase.jdbc.core.ProtocolImpl.pollCluster(ProtocolImpl.java:977) ~[classes/:na]
      ... 3 common frames omitted
      17:11:53.202 [main] TRACE com.couchbase.jdbc.core.ProtocolImpl - Cluster response [{"cluster":"default","name":"172.23.105.169","queryEndpoint":"
      http://172.23.105.169:8093/query/service

      ","adminEndpoint":"http://172.23.105.169:8093/admin","querySecure":"https://172.23.105.169:18093/query/service","adminSecure":"https://172.23.105.169:18093/admin","options":null}]

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            johan.larson Johan Larson (Inactive)
            Prerna.Manaktala Prerna Manaktala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty