[SERVER-27665] maxTimeNeverTimeOut failPoint not invoked for a linearizable readConcern Created: 12/Jan/17  Updated: 06/Dec/22  Resolved: 09/Apr/20

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: 3.5.1
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Jonathan Abrahams Assignee: Backlog - Replication Team
Resolution: Won't Fix Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Tested
tested by SERVER-27498 Add Linearizable readConcern passthrough Closed
Assigned Teams:
Replication
Operating System: ALL
Participants:

 Description   

The test jstests/core/max_time_ms.js fails when run in the linearizable readConcern override passthrough for the following test case:

// maxTimeNeverTimeOut positive test for query.
assert.eq(1,
          t.getDB().adminCommand({configureFailPoint: "maxTimeNeverTimeOut", mode: "alwaysOn"}).ok);
t.drop();
t.insert([{}, {}, {}]);
cursor = t.find({
    $where: function() {
        sleep(100);
        return true;
    }
});
cursor.maxTimeMS(100);
assert.doesNotThrow(function() {
    cursor.itcount();
}, [], "expected query to trigger maxTimeNeverTimeOut fail point");
assert.eq(1, t.getDB().adminCommand({configureFailPoint: "maxTimeNeverTimeOut", mode: "off"}).ok);

[js_test:max_time_ms] 2017-01-11T15:31:55.044+0000 assert: threw unexpected exception: Error: error: {
[ReplicaSetFixture:job0:primary] 2017-01-11T15:31:55.042+0000 I COMMAND  [conn92] command test.max_time_ms appName: "MongoDB Shell" command: find { find: "max_time_ms", filter: { $where: function () {
[js_test:max_time_ms] 2017-01-11T15:31:55.047+0000 	"ok" : 0,
[js_test:max_time_ms] 2017-01-11T15:31:55.047+0000 	"errmsg" : "operation exceeded time limit",
[js_test:max_time_ms] 2017-01-11T15:31:55.048+0000 	"code" : 50,
[js_test:max_time_ms] 2017-01-11T15:31:55.048+0000 	"codeName" : "ExceededTimeLimit"
[js_test:max_time_ms] 2017-01-11T15:31:55.049+0000 } : expected query to trigger maxTimeNeverTimeOut fail point
[js_test:max_time_ms] 2017-01-11T15:31:55.050+0000 doassert@src/mongo/shell/assert.js:18:14
[js_test:max_time_ms] 2017-01-11T15:31:55.051+0000 assert.doesNotThrow@src/mongo/shell/assert.js:346:13



 Comments   
Comment by Siyuan Zhou [ 09/Apr/20 ]

max_time_ms.js has been moved to noPassthrough test suite. Closing the ticket.

Generated at Thu Feb 08 04:15:49 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.