[SERVER-48611] speculative_majority_find.js should call awaitLastOpCommitted before running majority read that is expected to succeed Created: 05/Jun/20  Updated: 29/Oct/23  Resolved: 05/Jun/20

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: 4.5.1, 4.2.7, 4.4.0-rc8
Fix Version/s: 4.4.0-rc10, 4.2.9, 4.7.0

Type: Bug Priority: Major - P3
Reporter: William Schultz (Inactive) Assignee: William Schultz (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4, v4.2
Participants:
Linked BF Score: 14

 Description   

We should change this awaitReplication to awaitLastOpCommitted to prevent the final majority read from timing out if the secondary is slow to update the primary with its replication progress.



 Comments   
Comment by Githook User [ 24/Jun/20 ]

Author:

{'name': 'William Schultz', 'email': 'william.schultz@mongodb.com', 'username': 'will62794'}

Message: SERVER-48611 Use awaitLastOpCommitted instead of awaitReplication in speculative_majority_find.js

(cherry picked from commit cbf2cb2cd7288b6b0aae866296d2c1f1acd344ad)
Branch: v4.2
https://github.com/mongodb/mongo/commit/46579d22c2ee61185efdf334f16cfc453e17b65c

Comment by Githook User [ 17/Jun/20 ]

Author:

{'name': 'William Schultz', 'email': 'william.schultz@mongodb.com', 'username': 'will62794'}

Message: SERVER-48611 Use awaitLastOpCommitted instead of awaitReplication in speculative_majority_find.js

(cherry picked from commit cbf2cb2cd7288b6b0aae866296d2c1f1acd344ad)
Branch: v4.4
https://github.com/mongodb/mongo/commit/e141d191fce0176fbaaafb91d8eb5e127c8b25ed

Comment by Githook User [ 05/Jun/20 ]

Author:

{'name': 'William Schultz', 'email': 'william.schultz@mongodb.com', 'username': 'will62794'}

Message: SERVER-48611 Use awaitLastOpCommitted instead of awaitReplication in speculative_majority_find.js
Branch: master
https://github.com/mongodb/mongo/commit/cbf2cb2cd7288b6b0aae866296d2c1f1acd344ad

Generated at Thu Feb 08 05:17:36 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.