blob: d596517c7ada41061c2b663a49465894d752653c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/**
* Tests that mongos reacts properly to a client disconnecting while the logical time is being
* signed as a part of appending fields to a command response.
*
* @tags: [
* requires_sharding,
* ]
*/
(function() {
"use strict";
const st = new ShardingTest({mongos: 1, shards: 0, keyFile: "jstests/libs/key1"});
assert.commandFailedWithCode(st.s.adminCommand({
configureFailPoint: "throwClientDisconnectInSignLogicalTimeForExternalClients",
mode: {times: 1}
}),
ErrorCodes.ClientDisconnect);
st.stop();
})();
|