Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | SERVER-68214 move session_catalog*, session*, logical_session* to ↵ | Shin Yee Tan | 2022-08-17 | 1 | -1658/+0 |
| | | | | mongo/db/session directory | ||||
* | SERVER-65397 Remove featureFlagInternalTransactions | Erin Liang | 2022-06-28 | 1 | -2/+0 |
| | |||||
* | SERVER-66993 Stop tracking highest child session txnNumber | Jack Mulrow | 2022-06-07 | 1 | -26/+0 |
| | |||||
* | SERVER-66777 Ensure that internal transactions do not get interrupted by ↵ | Cheahuychou Mao | 2022-06-02 | 1 | -5/+59 |
| | | | | logical session reaper | ||||
* | SERVER-66566 Optimize scanning SessionCatalog when refreshing retryable ↵ | Cheahuychou Mao | 2022-05-19 | 1 | -0/+26 |
| | | | | writes from storage | ||||
* | SERVER-66203 move MONGO_LOGV2_DEFAULT_COMPONENT defs below includes | Billy Donahue | 2022-05-06 | 1 | -1/+3 |
| | |||||
* | SERVER-65496 Test that the SessionCatalog does not reap a session that has ↵ | Cheahuychou Mao | 2022-04-26 | 1 | -166/+221 |
| | | | | been marked for reap but has threads waiting for it be checked out | ||||
* | SERVER-62479 Reap sessions for the same retryable write atomically | Cheahuychou Mao | 2022-04-13 | 1 | -55/+319 |
| | |||||
* | SERVER-63495 Unyielding TransactionRouter never fails except at shutdown and ↵ | Jack Mulrow | 2022-03-30 | 1 | -5/+5 |
| | | | | support yielding in cluster commands | ||||
* | SERVER-64605 Allow internal sessions on standalone replica sets | Jack Mulrow | 2022-03-17 | 1 | -23/+0 |
| | |||||
* | SERVER-63978 Killing a child session should prevent checking out its parent | Jack Mulrow | 2022-02-25 | 1 | -141/+275 |
| | |||||
* | SERVER-62020 Make retryable write statements executed with or without ↵ | Cheahuychou Mao | 2022-01-14 | 1 | -2/+8 |
| | | | | internal transactions retryable whether or not internal transactions are involved on retries | ||||
* | SERVER-61086 Make transaction participants check if internal transactions ↵ | Jason Zhang | 2021-12-02 | 1 | -15/+0 |
| | | | | are supported during startTransaction | ||||
* | SERVER-60530 Throw InternalTransactionNotSupported instead of InvalidOptions ↵ | Jason Zhang | 2021-10-13 | 1 | -2/+4 |
| | | | | when internal transactions are not supported | ||||
* | SERVER-59717 Remove stmtId from internal session id for retryable internal ↵ | Jonathan Lee | 2021-10-13 | 1 | -26/+26 |
| | | | | transactions | ||||
* | SERVER-59703 Only support child sessions in sharded clusters | Jonathan Lee | 2021-09-28 | 1 | -0/+23 |
| | |||||
* | SERVER-58755 Manage lifetime of internal sessions and transactions | Jason Zhang | 2021-09-14 | 1 | -22/+259 |
| | |||||
* | SERVER-58751 Make logical session cache track related sessions as one ↵ | Cheahuychou Mao | 2021-08-14 | 1 | -0/+24 |
| | | | | logical session | ||||
* | SERVER-58751 Support internal sessions | Cheahuychou Mao | 2021-08-14 | 1 | -243/+522 |
| | |||||
* | SERVER-44978 Remove accidentally added usage of getGlobalServiceContext() ↵ | Kaloian Manassiev | 2020-02-26 | 1 | -2/+2 |
| | | | | from ReadWriteConcernDefaults | ||||
* | SERVER-43987 Require predicates with ↵ | Ben Caimano | 2019-10-17 | 1 | -2/+4 |
| | | | | OperationContext::waitForConditionOrInterrupt() | ||||
* | SERVER-42165 Replace uses of stdx::mutex with mongo::Mutex | Ben Caimano | 2019-09-17 | 1 | -2/+2 |
| | |||||
* | SERVER-41772 Apply clang-format 7.0.1 to the codebase | clang-format-7.0.1 | 2019-07-27 | 1 | -18/+24 |
| | |||||
* | SERVER-39339 Remove `stdx/memory.h` | ADAM David Alan Martin | 2019-06-10 | 1 | -1/+2 |
| | |||||
* | SERVER-37837 Examine and reap sessions from the SessionsCatalog | Kaloian Manassiev | 2019-05-17 | 1 | -0/+102 |
| | | | | | This change makes the logical sessions cache query and reap sessions, which are possibly only in-memory on the SessionsCatalog. | ||||
* | SERVER-39560 - remove leading blank line on all C++ files | Billy Donahue | 2019-02-13 | 1 | -1/+0 |
| | | | | | | Remove leading comments that are just stating the filename. Move any file-level comments below the copyright banner. Remove leading blank lines. | ||||
* | SERVER-38810 Simplify correct usage of locking in Session/SessionCatalog. | Andy Schwerin | 2019-01-10 | 1 | -41/+45 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch introduces two new types for gaining access to sessions in the session catalog, based on the context of the access. It leaves a third way to access sessions, which is via OperationContextSession::get(). The new types are ObservableSession and SessionToKill. With this change, a thread may access a session in one of three ways: (1) by binding the session to an OperationContext for regular use, by instantiation of OperationContextSession or MongoDOperationContextSession, as before. (2) In the callback passed to SessionCatalog::scanSessions, in which case the callback is passed an ObservableSession that represents looking at a Session while the SessionCatalog mutex is locked and while the bound OperationContext's client mutex is held, if the session is currently checked out via methods (1) or (3). (3) By calling SessionCatalog::checkOutSessionForKill, which returns a KillableSession. This is used for cleaning a session up after it is marked for kill. This patch eliminates Session::_mutex, which is no longer required, as the SessionCatalog::_mutex and the Client provide all necessary mutual exclusion for the Session type itself. | ||||
* | SERVER-38429 fix lint | Benety Goh | 2018-12-19 | 1 | -1/+1 |
| | |||||
* | SERVER-38429 Signal all threads waiting for checking out session on session ↵ | Siyuan Zhou | 2018-12-19 | 1 | -0/+60 |
| | | | | checkin | ||||
* | SERVER-38224 Allow sessions to have more than one outstanding kill request | Kaloian Manassiev | 2018-12-12 | 1 | -10/+33 |
| | | | | Also reverts commit e13e069902099d601c6cf64def9fc374082a629e (SERVER-38058 Make retryable_writes_direct_write_to_config_transactions.js expect ConflictingOperationInProgress) since it is no longer necessary. | ||||
* | SERVER-37923 Make chunk migration check-out the session | Kaloian Manassiev | 2018-12-06 | 1 | -81/+37 |
| | | | | | With this change there are no callers which modify the session state without having checked it out first. | ||||
* | SERVER-37245 Use the SessionCatalog to track sessions on MongoS | Kaloian Manassiev | 2018-11-19 | 1 | -2/+2 |
| | |||||
* | SERVER-37245 Do not access the SessionCatalog directly if not necessary | Kaloian Manassiev | 2018-11-19 | 1 | -6/+0 |
| | | | | | | | The session catalog should not be accessed directly by majority of the consumers on mongod or mongos, instead they should interact with it through the decorations, which properly validate that the session has been assigned to the OperationContext. | ||||
* | SERVER-37665 Add interface to explicitly checkin/checkout the OpContext session | Kaloian Manassiev | 2018-11-16 | 1 | -0/+31 |
| | |||||
* | SERVER-37665 Get rid of the 'checkOutSession' parameter of ↵ | Kaloian Manassiev | 2018-11-16 | 1 | -32/+20 |
| | | | | | | | | | | | OperationContextSession This simplifies the behaviour of the class and moves all the check-out decision taking to happen in the only consumer - the endpoint. Also renames OperationContextSessionMongoD to MongoDOperationContextSession in order to be in sync with the naming nomenclature of SessionCatalog and MongoDSessionCatalog. | ||||
* | SERVER-36473 Make a dedicated RAII class to manage Client lifetime | Gregory Wlodarek | 2018-11-08 | 1 | -12/+6 |
| | |||||
* | SERVER-37244 Fix race condition due to thread execution timing in ↵ | Kaloian Manassiev | 2018-11-02 | 1 | -24/+29 |
| | | | | session_catalog_test | ||||
* | SERVER-37244 Make sessions killable outside of the ↵ | Kaloian Manassiev | 2018-10-31 | 1 | -1/+244 |
| | | | | Session/TransactionParticipant object | ||||
* | SERVER-37244 Pull the Session state management from SessionRuntimeInfo into ↵ | Kaloian Manassiev | 2018-10-30 | 1 | -45/+49 |
| | | | | | | | | Session The session's check-out state is currently duplicated between SessionCatalog's internal container structure and the Session class. This change moves it all to be under Session. | ||||
* | SERVER-37711 Revert commits related to lock yielding for prepared ↵ | Kaloian Manassiev | 2018-10-25 | 1 | -103/+0 |
| | | | | | | | | | | | transactions on step down This change reverts the following commits: * SERVER-35870 Allow stepdown to work with prepared transactions (f96903979ac329a760e7b6f1bb5d8695d3daf2a7) * SERVER-36913 Add functionality to LockManager for repl state transitions with prepared transactions (e65ff57e108ed69c46cc0b0ccbdd675663de2469) * SERVER-35870 Allow more than one thread to block Session checkout at a time (9406af079a894bae80fbbec4703b04974bf84476) * SERVER-35870 Add functionality to prevent Session checkouts & wait for all Sessions to be checked in (c6d90316d6b694e12426274c713a4a078e004fc5) | ||||
* | SERVER-37651 Update header files with new license | Ramon Fernandez | 2018-10-22 | 1 | -8/+10 |
| | |||||
* | SERVER-37244 Move MongoD-specific code out of SessionCatalog | Kaloian Manassiev | 2018-10-12 | 1 | -11/+4 |
| | |||||
* | SERVER-35870 Allow more than one thread to block Session checkout at a time | Spencer T Brody | 2018-09-28 | 1 | -0/+34 |
| | |||||
* | SERVER-35870 Add functionality to prevent Session checkouts & wait for all ↵ | Spencer T Brody | 2018-09-17 | 1 | -0/+69 |
| | | | | Sessions to be checked in | ||||
* | SERVER-35900 Refactor transaction machinery out from Session class | Randolph Tan | 2018-08-08 | 1 | -90/+5 |
| | |||||
* | SERVER-35985 Destroy clients started in other threads. | Max Hirschhorn | 2018-07-06 | 1 | -0/+3 |
| | |||||
* | SERVER-34113 Remove all support for snapshot reads outside multi-document ↵ | Xiangyu Yao | 2018-06-19 | 1 | -6/+2 |
| | | | | transactions | ||||
* | SERVER-34811 Forbid reads and writes to the config, admin, and local ↵ | Tess Avitabile | 2018-05-08 | 1 | -9/+15 |
| | | | | databases within transactions | ||||
* | SERVER-33690 Transaction abort and commit should kill any associated client ↵ | James Wahlin | 2018-04-16 | 1 | -3/+3 |
| | | | | cursors | ||||
* | SERVER-33501 Support retryable writes for commitTransaction command | Siyuan Zhou | 2018-04-11 | 1 | -2/+2 |
| | | | | This reverts commit f205975ea89798fa1b6d91097226ae7b10ad9f3c. |