[SERVER-31011] Provide transaction table hook for session expiration Created: 08/Sep/17  Updated: 30/Oct/23  Resolved: 20/Sep/17

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

Type: New Feature Priority: Major - P3
Reporter: Mira Carey Assignee: Mira Carey
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-28917 Implement transactions documents expi... Closed
Documented
is documented by DOCS-10839 Docs for SERVER-31011: Provide transa... Closed
Backwards Compatibility: Fully Compatible
Sprint: Platforms 2017-09-11, Platforms 2017-10-02
Participants:

 Description   

We need to provide a hook for transaction expiration which is invoked on all standalones and primaries to alert the retryable write subsystem when sessions have expired.

The lifetime and logic here seems identical to the rules for cursors (The cursor manager tells us what sessions are used by cursors, then we tell the cursor manager to drop the cursors attached to those sessions). We can replace the first step with a scan of the transaction table and the second with invocation of a callback that retryable writes can fill in (either via a callback injection or having them implement a service liason method).



 Comments   
Comment by Githook User [ 20/Sep/17 ]

Author:

{'email': 'jcarey@argv.me', 'name': 'Jason Carey', 'username': 'hanumantmk'}

Message: SERVER-31011 Provide transaction record deletion hook
Branch: master
https://github.com/mongodb/mongo/commit/79df037ceb43882726e9484b9ab8b1c23c538034

Generated at Thu Feb 08 04:25:43 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.