diff options
Diffstat (limited to 'jstests/concurrency/fsm_workloads')
-rw-r--r-- | jstests/concurrency/fsm_workloads/update_upsert_multi.js | 5 | ||||
-rw-r--r-- | jstests/concurrency/fsm_workloads/update_upsert_multi_noindex.js | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/jstests/concurrency/fsm_workloads/update_upsert_multi.js b/jstests/concurrency/fsm_workloads/update_upsert_multi.js index 61e7f84f2e9..3b32f166d3f 100644 --- a/jstests/concurrency/fsm_workloads/update_upsert_multi.js +++ b/jstests/concurrency/fsm_workloads/update_upsert_multi.js @@ -8,6 +8,8 @@ * The 'update' state uses a query that will match one or more documents, causing a multi-update. * Both states use { multi: true, upsert: true }, but only one option will ever take effect, * depending on whether 0 or more than 0 documents match the query. + * + * @tags: [requires_non_retryable_writes] */ var $config = (function() { @@ -74,7 +76,8 @@ var $config = (function() { states: states, startState: 'insert', transitions: transitions, - data: {counter: 0}, + // Shard by tid when run in a sharded cluster because upserts require the shard key. + data: {counter: 0, shardKey: {tid: 1}}, setup: setup }; diff --git a/jstests/concurrency/fsm_workloads/update_upsert_multi_noindex.js b/jstests/concurrency/fsm_workloads/update_upsert_multi_noindex.js index 9841a2e91af..be943cf7b02 100644 --- a/jstests/concurrency/fsm_workloads/update_upsert_multi_noindex.js +++ b/jstests/concurrency/fsm_workloads/update_upsert_multi_noindex.js @@ -5,6 +5,8 @@ * * Executes the update_upsert_multi.js workload after dropping all non-_id * indexes on the collection. + * + * @tags: [requires_non_retryable_writes] */ load('jstests/concurrency/fsm_libs/extend_workload.js'); // for extendWorkload load('jstests/concurrency/fsm_workloads/update_upsert_multi.js'); // for $config |