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

Couchbase could not open bucket when using IPV6

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • None
    • 1.6.2
    • Core
    • None
    • Linux
    • 1

    Description

      Error hit when passing IP6v address in format

      String hosts = "[2001:db4:bad:a55::5]:8091"
       
      Cluster cluster = CouchbaseCluster.create(createCBEnvironment(), hosts);
      bucket = cluster.openBucket(bucketName);
      

      The issue seem coming from the 

       

       

      Caused by: java.net.UnknownHostException: 2001:db4:bad:a55::5:: invalid IPv6 addressCaused by: java.net.UnknownHostException: 2001:db4:bad:a55::5:: invalid IPv6 address at java.net.InetAddress.getAllByName(InetAddress.java:1169) at java.net.InetAddress.getAllByName(InetAddress.java:1126) at com.couchbase.client.core.utils.NetworkAddress.<init>(NetworkAddress.java:70) ... 58 more

      which the url where not in IPV6 [::::]: format.

      nodes":[{"couchApiBase":"http://2001:db4:bad:a55::5:8092/Test_bucket
      

       

      attached with the error logs.

      Attachments

        1. curl_result.json
          8 kB
        2. error_log.txt
          26 kB
        3. trace.log
          194 kB

        Activity

          People

            david.kelly David Kelly (Inactive)
            luke_dev86 Luke Tan
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              PagerDuty