mongo/jstests/sharding/kill_op_overflow.js
Steve McClure 1ffbc6c2e9 SERVER-109432: Autofix JS var usage to favor let (#40637)
GitOrigin-RevId: 9674b7db36a0f3f650d39c1e3fb2ad6ff2141cfb
2025-08-28 19:21:01 +00:00

11 lines
414 B
JavaScript

/**
* This test asserts that an illegal OpID passed to mongos' implementation of killOp results in a
* failure being propagated back to the client.
*/
import {ShardingTest} from "jstests/libs/shardingtest.js";
let st = new ShardingTest({name: "shard1", shards: 1, mongos: 1});
assert.commandFailed(st.s.getDB("admin").runCommand({killOp: 1, op: st.shard0.shardName + ":99999999999999999999999"}));
st.stop();