Uploaded image for project: 'Couchbase Kubernetes'
  1. Couchbase Kubernetes
  2. K8S-116

Add timeout to cbmgr client

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 0.7.0
    • 0.7.0
    • None

    Description

      Operator hangs when node is unresponsive.... we can fix this with a timeout in the Client code.

       

      net/http.(*Client).send(0xc420740870, 0xc4206e0300, 0x0, 0x0, 0x0, 0xc42026c038, 0x0, 0x1, 0xc420740840)
       
        /usr/local/go/src/net/http/client.go:173 +0x108
       
      net/http.(*Client).Do(0xc420740870, 0xc4206e0300, 0xc42085e5c0, 0x40, 0x0)
       
        /usr/local/go/src/net/http/client.go:595 +0x254
       
      github.com/couchbase/couchbase-operator/vendor/github.com/couchbaselabs/gocbmgr.(*Couchbase).n_get(0xc42085e540, 0x11126fe, 0xe, 0xf52520, 0xc4206de060, 0xc420740810, 0x26, 0xc420711780)
       
        /opt/go/src/github.com/couchbase/couchbase-operator/vendor/github.com/couchbaselabs/gocbmgr/core.go:82 +0x1bd
       
      github.com/couchbase/couchbase-operator/vendor/github.com/couchbaselabs/gocbmgr.(*Couchbase).getPoolsDefault(0xc42085e540, 0x0, 0xc42088e150, 0xc420711808)
       
        /opt/go/src/github.com/couchbase/couchbase-operator/vendor/github.com/couchbaselabs/gocbmgr/api_internal.go:44 +0x8c
       
      github.com/couchbase/couchbase-operator/vendor/github.com/couchbaselabs/gocbmgr.(*Couchbase).ClusterInfo(0xc42085e540, 0x26, 0x73, 0x0)
       
        /opt/go/src/github.com/couchbase/couchbase-operator/vendor/github.com/couchbaselabs/gocbmgr/api.go:87 +0x2b
       
      github.com/couchbase/couchbase-operator/pkg/util/couchbaseutil.GetClusterStatus.func1(0x1, 0x3)
       
        /opt/go/src/github.com/couchbase/couchbase-operator/pkg/util/couchbaseutil/couchbaseutil.go:81 +0x51
       
      github.com/couchbase/couchbase-operator/pkg/util/retryutil.RetryOnErr.func1(0x100000008, 0x117f178, 0xc42085e580)
       
        /opt/go/src/github.com/couchbase/couchbase-operator/pkg/util/retryutil/retryutil.go:57 +0x60
       
      github.com/couchbase/couchbase-operator/pkg/util/retryutil.Retry(0x12a05f200, 0x24, 0xc4207407b0, 0x0, 0x0)
       
        /opt/go/src/github.com/couchbase/couchbase-operator/pkg/util/retryutil/retryutil.go:36 +0x98
       
      github.com/couchbase/couchbase-operator/pkg/util/retryutil.RetryOnErr(0x12a05f200, 0x24, 0x1112d1e, 0xe, 0xc4203d8ec0, 0xa, 0xc42073f5e0, 0xc42085fe00, 0xc420017300)
       
        /opt/go/src/github.com/couchbase/couchbase-operator/pkg/util/retryutil/retryutil.go:66 +0xc3
       
      github.com/couchbase/couchbase-operator/pkg/util/couchbaseutil.GetClusterStatus(0xc4201c6870, 0xc4202aa7c0, 0xd, 0xc4202aa7a8, 0x8, 0xc4203d8ec0, 0xa, 0x4, 0x0, 0x0)
       
        /opt/go/src/github.com/couchbase/couchbase-operator/pkg/util/couchbaseutil/couchbaseutil.go:116 +0x407
       
      github.com/couchbase/couchbase-operator/pkg/cluster.(*Cluster).reconcile(0xc42045cf00, 0xc42073f4c0, 0x3, 0x4, 0x0, 0x0)
       
        /opt/go/src/github.com/couchbase/couchbase-operator/pkg/cluster/reconcile.go:24 +0x253
       
      github.com/couchbase/couchbase-operator/pkg/cluster.(*Cluster).run(0xc42045cf00)
       
        /opt/go/src/github.com/couchbase/couchbase-operator/pkg/cluster/cluster.go:287 +0x60a
       
      github.com/couchbase/couchbase-operator/pkg/cluster.New.func1(0xc42045cf00)
       
        /opt/go/src/github.com/couchbase/couchbase-operator/pkg/cluster/cluster.go:97 +0x30d
       
      created by github.com/couchbase/couchbase-operator/pkg/cluster.New

       

      Attachments

        Activity

          People

            tommie Tommie McAfee (Inactive)
            tommie Tommie McAfee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              PagerDuty