summaryrefslogtreecommitdiff
path: root/jstests/sharding/kill_op_overflow.js
blob: 2d30799b9aa5eb36d8760e2adbc5fd3259e53927 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/**
 * This test asserts that an illegal OpID passed to mongos' implementation of killOp results in a
 * failure being propagated back to the client.
 */
(function() {
    "use strict";
    var st = new ShardingTest({name: "shard1", shards: 1, mongos: 1});

    assert.commandFailed(
        st.s.getDB("admin").runCommand({killOp: 1, op: "shard0000:99999999999999999999999"}));
    st.stop();
})();