[SERVER-70219] Use "linearizable" readConcern for spill_to_disk_secondary_read Created: 04/Oct/22  Updated: 29/Oct/23  Resolved: 10/Oct/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.2.0-rc0, 6.0.5

Type: Bug Priority: Major - P3
Reporter: Zixuan Zhuang Assignee: Zixuan Zhuang
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:
v6.0
Sprint: QE 2022-10-17
Participants:
Linked BF Score: 45

 Description   

The data in secondary may not be available immediately after write ack, it need a signal to update its snapshot to reflect the write. The test read from secondary right after writing data to primary using "majority" readConcern, this might read an old snapshot.



 Comments   
Comment by Githook User [ 06/Feb/23 ]

Author:

{'name': 'Zixuan Zhuang', 'email': 'zixuan.zhuang@mongodb.com', 'username': 'leozzx'}

Message: SERVER-70219 fix spill_to_disk_secondary_read
Branch: v6.0
https://github.com/mongodb/mongo/commit/763fbdc180f5cee8c36c177ae59ac14a6f01f48b

Comment by Zixuan Zhuang [ 10/Oct/22 ]

"linearizable" doesn't work for secondary, used "awaitLastOpCommitted" after inserting into primary.

Comment by Githook User [ 06/Oct/22 ]

Author:

{'name': 'Zixuan Zhuang', 'email': 'zixuan.zhuang@mongodb.com', 'username': 'leozzx'}

Message: SERVER-70219 fix spill_to_disk_secondary_read
Branch: master
https://github.com/mongodb/mongo/commit/08986dc909c370494348a08bf11b51cb03778759

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