Uploaded image for project: 'C++ Couchbase Client'
  1. C++ Couchbase Client
  2. CXXCBC-362

Remove node hostname port stripping logic

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.0.0-dp.8
    • 1.0.0-dp.7
    • None
    • None
    • 1
    • SDK32

    Description

      When populating the node hostname from the cluster config the SDK is currently attempting to strip the port from the hostname. The logic to remove the port from the hostname causes an issue when the hostname is an IPv6 address as it will remove the last segment in the IPv6 address. With the last segment in the IPv6 removed the hostname becomes invalid and therefore the SDK cannot connect to the cluster.

      Since the SDK reads the hostname from the `nodesExt` section of the config map, the port does not need to be stripped as it is not provided. Removing the port stripping logic will solve this issue.

      Attachments

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

        Activity

          People

            jared.casey Jared Casey
            jared.casey Jared Casey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes