[SERVER-83498] Cleanup cursors and transactions upon terminating gRPC streams Created: 21/Nov/23  Updated: 18/Jan/24  Resolved: 18/Jan/24

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 7.3.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Amirsaman Memaripour Assignee: Ryan Berryhill
Resolution: Fixed Votes: 0
Labels: auto-reverted
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
Assigned Teams:
Service Arch
Backwards Compatibility: Fully Compatible
Sprint: Service Arch 2023-11-27, Service Arch 2023-12-11, Service Arch 2023-12-25, Service Arch 2024-01-08, Service Arch 2024-01-22
Participants:
Linked BF Score: 35

 Description   

The idea is to cleanup resources associated with a gRPC stream once the server detects its termination, similar to how we cleanup after load-balanced connections. This is not a correctness issue, but an optimization to make sure the server properly handles short-living streams that open cursors and start transactions.



 Comments   
Comment by Githook User [ 18/Jan/24 ]

Author:

{'name': 'Ryan Berryhill', 'email': 'ryanberryhill@users.noreply.github.com', 'username': 'ryanberryhill'}

Message: SERVER-83498 Clean up transactions and cursors upon gRPC connection end (#18053)

GitOrigin-RevId: e4c7fbc2e9bc30922a67502e106d1579e68aa991
Branch: master
https://github.com/mongodb/mongo/commit/079f4b3c4abb3ae039931d3a2e5f5b9a8929acc9

Comment by Githook User [ 12/Jan/24 ]

Author:

{'name': 'auto-revert-processor', 'email': 'dev-prod-dag@mongodb.com', 'username': ''}

Message: Revert "SERVER-83498 Clean up transactions and cursors upon gRPC connection end (#17762)"

This reverts commit 301620667af465c90c90cef015934706cd7ec674.

GitOrigin-RevId: 662a2d26c742abd88f9c825ccaadbd51735a668e
Branch: master
https://github.com/mongodb/mongo/commit/05e6dfc88b0b0d5b53e231312393d76219bd8173

Comment by Githook User [ 12/Jan/24 ]

Author:

{'name': 'Ryan Berryhill', 'email': 'ryanberryhill@users.noreply.github.com', 'username': 'ryanberryhill'}

Message: SERVER-83498 Clean up transactions and cursors upon gRPC connection end (#17762)

GitOrigin-RevId: 301620667af465c90c90cef015934706cd7ec674
Branch: master
https://github.com/mongodb/mongo/commit/5036f607417cd3d760b40966b7701046b441e702

Generated at Thu Feb 08 06:52:21 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.