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

Seeing "invalid IPv6 address" warnings when trying to connect to a valid Ipv6 address

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 2.0.7
    • 2.0.6
    • None
    • Centos 7 64 bit: Couchbase Enterprise 7.0.0-2351
    • 1

    Description

      Description:

      Seeing warnings like

      [WARN ] 2020-06-18 07:09:51.328 [cb-events] endpoint - [com.couchbase.endpoint][EndpointConnectionFailedEvent][108us] Connect attempt 257 failed because of UnknownHostException: fd63:6f75:6368:20d4:423d:37c3:e6f7:3fac:: invalid IPv6 address {"bucket":"lCx_lsQL3OcVNj","circuitBreaker":"DISABLED","coreId":"0x7072a90f0000000e","remote":"fd63:6f75:6368:20d4:423d:37c3:e6f7:3fac::11210","type":"KV"}
      java.net.UnknownHostException: fd63:6f75:6368:20d4:423d:37c3:e6f7:3fac:: invalid IPv6 address

       when trying to connect to a ipv6 node with its ip address [fd63:6f75:6368:20d4:423d:37c3:e6f7:3fac]

      Script to Repo:

      /testrunner -i /tmp/durability_volume.ini sdk_client_pool=True,rerun=False,log_level=debug,installParameters=enable_ipv6=True,bucket_spec=single_bucket.def_scope_fifty_collections -t bucket_collections.basic_ops.BasicOps.test_delete_default_collection,nodes_init=1,client_type=sdk

      we see the above warning and ultimately see after certain number of retries:

      [DEBUG] 2020-06-18 07:09:51.335 [cb-events] request - [com.couchbase.request][RequestNotRetriedEvent] Request CarrierBucketConfigRequest not retried per RetryStrategy (Reason: NODE_NOT_AVAILABLE) {"cancelled":true,"completed":true,"coreId":"0x7072a90f0000001a","idempotent":true,"reason":"NO_MORE_RETRIES (NODE_NOT_AVAILABLE)","requestId":37431,"requestType":"CarrierBucketConfigRequest","retried":0,"service":{"bucket":"lCx_lsQL3OcVNj","collection":"_default","opaque":"0xb270","scope":"_default","target":"fd63:6f75:6368:20d4:423d:37c3:e6f7:3fac:","type":"kv"},"timeoutMs":2500}

      Have attached the log with sdk debug enabled.

      I was able to reproduce the warning with the standalone script (java client 3.0.5) HelloWorld.java

      Sometimes here with this script it does connect(with or without retries), sometimes it doesn't.

      with the hostname given instead of Ipv6 address, it always works fine - ie;

      Cluster.connect("s10505-ip6.qe.couchbase.com", "Administrator", "password");

      Attachments

        1. HelloWorld.java
          0.7 kB
        2. multinode_config_success
          8 kB
        3. sdk_ipv6.zip
          31.22 MB
        4. single_node_terse_bucket_config.txt
          11 kB

        Issue Links

          Activity

            People

              daschl Michael Nitschinger
              sumedh.basarkod Sumedh Basarkod (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                PagerDuty