blob: b796aee38e140b044e3317590221358e7516a772 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
'use strict';
/**
* Same as the base workload, but refines to a nested shard key.
*
* @tags: [
* assumes_balancer_off,
* # The init() state function populates each document owned by a particular thread with a
* # "counter" value. Doing so may take longer than the configured stepdown interval. It is
* # therefore unsafe to automatically run inside a multi-statement transaction because its
* # progress will continually be interrupted.
* operations_longer_than_stepdown_interval_in_txns,
* requires_non_retryable_writes,
* requires_sharding,
* uses_transactions,
* ]
*/
load('jstests/concurrency/fsm_libs/extend_workload.js');
load(
'jstests/concurrency/fsm_workloads/random_moveChunk_refine_collection_shard_key_broadcast_update_transaction.js');
var $config = extendWorkload($config, function($config, $super) {
$config.data.newShardKey = {a: 1, "b.c": 1};
$config.data.newShardKeyFields = ["a", "b.c"];
return $config;
});
|