[SERVER-37240] Enable dbhash background thread for enableMajorityReadConcern:false variant Created: 20/Sep/18  Updated: 29/Oct/23  Resolved: 14/Dec/18

Status: Closed
Project: Core Server
Component/s: Replication, Testing Infrastructure
Affects Version/s: None
Fix Version/s: 4.0.6, 4.1.7

Type: Task Priority: Major - P3
Reporter: Tess Avitabile (Inactive) Assignee: Vesselina Ratcheva (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.0
Sprint: Repl 2018-11-19, Repl 2018-12-03, Repl 2018-12-17, Repl 2019-01-14
Participants:

 Description   

This is follow-on work for SERVER-36982 and SERVER-37227. We disabled the dbhash background thread for enableMajorityReadConcern:false, since the thread performs a majority afterClusterTime read, in order to check that the secondary has applied up to the chosen cluster time and advanced its majority commit point. Instead, we can run replSetGetStatus in an assert.soon() loop and check the lastCommittedOpTime.

We plan to disable atClusterTime with enableMajorityReadConcern:false, since we aggressively forget history, but we can leave it on when test commands are enabled. The dbhash background thread uses the WTPreserveSnapshotHistoryIndefinitely failpoint to ensure history is preserved.



 Comments   
Comment by Githook User [ 14/Jan/19 ]

Author:

{'username': 'vessy-mongodb', 'email': 'vesselina.ratcheva@10gen.com', 'name': 'Vesselina Ratcheva'}

Message: SERVER-37240 Enable dbhash background thread for enableMajorityReadConcern:false variant

(cherry picked from commit 0991709cf60677b183cc0362e432c095d9ed185f)
Branch: v4.0
https://github.com/mongodb/mongo/commit/26034f8f214194484c6eefe0360740f52febdda6

Comment by Githook User [ 14/Dec/18 ]

Author:

{'username': 'vessy-mongodb', 'email': 'vesselina.ratcheva@10gen.com', 'name': 'Vesselina Ratcheva'}

Message: SERVER-37240 Enable dbhash background thread for enableMajorityReadConcern:false variant
Branch: master
https://github.com/mongodb/mongo/commit/0991709cf60677b183cc0362e432c095d9ed185f

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