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

unambiguous timeout while connecting to cluster

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not a Bug
    • Major
    • None
    • 2.1.8
    • core-library
    • None
    • Darwin mac.local 20.3.0 Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~1/RELEASE_X86_64 x86_64

      go version go1.15.6 darwin/amd64

      github.com/couchbase/gocb/v2 v2.1.8
    • 1
    • Critical

    Description

      Running the following simple code:
      ```

      package main
      import (
       "fmt"
      "github.com/couchbase/gocb/v2"
       )
      var cluster *gocb.Cluster
      func main() {
      cluster, err := gocb.Connect(
       "192.168.0.2:8091",
       gocb.ClusterOptions
      { Username: "Administrator", Password: "password", }
      )
       if err != nil
      { panic(err) }
       fmt.Println(cluster)
       
       bucketsMAnager := cluster.Buckets()
       buckets, err := bucketsMAnager.GetAllBuckets(nil)
       if err != nil { panic(err) }
      for_, bucket := range buckets
      { fmt.Println(bucket) }
      }
       
      

      ```

      Fails with 
      ```
      &{{ [

      {192.168.0.2 8091}

      ] map[]} {Administrator password} 0xc0000aa3a0 true true {10000000000 2500000000 10000000000 75000000000 75000000000 75000000000 75000000000 75000000000} 0x1623900 0xc00009b720 true 0 0 0xc0000c4480 {false 0 0 0 0 <nil> 0} {<nil> false []} {<nil>}}
      panic: unambiguous timeout | {"unique_id":"a06405da-3845-49a4-94bc-3619403dab15"} | {"unique_id":"a06405da-3845-49a4-94bc-3619403dab15"} | {"unique_id":"a06405da-3845-49a4-94bc-3619403dab15"}
      ```

      Attachments

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

        Activity

          People

            charles.dixon Charles Dixon
            salos salos
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty