Uploaded image for project: 'Couchbase Go SDK'
  1. Couchbase Go SDK
  2. GOCBC-159

A connection leak happens when running N1QL queries concurrently

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3.6
    • Component/s: library
    • Labels:
      None

      Description

      > go version
      go version go1.7.5 linux/amd64
      

      > go env
      GOARCH="amd64"
      GOBIN=""
      GOEXE=""
      GOHOSTARCH="amd64"
      GOHOSTOS="linux"
      GOOS="linux"
      GOPATH="/home/pavel/dev/go"
      GORACE=""
      GOROOT="/usr/lib/golang"
      GOTOOLDIR="/usr/lib/golang/pkg/tool/linux_amd64"
      CC="gcc"
      GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build144614873=/tmp/go-build -gno-record-gcc-switches"
      CXX="g++"
      CGO_ENABLED="1"
      

      {
                              "checksumSHA1": "fsdN5ae3yIw8A08ycRKJxjT/Cuo=",
                              "path": "gopkg.in/couchbase/gocb.v1",
                              "revision": "6fca8af693ca20d33fd8427a09636362061a3b71",
                              "revisionTime": "2016-12-21T09:34:16Z"
      }
      

      Test: https://gist.github.com/pavel-paulau/aaee5ef110d760e48337b1b326f075d7

      Outcome:

      2017/02/09 17:58:39 Post http://172.23.96.123:8093/query/service: dial tcp 172.23.96.123:8093: connect: cannot assign requested address
      

      I am seeing 28K TCP connections in TIME_WAIT state after running that test for a minute.

        Attachments

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

          Activity

          Hide
          build-team Couchbase Build Team added a comment -

          Build couchbase-server-5.5.0-2935 contains gocbcore commit 7b68c49 with commit message:
          GOCBC-159: Added connstr options for http client tuneables.

          Show
          build-team Couchbase Build Team added a comment - Build couchbase-server-5.5.0-2935 contains gocbcore commit 7b68c49 with commit message: GOCBC-159 : Added connstr options for http client tuneables.
          Hide
          build-team Couchbase Build Team added a comment -

          Build couchbase-server-6.0.0-1278 contains gocbcore commit 7b68c49 with commit message:
          GOCBC-159: Added connstr options for http client tuneables.

          Show
          build-team Couchbase Build Team added a comment - Build couchbase-server-6.0.0-1278 contains gocbcore commit 7b68c49 with commit message: GOCBC-159 : Added connstr options for http client tuneables.
          Hide
          build-team Couchbase Build Team added a comment -

          Build couchbase-server-6.5.0-1027 contains gocbcore commit 7b68c49 with commit message:
          GOCBC-159: Added connstr options for http client tuneables.

          Show
          build-team Couchbase Build Team added a comment - Build couchbase-server-6.5.0-1027 contains gocbcore commit 7b68c49 with commit message: GOCBC-159 : Added connstr options for http client tuneables.
          Hide
          build-team Couchbase Build Team added a comment -

          Build couchbase-server-5.1.2-6014 contains gocbcore commit 7b68c49 with commit message:
          GOCBC-159: Added connstr options for http client tuneables.

          Show
          build-team Couchbase Build Team added a comment - Build couchbase-server-5.1.2-6014 contains gocbcore commit 7b68c49 with commit message: GOCBC-159 : Added connstr options for http client tuneables.
          Hide
          build-team Couchbase Build Team added a comment -

          Build couchbase-server-5.1.1-5904 contains gocbcore commit 7b68c49 with commit message:
          GOCBC-159: Added connstr options for http client tuneables.

          Show
          build-team Couchbase Build Team added a comment - Build couchbase-server-5.1.1-5904 contains gocbcore commit 7b68c49 with commit message: GOCBC-159 : Added connstr options for http client tuneables.

            People

            • Assignee:
              oleksandr.gyryk Alex Gyryk (Inactive)
              Reporter:
              pavelpaulau Pavel Paulau (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

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.