[SERVER-58503] Kill open cursors for a connection when a load balanced connection on mongos is closed Created: 13/Jul/21  Updated: 29/Oct/23  Resolved: 13/Oct/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.2.0, 5.0.7

Type: Task Priority: Major - P3
Reporter: Matthew Saltz (Inactive) Assignee: George Wangensteen
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
depends on SERVER-58562 Add a boolean field _isFromLoadBalanc... Closed
is depended on by SERVER-58504 Abort transactions for a connection w... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v5.0
Sprint: Service Arch 2021-09-06, Service Arch 2021-09-20, Service Arch 2021-10-04, Service Arch 2021-10-18
Participants:
Story Points: 7

 Description   
  • Track cursors open for connections/clients that are marked as being from a load balancer (if we don't already do this)
  • When a load balanced connection is closed, kill open cursors on that connection. This may need to be out-of-line
  • We should log the cursors killed at a high log level

Whoever works on this should also consider SERVER-58504 and make sure that the work done here will be reusable for that ticket.



 Comments   
Comment by Githook User [ 17/Mar/22 ]

Author:

{'name': 'George Wangensteen', 'email': 'george.wangensteen@mongodb.com', 'username': 'gewa24'}

Message: SERVER-58503 Kill open cursors for a connection when a load balanced connection on mongos is closed

(cherry picked from commit b429d5dda98bbe18ab0851ffd1729d3b57fc8a4e)
Branch: LB
https://github.com/mongodb/mongo/commit/797832584cf21f7795e19c249fcaedeb3b66ff1e

Comment by Githook User [ 16/Mar/22 ]

Author:

{'name': 'George Wangensteen', 'email': 'george.wangensteen@mongodb.com', 'username': 'gewa24'}

Message: SERVER-58503 Kill open cursors for a connection when a load balanced connection on mongos is closed

(cherry picked from commit b429d5dda98bbe18ab0851ffd1729d3b57fc8a4e)
Branch: v5.0
https://github.com/mongodb/mongo/commit/ca1a96490687e5bff52c35bb5eec8408e0912291

Comment by Githook User [ 13/Oct/21 ]

Author:

{'name': 'George Wangensteen', 'email': 'george.wangensteen@mongodb.com', 'username': 'gewa24'}

Message: SERVER-58503 Kill open cursors for a connection when a load balanced connection on mongos is closed
Branch: master
https://github.com/mongodb/mongo/commit/b429d5dda98bbe18ab0851ffd1729d3b57fc8a4e

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