Uploaded image for project: 'Couchbase Java Client'
  1. Couchbase Java Client
  2. JCBC-1116

dns-srv resolution fails when ipv6 addresses exist in resolv.conf

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Major
    • 2.5.0
    • 2.3.7
    • None
    • None
    • rhel6 machine configured with dual network stack (ipv4 and ipv6)

    Description

      How to repro:
      1. setup /etc/resolv.conf with only ipv6 addresses. In this case we had:

      nameserver 2620:119:5008:1001::106

       
      2. use }}{{dnsSrvEnabled(true) when building the couchbase environment
       
      First the client fails to resolve the dns-srv record:

      2017/08/1811:46:01.163WARN [CouchbaseAsyncCluster] [qtp347978868-17] [sharin20] [wRRvPrP+uZ+udn56nbcg4g==] DNS SRV lookup failed, proceeding with normal bootstrap.
      java.lang.NumberFormatException: For input string: "119:5008:1001::106"
      
      

      then it falls back to non dns-srv behavior which fails:

      2017/08/18 11:46:01.170 INFO [SeedNodesRequest] [qtp347978868-17] [sharin20] [wRRvPrP+uZ+udn56nbcg4g==] Unknown host HDD-2.in-couchbase.ei-ltx1.stg.linkedin.com in bootstrap list. java.net.UnknownHostException: HDD-2.in-couchbase.ei-ltx1.stg.linkedin.com: unknown error

      Attachments

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

        Activity

          People

            daschl Michael Nitschinger
            bweir bweir
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty