[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:
Backports
Depends
Problem/Incident
is caused by SERVER-42508 Convert SessionsCollection to throw i... Closed
Related
related to SERVER-73229 Logical sessions cache refresh ignore... Closed
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 SERVER-42508, so it should only affect 4.4 and the current master.



 Comments   
Comment by Githook User [ 27/Apr/20 ]

Author:

{'name': 'Marcos José Grillo Ramírez', 'email': 'marcos.grillo@mongodb.com', 'username': 'm4nti5'}

Message: SERVER-47477 Report failures on refresh and remove in sessions collection sharded

(cherry picked from commit 2ea63cd234669d3cfe09292f6f978f7bf768d0d6)
Branch: v4.4
https://github.com/mongodb/mongo/commit/1283200126992fe392bfcb6b39b216fa8e85d3ab

Comment by Githook User [ 27/Apr/20 ]

Author:

{'name': 'Marcos José Grillo Ramírez', 'email': 'marcos.grillo@mongodb.com', 'username': 'm4nti5'}

Message: SERVER-47477 Report failures on refresh and remove in sessions collection sharded
Branch: master
https://github.com/mongodb/mongo/commit/2ea63cd234669d3cfe09292f6f978f7bf768d0d6

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