Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-34622

ReplSetTest.start() does not use correct node options if bridge is enabled

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.7.7
    • Affects Version/s: None
    • Component/s: Testing Infrastructure
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Repl 2018-05-07
    • 0

      If the bridge is enabled, the real connection to the server is stored in _unbridgedNodes:

              if (_useBridge) {
                  this.nodes[n].connectToBridge();
                  _unbridgedNodes[n] = conn;
              }
      

      But when we restart a node, we don't take the bridge into account when looking for the existing options:

              if ((options && options.restart) || restart) {
                  options = Object.merge(this.nodes[n].fullOptions, options);
              }
      

      If _useBridge is true, then this.nodes[n].fullOptions will be undefined.

      One symptom of the bug is that nodes that are restart when the bridge is enabled will not be restarted on their old port; instead, they'll be assigned a new port number.

            Assignee:
            kyle.suarez@mongodb.com Kyle Suarez
            Reporter:
            kyle.suarez@mongodb.com Kyle Suarez
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: