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

    • Bug
    • Resolution: Fixed
    • Major
    • 1.3.6
    • None
    • library
    • 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

          People

            oleksandr.gyryk Alex Gyryk (Inactive)
            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