[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: |
|
||||
| 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: |