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

    • Bug
    • Resolution: Fixed
    • Blocker
    • 2.1.2
    • 2.1.2
    • library
    • None
    • 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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              PagerDuty