[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: |
|
||||||||||||||||
| 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 " This reverts commit c8cb9cc374af47f862d81e52ad4bc33d96239ef0. |
| Comment by Ramon Fernandez Marina [ 20/Sep/17 ] |
|
Author: {'username': u'kaloianm', 'name': u'Kaloian Manassiev', 'email': u'kaloian.manassiev@mongodb.com'}Message: |
| Comment by Ramon Fernandez Marina [ 20/Sep/17 ] |
|
Author: {'username': u'kaloianm', 'name': u'Kaloian Manassiev', 'email': u'kaloian.manassiev@mongodb.com'}Message: |