[SERVER-48494] Calculate the snapshot window more precisely in snapshot_history_window.js Created: 29/May/20  Updated: 29/Oct/23  Resolved: 29/May/20

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

Type: Bug Priority: Major - P3
Reporter: Lingzhi Deng Assignee: Lingzhi Deng
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Repl 2020-06-01
Participants:
Linked BF Score: 22

 Description   

We use the time before the initial insert as the startTime of the window calculation. I think it would be more precise to take the startTime after the insert takes place. And it is more precise to sleep based on the window expiration time (like in chunk_history_window.js) before testing a command would fail with SnapshotTooOld error.



 Comments   
Comment by Githook User [ 29/May/20 ]

Author:

{'name': 'Lingzhi Deng', 'email': 'lingzhi.deng@mongodb.com', 'username': 'ldennis'}

Message: SERVER-48494: Calculate the snapshot window more precisely in snapshot_history_window.js
Branch: master
https://github.com/mongodb/mongo/commit/09eb59d64f8b08f7b421af9b974928566aad3aef

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