[SERVER-31114] Perform targeted invalidation on direct writes to the `config.transactions` collection Created: 15/Sep/17  Updated: 30/Oct/23  Resolved: 20/Sep/17

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

Type: Improvement Priority: Major - P3
Reporter: Kaloian Manassiev Assignee: Kaloian Manassiev
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-10837 Docs for SERVER-31114: Perform target... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding 2017-10-02
Participants:

 Description   

As implemented, direct writes to the config.transactions collection will invalidate the entire session transactions cache. This is not optimal, because session cleanup also performs direct writes to the sessions catalog and this can happen fairly frequently.

Instead, when a document is available for the direct write, we should try to extract the session id from it and only invalidate that session.



 Comments   
Comment by Ramon Fernandez Marina [ 20/Sep/17 ]

Author:

{'username': u'kaloianm', 'name': u'Kaloian Manassiev', 'email': u'kaloian.manassiev@mongodb.com'}

Message:Revert "SERVER-31114 Perform targeted session invalidation on direct writes to `config.transactions`"

This reverts commit c8cb9cc374af47f862d81e52ad4bc33d96239ef0.
Branch:master
https://github.com/mongodb/mongo/commit/b5f2acfe24d1a6363dbcfb558b5baf00684f70e8

Comment by Ramon Fernandez Marina [ 20/Sep/17 ]

Author:

{'username': u'kaloianm', 'name': u'Kaloian Manassiev', 'email': u'kaloian.manassiev@mongodb.com'}

Message:SERVER-31114 Perform targeted session invalidation on direct writes to `config.transactions`
Branch:master
https://github.com/mongodb/mongo/commit/c565d15a53cd6dd452da97d49c6b9c6cbffb6cf1

Comment by Ramon Fernandez Marina [ 20/Sep/17 ]

Author:

{'username': u'kaloianm', 'name': u'Kaloian Manassiev', 'email': u'kaloian.manassiev@mongodb.com'}

Message:SERVER-31114 Perform targeted session invalidation on direct writes to `config.transactions`
Branch:master
https://github.com/mongodb/mongo/commit/c8cb9cc374af47f862d81e52ad4bc33d96239ef0

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