-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Replication
-
Fully Compatible
-
ALL
-
v4.4, v4.2, v4.0
-
Sharding 2021-05-17
-
20
jstests/multiVersion/libs/multi_rs.js has two distinct issues around authentication:
- ReplSetTest.prototype.reconnect() replaces the connection in the nodes array with a new connection. Any non-function properties on the original connection object are copied over to the new connection object. This includes the '_defaultSession' property which is a DriverSession object bound to the original connection object and leads to commands being sent through the original connection object despite methods being called on DB objects from the new connection object.
- ReplSetTest.prototype.upgradePrimary() calls waitForState() which internally uses asCluster() on the current primary or first node in the replica set and will run the logout command. This has been addressed on more recent branches via
SERVER-53812by having asCluster() not call authutil.asCluster() when the connection is already authenticated.
- is related to
-
SERVER-52955 KeysCollectionClientDirect should check if majority read concern is supported by storage engine
- Closed
-
SERVER-53812 replsettest.awaitReplication does not work with keyfile authentication
- Closed
-
SERVER-53029 Port the changes for SERVER-52955 to later branches
- Closed