[SERVER-34622] ReplSetTest.start() does not use correct node options if bridge is enabled Created: 23/Apr/18  Updated: 29/Oct/23  Resolved: 24/Apr/18

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 3.7.7

Type: Bug Priority: Major - P3
Reporter: Kyle Suarez Assignee: Kyle Suarez
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Repl 2018-05-07
Participants:
Linked BF Score: 0

 Description   

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.



 Comments   
Comment by Githook User [ 24/Apr/18 ]

Author:

{'email': 'kyle.suarez@mongodb.com', 'username': 'ksuarz', 'name': 'Kyle Suarez'}

Message: SERVER-34622 use existing options in _unbridgedNodes if bridge is enabled

Otherwise, restarting a node will not use the correct options for when
the node was originally brought up.
Branch: master
https://github.com/mongodb/mongo/commit/b377d97f8b8e975036595445bd921ec70d42215a

Comment by Githook User [ 24/Apr/18 ]

Author:

{'email': 'kyle.suarez@mongodb.com', 'username': 'ksuarz', 'name': 'Kyle Suarez'}

Message: Revert "SERVER-34622 use existing options in _unbridgedNodes if bridge is enabled"

This reverts commit 0e374292088c87a86fee802160ca2467b81d4620.
Branch: master
https://github.com/mongodb/mongo/commit/71380389560ccc72037d9ed4480a119a53a973f1

Comment by Githook User [ 24/Apr/18 ]

Author:

{'email': 'kyle.suarez@mongodb.com', 'username': 'ksuarz', 'name': 'Kyle Suarez'}

Message: SERVER-34622 use existing options in _unbridgedNodes if bridge is enabled

Otherwise, restarting a node will not use the correct options for when
the node was originally brought up.
Branch: master
https://github.com/mongodb/mongo/commit/0e374292088c87a86fee802160ca2467b81d4620

Generated at Thu Feb 08 04:37:18 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.