[SERVER-55599] Add drop database FSM workload Created: 29/Mar/21  Updated: 29/Oct/23  Resolved: 06/May/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.0.0-rc0

Type: Task Priority: Major - P3
Reporter: PM Bot Assignee: Tommaso Tocci
Resolution: Fixed Votes: 0
Labels: PM-1965-Milestone-1
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-56646 Enable drop_database_sharded.js FSM w... Closed
Related
is related to SERVER-54587 Make create collection resilient to s... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding EMEA 2021-05-17
Participants:

 Description   

There is a TODO in the codebase to allow the drop_database.js workload to run in the presence of stepdowns, the latest error found is related to the drop database command:

uncaught exception: Error: 1 thread with tids [8] threw
 
        Foreground jstests/concurrency/fsm_workloads/drop_database.js
        Error: command failed: {
        	"info" : "mongos",
        	"ok" : 0,
        	"errmsg" : "replSetGetStatus is not supported through mongos",
        	"$clusterTime" : {
        		"clusterTime" : Timestamp(1617846803, 24),
        		"signature" : {
        			"hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
        			"keyId" : NumberLong(0)
        		}
        	},
        	"operationTime" : Timestamp(1617846803, 24)
        } with original command request: {
        	"replSetGetStatus" : 1,
        	"lsid" : {
        		"id" : UUID("9b77ac1d-79a8-4937-b8bc-c1f562abb8e4")
        	},
        	"$clusterTime" : {
        		"clusterTime" : Timestamp(1617846802, 31),
        		"signature" : {
        			"hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
        			"keyId" : NumberLong(0)
        		}
        	}
        } on connection: connection to localhost:20009 : error getting replication status from primary
 
        _getErrorWithCode@src/mongo/shell/utils.js:25:13
        doassert@src/mongo/shell/assert.js:18:14
        _assertCommandWorked@src/mongo/shell/assert.js:719:17
        assert.commandWorked@src/mongo/shell/assert.js:811:16
        awaitLatestOperationMajorityConfirmed@jstests/libs/override_methods/implicitly_retry_on_database_drop_pending.js:15:27
        runCommandWithRetries/<@jstests/libs/override_methods/implicitly_retry_on_database_drop_pending.js:142:13
        assert.soon@src/mongo/shell/assert.js:366:21
        runCommandWithRetries@jstests/libs/override_methods/implicitly_retry_on_database_drop_pending.js:48:5
        Mongo.prototype.runCommand@jstests/libs/override_methods/implicitly_retry_on_database_drop_pending.js:163:12
        runCommandWithReadAndWriteConcerns@jstests/libs/override_methods/set_read_and_write_concerns.js:176:12
        overrideRunCommand/Mongo.prototype.runCommand@jstests/libs/override_methods/override_helpers.js:81:20
        runCommandCheckForOperationNotSupportedInTransaction@jstests/libs/override_methods/check_for_operation_not_supported_in_transaction.js:16:15
        overrideRunCommand/Mongo.prototype.runCommand@jstests/libs/override_methods/override_helpers.js:81:20
        runClientFunctionWithRetries@src/mongo/shell/session.js:371:27
        runCommand@src/mongo/shell/session.js:466:25
        DB.prototype._runCommandImpl@src/mongo/shell/db.js:155:12
        DB.prototype.runCommand@src/mongo/shell/db.js:170:16
        DB.prototype.dropDatabase@src/mongo/shell/db.js:402:12
        createAndDrop@jstests/concurrency/fsm_workloads/drop_database.js:20:40
        runFSM@jstests/concurrency/fsm_libs/fsm.js:129:21
        @eval:8:9
        main@jstests/concurrency/fsm_libs/worker_thread.js:217:17
        @eval:5:12
        @eval:3:24
        _threadStartWrapper@:26:16
 
 :
throwError@jstests/concurrency/fsm_libs/runner.js:354:23
runWorkloads@jstests/concurrency/fsm_libs/resmoke_runner.js:202:5
@jstests/concurrency/fsm_libs/resmoke_runner.js:283:1



 Comments   
Comment by Githook User [ 06/May/21 ]

Author:

{'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com', 'username': 'toto-dev'}

Message: SERVER-55599 Add drop database FSM workload
Branch: master
https://github.com/mongodb/mongo/commit/816da4b8637a6c1276c38d60a8d81b1df1aa14be

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