[SERVER-36332] CursorNotFound error in GetMore on a secondary with sessions Created: 27/Jul/18 Updated: 29/Oct/23 Resolved: 28/Aug/18 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Sharding |
| Affects Version/s: | None |
| Fix Version/s: | 3.6.8, 4.0.3, 4.1.3 |
| Type: | Bug | Priority: | Critical - P2 |
| Reporter: | Charlie Swanson | Assignee: | Misha Tyulenev |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||||||||||||||||||||||
| Issue Links: |
|
||||||||||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||||||||||
| Backport Requested: |
v4.0, v3.6
|
||||||||||||||||||||||||||||
| Steps To Reproduce: | I've attached repro.js |
||||||||||||||||||||||||||||
| Sprint: | Sharding 2018-08-27, Sharding 2018-09-10 | ||||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||||
| Case: | (copied to CRM) | ||||||||||||||||||||||||||||
| Linked BF Score: | 20 | ||||||||||||||||||||||||||||
| Description |
|
Various issues related to sessions synchronization during refresh are caused by the design. The following sequence of events is an example of this scenario
The problem shows manifestation is the "CursorNotFound" error on the GetMore command when running on the secondary. The fix makes the secondary write to the primary so its always in sync and therefore can avoid "false negatives" checks for sessions existence. |
| Comments |
| Comment by Githook User [ 11/Sep/18 ] |
|
Author: {'name': 'Misha Tyulenev', 'email': 'misha@mongodb.com', 'username': 'mikety'}Message: (cherry picked from commit a3d17a55ca68ba37eb59620e04258f61f133b21f) |
| Comment by Githook User [ 06/Sep/18 ] |
|
Author: {'name': 'Misha Tyulenev', 'email': 'misha@mongodb.com', 'username': 'mikety'}Message: (cherry picked from commit a3d17a55ca68ba37eb59620e04258f61f133b21f) |
| Comment by Kelsey Schubert [ 03/Sep/18 ] |
|
Yes, we intend to backport this fix to 3.6, ondrejk. |
| Comment by Ondrej Kokes [ 03/Sep/18 ] |
|
Hi, "Fix Versions" says "4.1.3", is this to be backported to 3.6 as well? It says so in "Backport Requested" Thanks! |
| Comment by Githook User [ 28/Aug/18 ] |
|
Author: {'name': 'Misha Tyulenev', 'email': 'misha@mongodb.com', 'username': 'mikety'}Message: |