Commit Graph

24 Commits

Author SHA1 Message Date
Steve McClure 1ffbc6c2e9 SERVER-109432: Autofix JS var usage to favor let (#40637)
GitOrigin-RevId: 9674b7db36a0f3f650d39c1e3fb2ad6ff2141cfb
2025-08-28 19:21:01 +00:00
Zac 591928c619 SERVER-108478 JS formatted by prettier and remove clang-format (#39656)
GitOrigin-RevId: 6c8f6aded47f260aa4f7c231b17dae3302cb1e04
2025-08-21 17:27:09 +00:00
Louis Williams b20bbd5e7b SERVER-84271 Remove featureFlagReplicateVectoredInsertsTransactionally (#34905)
GitOrigin-RevId: a4d496b74448eb1ed3f69ce20b8c7361225cc24e
2025-04-14 14:36:52 +00:00
Matt Broadstone 771dabd098 SERVER-81339 Convert ReplSetTest and ShardingTest to modules (#26332)
GitOrigin-RevId: 744aa110a53786b23c62ff53f87a1418b5991e8d
2024-08-20 22:00:49 +00:00
Matthew Russotto 88f44f8f54 SERVER-85545 Turn on batching of vectored inserts when
featureFlagReplicateVectoredInsertsTransactionally is enabled.

             Fix the tests which depend on the oplog format.

             Fix non-retryable vectored insert oplog format by not including a
             prevWriteOpTime for it, and testing that.

GitOrigin-RevId: 14c01b6e3680436785ac1b57a67c6e67a035422f
2024-03-08 14:37:29 +00:00
Matt Broadstone a4f458fe4d SERVER-79735 Convert jstest corpus to use es modules 2023-08-06 20:48:04 +00:00
seanzimm 987365c547 SERVER-68678 remove store find and modify images in side collection 2023-06-27 22:11:01 +00:00
seanzimm cf52d18cc9 SERVER-59443 Remove storeFindAndModifyImagesInSideCollection=false paths 2022-08-15 14:36:44 +00:00
Gregory Noma 8814b14c16 SERVER-66118 Remove `storageEngineSupportsRetryableWrites` 2022-05-03 14:29:58 +00:00
Daniel Gottlieb 7fbf9380ae SERVER-56953: Allow testing for new-style retryable findAndModify for basic operations. 2021-05-19 02:34:25 +00:00
Daniel Gottlieb 3340c93c28 Revert "SERVER-56953: Allow testing for new-style retryable findAndModify for basic operations."
This reverts commit 162e0d14fe.
2021-05-18 16:57:00 +00:00
Daniel Gottlieb 162e0d14fe SERVER-56953: Allow testing for new-style retryable findAndModify for basic operations. 2021-05-18 02:58:27 +00:00
Ali Mir 2b5dc35f01 SERVER-50581 Replace setSlaveOk and getSlaveOk occurrences in jstests 2020-09-09 23:29:23 +00:00
clang-format-7.0.1 134a408395
SERVER-41772 Apply clang-format 7.0.1 to the codebase 2019-07-27 11:02:23 -04:00
Randolph Tan f23b7e7bf3 SERVER-32445 config.transactions table can get out of sync when the TransactionReaper remove entries
Secondary replication of config.transactions table is now changed to create oplog entries of the actual updates to mirror what the primary would have done.
2018-03-12 13:29:33 -04:00
Jack Mulrow aacd508f50 SERVER-31941 Don't run retryable writes tests with ephemeralForTest storage engine 2017-11-21 14:46:24 -05:00
Jack Mulrow 97af8701b5 SERVER-31941 Disallow retryable writes in storage engines that do not support document-level locking 2017-11-17 16:01:19 -05:00
Randolph Tan 0ab7000e04 SERVER-31030 Use full OpTime instead of just Timestamps to refer to oplog entries 2017-10-04 16:43:58 -04:00
Randolph Tan 1e11cda15d SERVER-30407 Store pre/post-image documents when running findAndModify with txnNumber 2017-08-17 16:58:40 -04:00
Randolph Tan 01dfdbcc28 SERVER-30326 Write basic tests for insert, update and delete 2017-07-28 17:04:26 -04:00
Randolph Tan a7ee3ed417 SERVER-30282 Update transaction progress to sessions table 2017-07-28 17:04:15 -04:00
Jason Carey edfe3f3b12 SERVER-30298 Add UserDigest LogicalSessionID
Inclusion of a sha256 digest of the full username to the logical session
id (in addition to the current guid) is necessary to fully disambiguate
logical sessions in degraded clusters (when the authoritative record for
a session is unreachable).

Semantics for the uid are as follows:

session creation via startSession()
* Sessions can only be created with one, and only one, user authenticated
* The composite key is created from a guid created on the spot, as well
  as the digest of the currently auth'd username
* Only the session guid is returned to the user
  * This prevents outside users from attempting to send back a value
    we'd have to check.  It's preferable to decorate the guid with the
    user digest per command, rather than having to check a value the user
    might send.

session use for a command
* Sessions are passed via the lsid top level field in any command
* Sessions are only meaningful for commands which requireAuth.  For
  sessions which don't require auth, we strip session information from the
  command at parse time
* Session ids are passed as an object, which can optionally include the
  username digest
  * It is illegal to pass the username digest unless the currently
    auth'd user has the impersonate privilege (the __system user does).
    This enables sessions on shard servers via mongos
2017-07-26 15:53:42 -04:00
Randolph Tan f7924be532 SERVER-28912 Thread stmtId from update and delete requests to oplog 2017-07-21 12:53:45 -04:00
Randolph Tan 769ce18086 SERVER-28912 Include session id, txnNumber and stmtId to oplog for insert 2017-07-21 12:53:45 -04:00