Files
mongo/jstests/concurrency/fsm_workloads/findAndModify_upsert_collscan.js
alabid ecd3babf05 SERVER-16648 Additional FSM-based concurrency tests
Includes workloads for:
    aggregation
    mapReduce and group workloads
    creating and dropping roles and users
    update(...)
    basic workloads for capped collections
    findAndModify
    remove(...)
    dropping db/collection, renaming collections, and for server status

Updates blacklists to fsm_*js runners to work around MongoDB restrictions or known bugs.

Closes #902

Signed-off-by: Benety Goh <benety@mongodb.com>
2015-01-09 09:40:24 -05:00

22 lines
656 B
JavaScript

'use strict';
/**
* findAndModify_upsert_collscan.js
*
* Each thread repeatedly performs the findAndModify command, specifying
* upsert as either true or false. A single document is selected (or
* created) based on the 'query' specification, and updated using the
* $push operator.
*
* Forces 'sort' to perform a collection scan by using $natural.
*/
load('jstests/concurrency/fsm_libs/extend_workload.js'); // for extendWorkload
load('jstests/concurrency/fsm_workloads/findAndModify_upsert.js'); // for $config
var $config = extendWorkload($config, function($config, $super) {
$config.data.sort = { $natural: 1 };
return $config;
});