[SERVER-46215] Check primaryShardAfter in database_versioning_all_commands.js Created: 18/Feb/20  Updated: 29/Oct/23  Resolved: 13/Mar/20

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 4.4.0-rc0, 4.7.0

Type: Bug Priority: Major - P3
Reporter: Kevin Pulo Assignee: Lamont Nelson
Resolution: Fixed Votes: 0
Labels: sharding-4.4-stabilization
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4
Participants:

 Description   

https://github.com/mongodb/mongo/blob/r4.3.3/jstests/sharding/database_versioning_all_commands.js#L132-L133

        assertShardDatabaseVersion(primaryShardBefore, dbName, dbVersionAfter);
        assertShardDatabaseVersion(primaryShardBefore, dbName, dbVersionAfter);

The second call should use primaryShardAfter, not primaryShardBefore. Also another similar occurrence further down.



 Comments   
Comment by Githook User [ 23/Mar/20 ]

Author:

{'name': 'Lamont Nelson', 'username': 'lamontnelson', 'email': 'lamont.nelson@mongodb.com'}

Message: SERVER-46215: use primaryShardAfter for the second assertShardDatabaseVersion in database_versioning_all_commands.js
Branch: v4.4
https://github.com/mongodb/mongo/commit/b0ec254ffc0ef9bdebc9e78b5febbcc637b1852c

Comment by Githook User [ 13/Mar/20 ]

Author:

{'username': 'lamontnelson', 'name': 'Lamont Nelson', 'email': 'lamont.nelson@mongodb.com'}

Message: SERVER-46215: use primaryShardAfter for the second assertShardDatabaseVersion in database_versioning_all_commands.js
Branch: master
https://github.com/mongodb/mongo/commit/8c028c6959290710de551359fb296f655584d43f

Generated at Thu Feb 08 05:10:50 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.