[SERVER-30204] Create resmoke.py hook that drops all databases without restarting the cluster Created: 18/Jul/17  Updated: 30/Oct/23  Resolved: 15/May/18

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: 3.5.10
Fix Version/s: 4.0.0-rc0

Type: Task Priority: Major - P3
Reporter: Robert Guo (Inactive) Assignee: Jonathan Abrahams
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Duplicate
is duplicated by SERVER-34548 Make FSM workloads able to be run via... Closed
Problem/Incident
causes SERVER-35523 FSMWorkloadTestCase erroneously sets ... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v3.6
Sprint: TIG 2018-05-21
Participants:
Linked BF Score: 42
Story Points: 3

 Description   

Add support for including background/perpetual workloads. Background/perpetual workloads should be done as background threads in resmoke.py and don't need any special handling other than ensuring adequate documentation in our internal wiki.

Also, add a new hook to drop all DBs and collections after every FSM test. When running in "the same" DB Or "same collection" FSM modes, pass the DB or collection that are not dropped to the new cleanup hook. CleanupOption of not dropping certain DBs will be taken into account as needed.

The new hook will be used in place of CleanEveryN to avoid the overhead of spinning up a large cluster multiple times.



 Comments   
Comment by Githook User [ 15/May/18 ]

Author:

{'email': 'jonathan@mongodb.com', 'username': 'hptabster', 'name': 'Jonathan Abrahams'}

Message: SERVER-30204 Fix exception handling in CleanupConcurrencyWorkloads hook
Branch: master
https://github.com/mongodb/mongo/commit/03d9c6b1724596fc905b447c1382603a8677e6af

Comment by Jonathan Abrahams [ 15/May/18 ]

Reopening - The exception handler references a variable, db, which does not exist.

Comment by Githook User [ 14/May/18 ]

Author:

{'name': 'Jonathan Abrahams', 'email': 'jonathan@mongodb.com', 'username': 'hptabster'}

Message: SERVER-30204 Use a new CleanupConcurrencyWorkloads hook instead of CleanEveryN for FSM suites using resmoke_runner.js
Branch: master
https://github.com/mongodb/mongo/commit/9db7db6586d621ab41430a26155d9c46ce32c046

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