Uploaded image for project: 'Couchbase .NET client library'
  1. Couchbase .NET client library
  2. NCBC-924

Port defaults to 0 when NodeExt is not found in cluster map

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.1.2
    • Fix Version/s: 2.1.2
    • Component/s: library
    • Labels:
      None
    • Environment:
      CB 2.5

      Description

      "it looks like in this class, "nodesExt" is null
      [3:18:11 PM] XXX: public NodeAdapter(Node node, NodeExt nodeExt)
      {
      _node = node;
      _nodeExt = nodeExt;

      //normalize the interfaces providing defaults where applicable
      Hostname = nodeExt == null ? node.Hostname : nodeExt.Hostname;
      Hostname = Hostname ?? node.Hostname;

      //strip off the admin port - we can use services
      if (Hostname.Contains(":"))

      { Hostname = Hostname.Split(':')[0]; }

      //These will default to zero id nodesExt is null
      if (nodeExt != null)
      {
      [3:18:25 PM] XXX: if nodeExt is null, "KeyValue" is defaulted to 0"

        Attachments

        For Gerrit Dashboard: NCBC-924
        # Subject Branch Project Status CR V

          Activity

          Show
          jmorris Jeff Morris added a comment - Regression from this commit: https://github.com/couchbase/couchbase-net-client/commit/c0ac3d3a18428c78cc19504352c74993f5a9bd23

            People

            • Assignee:
              jmorris Jeff Morris
              Reporter:
              jmorris Jeff Morris
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes

                  PagerDuty

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.