diff options
author | Cheahuychou Mao <mao.cheahuychou@gmail.com> | 2023-04-04 20:21:03 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-04-04 23:17:28 +0000 |
commit | 64d0e2312c700199ed516b2ce388dab88ef2570b (patch) | |
tree | 6b28d0c2aee255692aa1c1ba20735bf6f82fb64e /jstests/concurrency | |
parent | 8f27a596df0b2be9a44a8fff6b9bf1985937e25b (diff) | |
download | mongo-64d0e2312c700199ed516b2ce388dab88ef2570b.tar.gz |
SERVER-69804 Add 'startTime' and 'stopTime' to config.queryAnalyzers document and 'oldConfiguration' and 'newConfiguration' to configureQueryAnalyzer response
Diffstat (limited to 'jstests/concurrency')
-rw-r--r-- | jstests/concurrency/fsm_workloads/analyze_shard_key.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/jstests/concurrency/fsm_workloads/analyze_shard_key.js b/jstests/concurrency/fsm_workloads/analyze_shard_key.js index 32fc90bdf98..5a7db07bf82 100644 --- a/jstests/concurrency/fsm_workloads/analyze_shard_key.js +++ b/jstests/concurrency/fsm_workloads/analyze_shard_key.js @@ -757,7 +757,11 @@ var $config = extendWorkload($config, function($config, $super) { $config.states.disableQuerySampling = function disableQuerySampling(db, collName) { print("Starting disableQuerySampling state"); const ns = db.getName() + "." + collName; - assert.commandWorked(db.adminCommand({configureQueryAnalyzer: ns, mode: "off"})); + // If query sampling is off, this command is expected to fail with an IllegalOperation + // error. + assert.commandWorkedOrFailedWithCode( + db.adminCommand({configureQueryAnalyzer: ns, mode: "off"}), + ErrorCodes.IllegalOperation); print("Finished disableQuerySampling state"); }; |