diff options
Diffstat (limited to 'jstests/sharding/hedged_reads.js')
| -rw-r--r-- | jstests/sharding/hedged_reads.js | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/jstests/sharding/hedged_reads.js b/jstests/sharding/hedged_reads.js index bd121680d0a..10b655d5608 100644 --- a/jstests/sharding/hedged_reads.js +++ b/jstests/sharding/hedged_reads.js @@ -1,5 +1,10 @@ /** * Tests hedging metrics in the serverStatus output. + * @tags: [ + * # This test is known to be racey due to implementation of hedged reads (SERVER-65329). + * # Disable windows testing as this feature is deprecated in v8.0. + * incompatible_with_windows_tls, + * ] */ (function() { "use strict"; @@ -95,7 +100,9 @@ try { setCommandDelay(sortedNodes[0], "count", kBlockCmdTimeMS, ns); // Make the hedged request block for a while to allow the operation to start on the other node. - setCommandDelay(sortedNodes[1], "count", 100, ns); + // The delay is intentionally large so we avoid the race where a killOp can arrive before the + // request. + setCommandDelay(sortedNodes[1], "count", 1000, ns); const comment = "test_kill_initial_request_" + ObjectId(); assert.commandWorked(testDB.runCommand({ @@ -126,7 +133,9 @@ try { setCommandDelay(sortedNodes[1], "count", kBlockCmdTimeMS, ns); // Make the initial request block for a while to allow the operation to start on the other node. - setCommandDelay(sortedNodes[0], "count", 100, ns); + // The delay is intentionally large so we avoid the race where a killOp can arrive before the + // request. + setCommandDelay(sortedNodes[0], "count", 1000, ns); const comment = "test_kill_additional_request_" + ObjectId(); assert.commandWorked(testDB.runCommand({ |
