Uploaded image for project: 'Java Couchbase JVM Core'
  1. Java Couchbase JVM Core
  2. JVMCBC-682

Latest core-io doesn't support non-default bootstrap endpoints

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Critical
    • 2.0.0-alpha.4
    • 2.0.0-alpha.3
    • None
    • None
    • 1

    Description

      Or at least I couldn't get it to connection to a cluster_run build. Code I was trying was this:

          Cluster cluster = Cluster.connect(
                  "localhost:12000",
                  "Administrator",
                  "asdasd");
          Bucket bucket = cluster.bucket("default");
          Collection collection = bucket.defaultCollection();
      

      Which would result in me seeing these complaints endlessly:

      22:51:29 DEBUG [com.couchbase.client.core.retry.reactor.DefaultRetry:254] Scheduling retry attempt, retry context: iteration=1 exception=com.couchbase.client.core.deps.io.netty.channel.AbstractChannel$AnnotatedConnectException: syscall:getsockopt(..) failed: Connection refused: localhost/127.0.0.1:11210 backoff={32ms/4096ms}
      22:51:29 DEBUG [com.couchbase.client.core.retry.reactor.DefaultRetry:254] Scheduling retry attempt, retry context: iteration=2 exception=com.couchbase.client.core.deps.io.netty.channel.AbstractChannel$AnnotatedConnectException: syscall:getsockopt(..) failed: Connection refused: localhost/127.0.0.1:11210 backoff={64ms/4096ms}
      22:51:29 DEBUG [com.couchbase.client.core.retry.reactor.DefaultRetry:254] Scheduling retry attempt, retry context: iteration=3 exception=com.couchbase.client.core.deps.io.netty.channel.AbstractChannel$AnnotatedConnectException: syscall:getsockopt(..) failed: Connection refused: localhost/127.0.0.1:11210 backoff={128ms/4096ms}
      22:51:29 INFO  [CouchbaseLogger:400] [NODE][NodeConnectedEvent] Node connected {"coreId":1,"managerPort":"8091","remote":"localhost"}
      22:51:29 DEBUG [CouchbaseLogger:380] [SERVICE][ServiceConnectInitiatedEvent] Starting to connect service with 1 minimum endpoints {"bucket":"default","coreId":1,"remote":"localhost:11210","type":"KV"}
      22:51:29 DEBUG [CouchbaseLogger:380] [SERVICE][ServiceAddedEvent][114333µs] Service added to Node {"bucket":"default","coreId":1,"remote":"localhost:11210","type":"KV"}
      22:51:29 DEBUG [CouchbaseLogger:380] [REQUEST][RequestRetriedEvent][100000µs] Request CarrierBucketConfigRequest retried per RetryStrategy {"retried":2,"requestId":1,"timeoutMs":2500,"service":{"bucket":"default","scope":{"present":false},"collection":{"present":false},"type":"kv","key":""},"coreId":1,"completed":false}
      22:51:29 WARN  [CouchbaseLogger:420] [ENDPOINT][EndpointConnectionFailedEvent][90289µs] Connect attempt 1 failed because of AnnotatedConnectException: syscall:getsockopt(..) failed: Connection refused: localhost/127.0.0.1:11210 {"bucket":"default","circuitBreaker":"DISABLED","coreId":1,"remote":"localhost:11210","type":"KV"}
      

      I tried various forms of the connection string including explicity specifying the scheme and trying to bootstrap off HTTP to no avail before I looked at the code and figured it was indeed a bug.

      Attachments

        For Gerrit Dashboard: JVMCBC-682
        # Subject Branch Project Status CR V

        Activity

          People

            daschl Michael Nitschinger
            dfinlay Dave Finlay
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty