[SERVER-19529] FSM tests - add cleanupOptions for runWorkloads Created: 22/Jul/15  Updated: 19/Sep/15  Resolved: 24/Jul/15

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

Type: Improvement Priority: Major - P3
Reporter: Jonathan Abrahams Assignee: Jonathan Abrahams
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-20469 FSM tests - capability to run more th... Closed
Backwards Compatibility: Fully Compatible
Sprint: CAP - 3.1.7
Participants:

 Description   

The FSM test suite is now being used for other purposes:

  • Powercycle testing
  • Backup/restore

It provides very good coverage of many DB operations. One issue that that conflicts wiht these others tests is that as the workloads complete the cleanup drops all databases, including ones not used in the FSM suite. A cleanupOptions object will be used to change the behavior of this cleanup:

  • {dropOnlyCreatedDatabases: true}
  • {dropDatabaseBlacklist: [] }

If the dropOnlyCreatedDatabases option is false, the behavior remains as is. If true, then the dropAllDatabases will only drop databases that have been created during the FSM testing. This requires another mechanism to register which databases are created.

The second option, dropDatabaseBlacklist, is more straight forward and permits the blacklist to be defined of which databases are not dropped. Note that this extends the existing blacklist from ['admin', 'config', 'local', '$external'].



 Comments   
Comment by Githook User [ 28/Jul/15 ]

Author:

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

Message: SERVER-19529 FSM - Add cleanupOptions to support blacklist for dropDatabase.
This permits FSM to run at the same time as other tests.
Branch: master
https://github.com/mongodb/mongo/commit/2019fad68b7ff397af2d810af3e4a08bd122f713

Comment by Githook User [ 24/Jul/15 ]

Author:

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

Message: SERVER-19529 FSM - Add cleanupOptions to support blacklist for dropDatabase.
This permits FSM to run at the same time as other tests.
Branch: master
https://github.com/mongodb/mongo/commit/2019fad68b7ff397af2d810af3e4a08bd122f713

Comment by Jonathan Abrahams [ 22/Jul/15 ]

For now, implementing the dropDatabaseBlacklist is simpler and meets the immediate need. Other cleanup options can be added later.

Generated at Thu Feb 08 03:51:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.