[SERVER-42631] Blacklist tests that use Mongo.logout() from stepdown suites Created: 05/Aug/19  Updated: 29/Oct/23  Resolved: 22/Oct/19

Status: Closed
Project: Core Server
Component/s: Sharding, Testing Infrastructure
Affects Version/s: None
Fix Version/s: 3.6.17, 4.3.1, 4.2.3, 4.0.15

Type: Bug Priority: Major - P3
Reporter: Jack Mulrow Assignee: Anton Oyung
Resolution: Fixed Votes: 0
Labels: sharding-wfbf-day
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.2, v4.0, v3.6
Sprint: Sharding 2019-10-21
Participants:
Linked BF Score: 4

 Description   

Mongo.logout() doesn't go through runCommand(), which is where the stepdown suites catch and retry on stepdown errors. The stepdown suites aren't meant to test auth, so tests that call logout on a mongo object should be blacklisted from them. One way to do this is to override Mongo.logout() to throw in these suites (like what's done here) and add the tag requires_non_retryable_commands to any tests that use that method.



 Comments   
Comment by Githook User [ 08/Jan/20 ]

Author:

{'name': 'Jack Mulrow', 'email': 'jack.mulrow@mongodb.com', 'username': 'jsmulrow'}

Message: SERVER-42631 Blacklist tests that use Mongo.logout() from stepdown suites

(cherry picked from commit d33751abc223bc31a5145f4ffe745012abd978ec)
Branch: v3.6
https://github.com/mongodb/mongo/commit/0b795201752949b87c380eaffc86fc4006e2adf1

Comment by Githook User [ 08/Jan/20 ]

Author:

{'name': 'Jack Mulrow', 'email': 'jack.mulrow@mongodb.com', 'username': 'jsmulrow'}

Message: SERVER-42631 Blacklist tests that use Mongo.logout() from stepdown suites

(cherry picked from commit d33751abc223bc31a5145f4ffe745012abd978ec)
Branch: v4.0
https://github.com/mongodb/mongo/commit/08904dee65f2dacc2bf598b072b0dab727038f11

Comment by Githook User [ 08/Jan/20 ]

Author:

{'name': 'Jack Mulrow', 'email': 'jack.mulrow@mongodb.com', 'username': 'jsmulrow'}

Message: SERVER-42631 Blacklist tests that use Mongo.logout() from stepdown suites

(cherry picked from commit d33751abc223bc31a5145f4ffe745012abd978ec)
Branch: v4.2
https://github.com/mongodb/mongo/commit/03c5fd6b1f9cf3977d41ef072065f480742c0af7

Comment by Githook User [ 22/Oct/19 ]

Author:

{'username': 'AntonOyung', 'email': 'anton.oyung@mongodb.com', 'name': 'Anton Oyung'}

Message: SERVER-42631 Blacklist tests that use Mongo.logout() from stepdown suites
Branch: master
https://github.com/mongodb/mongo/commit/d33751abc223bc31a5145f4ffe745012abd978ec

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