[SERVER-47477] Sharded logical sessions cache refresh ignores failure to update or delete session records Created: 10/Apr/20 Updated: 29/Oct/23 Resolved: 27/Apr/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Sharding |
| Affects Version/s: | None |
| Fix Version/s: | 4.4.0-rc3, 4.7.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Jack Mulrow | Assignee: | Marcos José Grillo Ramirez |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | sharding-wfbf-day | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||||||
| Backport Requested: |
v4.4
|
||||||||||||||||||||||||
| Sprint: | Sharding 2020-04-20, Sharding 2020-05-04 | ||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||
| Linked BF Score: | 25 | ||||||||||||||||||||||||
| Description |
|
To refresh or remove session records from the logical sessions collection, the sharded logical sessions cache (i.e. on a mongos or shard server) uses lambdas that run bulk writes through the ClusterWriter (here and here). These lambdas return the status from each write's response, but when the lambda is invoked, the return value is ignored, so if either write fails, the refresh will not notice and continue running, which can lead to incorrectly killing the sessions of recently established cursors. It looks like this was introduced by |
| Comments |
| Comment by Githook User [ 27/Apr/20 ] |
|
Author: {'name': 'Marcos José Grillo Ramírez', 'email': 'marcos.grillo@mongodb.com', 'username': 'm4nti5'}Message: (cherry picked from commit 2ea63cd234669d3cfe09292f6f978f7bf768d0d6) |
| Comment by Githook User [ 27/Apr/20 ] |
|
Author: {'name': 'Marcos José Grillo Ramírez', 'email': 'marcos.grillo@mongodb.com', 'username': 'm4nti5'}Message: |