Compare commits

...

433 Commits

Author SHA1 Message Date
Aaron Morand
e61bf27c2f SERVER-64845 Bump for 6.0.0 GA 2022-07-05 10:42:37 -04:00
Moustafa Maher Khalil
6e2dcc5a39 SERVER-65233 dropIndex command in collection_uuid FSM test can succeed with indexNotFound error 2022-06-29 21:31:44 +00:00
Moustafa Maher Khalil
dd216e3ed3 SERVER-67494 Increase the number of max ports per fixture for c2c suites 2022-06-29 21:30:32 +00:00
Moustafa Maher Khalil
82bdc07662 SERVER-65234 collection_uuid_index_commands test should account for HostUnreachable error from different shards 2022-06-29 21:29:16 +00:00
Luke Chen
fe65f07e07 Import wiredtiger: c5e905e5bf1c4767bdbeeaf0636e89581c68221d from branch mongodb-6.0
ref: 31b70b7fe6..c5e905e5bf
for: 6.0.0-rc13

WT-9500       Fix RTS to use cell time window instead of key/value timestamps of HS update
2022-06-29 16:50:18 +10:00
Erwin Pe
9f965ec24d SERVER-67470 Fix incorrect fieldName values in ECOC entries following a modifier-type update
(cherry picked from commit 20986cb5fc8e3fcd721034a00dd476ab1bd34772)
2022-06-24 21:02:58 +00:00
Erwin Pe
f538b994c4 SERVER-67445 Remove setting of setSingleBatch to 'true' in FLEQueryInterfaceImpl::findDocuments
(cherry picked from commit 7f728aafb7)
2022-06-24 16:05:53 +00:00
Joel Redman
6b4de97ce4 SERVER-66933 Exclude API tests from sharded_retryable_writes_downgrade
(cherry picked from commit 5f5f73415d)
2022-06-23 15:18:35 -04:00
Mindaugas Malinauskas
47da65ec2b SERVER-66462 Fixed change stream pre-image write performance issue
(cherry picked from commit 043545f825)
2022-06-23 17:00:05 +01:00
Israel Hsu
71b1def626 SERVER-67441 Disable multi_statement_transaction_atomicity_isolation_server_status_mongos.js 2022-06-23 15:07:45 +00:00
Antonio Fuschetto
9d441f81c8 SERVER-67352 Skip identifying writes on orphaned documents in replica set deployments 2022-06-23 14:00:43 +00:00
Luke Chen
3b7c4577f2 Import wiredtiger: 31b70b7fe65536b44c77f07ed3815048673867f3 from branch mongodb-6.0
ref: 8fb2c7b2a6..31b70b7fe6
for: 6.0.0-rc11

WT-9477       Don't allow checkpoint triggering internal page split which leads to corrupted internal page in the checkpoint
2022-06-23 16:05:01 +10:00
Eric Cox
dce8e9938f Revert "Revert "Merge branch 'v6.0' of github.com:10gen/mongo into v6.0""
This reverts commit 44385b89a6.
2022-06-22 16:58:08 +00:00
Eric Cox
44385b89a6 Revert "Merge branch 'v6.0' of github.com:10gen/mongo into v6.0"
This reverts commit e24af2270e, reversing
changes made to ecf315a92e.
2022-06-22 14:21:07 +00:00
Eric Cox
e24af2270e Merge branch 'v6.0' of github.com:10gen/mongo into v6.0 2022-06-22 02:26:08 +00:00
Eric Cox
ecf315a92e SERVER-67338 Fix ownership of HashAggStage key in SBE
(cherry picked from commit 82e8ac207e)
2022-06-22 02:25:14 +00:00
Davis Haupt
816918e7eb SERVER-65864 Parse $densify step as a NumberLong when using a date unit
(cherry picked from commit 8be8472460)
2022-06-21 20:52:32 +00:00
Matt Boros
c6430dd53b SERVER-67376: 32 bit integer overflow in Value{} creation
(cherry picked from commit 153d7c719b)
2022-06-21 18:26:59 +00:00
Benety Goh
7aaea4fc06 SERVER-66520 add index build UUID to BackgroundOperationInProgress message
(cherry picked from commit d6a12bacdc)
2022-06-21 17:23:35 +00:00
Benety Goh
699be8f8b3 SERVER-67036 remove floor for collMod cappedSize option to be consistent with create command
(cherry picked from commit d507d5e004)
2022-06-20 23:17:47 +00:00
Shreyas Kalyan
e9f8857523 SERVER-66662 Block insertion into __safeContent__
(cherry picked from commit 00300876a899a40fd6121b8f3abacdd3194daf54)
2022-06-20 14:53:39 +00:00
Sergi Mateo Bellido
f9c9120058 SERVER-66541 Rely on a refresh to define the metadata barrier 2022-06-20 07:59:31 +00:00
Sergi Mateo Bellido
dd97dc5f81 Revert "SERVER-66541 Clear the filtering metadata on setFCV"
This reverts commit 7bc0a21e57.
2022-06-20 07:59:31 +00:00
Mark Benvenuto
fa24cc6010 SERVER-66663 Raise default contention factor for equality indexes to 4
(cherry picked from commit 4817d3fda9)
2022-06-18 00:51:50 +00:00
Mark Benvenuto
ad83c9f408 SERVER-67316 LDAP CNAME resolution truncates CNAME incorrectly
(cherry picked from commit c82753a676)
2022-06-17 18:43:34 +00:00
Mark Benvenuto
a831109e06 SERVER-66724 Create FLE 2 Equality Match Expression
(cherry picked from commit 33d893ff83)
2022-06-17 18:43:34 +00:00
nandinibhartiyaMDB
53db7af5a8 SERVER-61812: Ensure cache is not refreshed during $listLocalSessions 2022-06-17 17:53:46 +00:00
Shreyas Kalyan
8ca8c1cb0d SERVER-66944 Disable ESE on MacOS
(cherry picked from commit 4bb98c9d59)
2022-06-17 17:17:59 +00:00
Steve Tarzia
b7eb1cd26e SERVER-66418 fix bug in projection created during dependency analysis 2022-06-17 16:31:40 +00:00
Jack Mulrow
c48357dadc SERVER-67273 Add feature flag to always create config.transactions index on step up
(cherry picked from commit 389d799f96)
2022-06-16 21:11:37 +00:00
Eric Cox
342552401a SERVER-66989 Make HashAgg record store key owned
(cherry picked from commit e399422548)
2022-06-16 19:41:29 +00:00
Eric Cox
acaf760974 SERVER-66989 Make HashAgg record store key owned
(cherry picked from commit e399422548)
2022-06-16 18:57:48 +00:00
Allison Easton
1bf1161e5d SERVER-59658 Change durationMillis to duration 2022-06-16 13:56:06 +00:00
Allison Easton
e1c5a1d2b8 SERVER-59658 Improve logging to reflect that sharding metadata refresh waiting on replication 2022-06-16 13:56:06 +00:00
James Wahlin
363112bd64 SERVER-67315 Fix possible int32 overflow on call to DocumentSourceSort::createBoundedSort()
(cherry picked from commit c5b3c193d8)
2022-06-16 12:40:42 +00:00
Jason Zhang
952ed79880 SERVER-66984 config.transactions collection may end up not having the "parentLsid" partial index if the primary steps down or shuts down while setting up the collection
(cherry picked from commit f9a3cf2107)
2022-06-15 18:43:46 +00:00
Matthew Russotto
fa286387d7 SERVER-65723 Add parameter oplogBatchDelayMillis to improve batching on caught-up secondaries
(cherry picked from commit 97dc4971f5)
2022-06-15 15:31:31 +00:00
Matthew Russotto
fdef6fd509 SERVER-65273 Enhance waiting API of oplog buffer.
Add millisecond granularity, deadlines, and Interruptibles

(cherry picked from commit 6d128d3ac2)
2022-06-15 15:31:31 +00:00
Mark Benvenuto
2b01d3385d SERVER-67181 Return the OpTime of Commit Transaction for FLE2 CRUD on mongos
(cherry picked from commit 95aad3a90f)
2022-06-15 14:52:10 +00:00
Mihai Andrei
9bb35bb7e3 SERVER-67179 Make 'checkBothEnginesAreRunOnCluster' aware of 'featureFlagSbeFull' (cherry picked from commit e1546a4cf5) 2022-06-15 14:28:25 +00:00
Benety Goh
82ddea1581 Revert "SERVER-67036 remove floor for collMod cappedSize option to be consistent with create command"
This reverts commit 51e661694d.
2022-06-15 11:05:46 +00:00
Benety Goh
51e661694d SERVER-67036 remove floor for collMod cappedSize option to be consistent with create command
(cherry picked from commit d507d5e004)
2022-06-14 22:10:58 +00:00
Sergi Mateo Bellido
7bc0a21e57 SERVER-66541 Clear the filtering metadata on setFCV
Relying on config.cache.collections to signal secondary nodes
2022-06-14 17:35:40 +00:00
Dan Larkin-York
f275c61e5d SERVER-66727 Use full-precision timestamp for time-series bucketing decision 2022-06-14 16:18:51 +00:00
David Percy
b56ef4dbd8 SERVER-67072 Fix pushdown of time-series metadata predicates in $or
(cherry picked from commit b8f0fb561f)
2022-06-14 14:37:35 +00:00
Matt Boros
0c75db7b11 SERVER-64994 Extend the planner to allow soft hints about index traversal direction
(cherry picked from commit 00d2a56763)
2022-06-13 23:50:25 +00:00
Jack Mulrow
8971b20d7b SERVER-67016 Cancel transaction API transactions if their caller is interrupted
(cherry picked from commit 037f714353)
2022-06-13 22:25:06 +00:00
Jason Zhang
895e8c6f61 SERVER-66481 Disable cross-shard internal transactions run from a shard
(cherry picked from commit 9e56fb40d8)
2022-06-13 21:52:14 +00:00
kauboy26
4aac2f5da3 SERVER-67080 PerClusterDataConsistencyHook checks data consistency on the same cluster twice 2022-06-13 21:28:46 +00:00
Sara Golemon
b5adaa6136 SERVER-66329 Authenticate connections during rollover tests
(cherry picked from commit 9b3509a221)
2022-06-13 20:38:41 +00:00
Paolo Polato
39afcf31d3 SERVER-67106 allow the execution of _flushRoutingTableCacheUpdates over collection views
(cherry picked from commit 8e0bbe75ef)
2022-06-13 08:29:14 +00:00
David Bradford
aa93243e5f SERVER-67175: Don't run multiversion fuzzer on debian 11 2022-06-10 18:46:23 +00:00
Allison Easton
119a34c2e0 SERVER-63243 Range deleter must not clean up orphan ranges in a round-robin fashion
(cherry picked from commit f44581d5bf
2022-06-10 13:59:34 +00:00
Kaloian Manassiev
1937d9457f SERVER-66866 Make the range deleter not sleep under collection lock
(cherry picked from commit cec61a460e)
2022-06-10 12:32:43 +00:00
Allison Easton
774260fa0e SERVER-66074 Remove usage of toArray in collection_defragmentation.js
(cherry picked from commit 2a61fb4831)
2022-06-10 07:40:07 +00:00
Allison Easton
4c5b24082e SERVER-66653 Remove usage of this.tid from assertDocWasUpdated
(cherry picked from commit 0048e74c67)
2022-06-10 07:33:24 +00:00
Allison Easton
35c9952a6c SERVER-66868 Fail point must be enabled on new primary before step up in range_deletion_ordering_with_stepdown.js
(cherry picked from commit 3165867be3)
2022-06-10 07:09:38 +00:00
Amirsaman Memaripour
45b8a6f9a3 SERVER-66799 Fix getParameterWithDetails.js failure on ephemeralForTest
(cherry picked from commit e74b25e957)
2022-06-09 23:30:48 +00:00
Jack Mulrow
d12805a9e4 SERVER-66725 SERVER-66659 Incoming retryable txns abort old txns and abort conflicting txns once
(cherry picked from commit bc385b8dcb)
2022-06-09 23:05:46 +00:00
Jack Mulrow
0f2eaf1d73 SERVER-67076 Add missing early return in DocumentSourceFindAndModifyImageLookup
(cherry picked from commit 89e19118f9)
2022-06-09 18:45:04 +00:00
nandinibhartiyaMDB
52f58747e8 SERVER-66046: Abort resharding on recipient errors
(cherry picked from commit f016b10539)
2022-06-09 15:02:22 +00:00
Ian Boros
9847e9146a SERVER-66814 Use classic MatchExpression for applying filters in SBE
Co-authored-by: Eric Cox <eric.cox@mongodb.com>
(cherry picked from commit b16ad103a503897898fb91c5f9d198407e3e2abf)
2022-06-09 13:48:09 +00:00
Ruoxin Xu
2992fa920f SERVER-66999 Check sharding initialized if running an explain with clusterFind command
(cherry picked from commit 8ab9a78b45)
2022-06-09 11:47:38 +00:00
Cheahuychou Mao
afab6f83ed SERVER-67026 Add new line to fixture_helpers.js
(cherry picked from commit a3c2a6a8c9)
2022-06-09 03:20:45 +00:00
Cheahuychou Mao
8e7fb8c5c4 SERVER-67026 InternalTransactionChunkMigrationTest and RetryableInternalTransactionTest fixtures should retry internal transactions on LockTimeout errors
(cherry picked from commit 26a4d4f3da)
2022-06-09 03:20:45 +00:00
Robert Guo
90a5f12cb1 SERVER-61972 un-delete version check for mongod options 2022-06-09 02:37:38 +00:00
Robert Guo
10776658a7 SERVER-61972 ensure useRandomBinVersionsWithinReplicaSet's respected 2022-06-08 22:52:08 +00:00
Charlie Swanson
904122d4b1 SERVER-66812 Fix bug with $group projection analysis
(cherry picked from commit 8a3af130c7)
2022-06-08 13:44:59 +00:00
Silvia Surroca
5c874317f9 SERVER-66336 ConfigsvrCoordinators initial checkpoint may incur in DuplicateKey error 2022-06-08 08:07:02 +00:00
Paolo Polato
daf78f2f25 SERVER-65371 Interrupt shardSvrMoveRange when the node steps down 2022-06-08 06:41:28 +00:00
Jack Mulrow
266864d409 SERVER-66973 Eagerly reap config.transactions entries for retryable sessions
(cherry picked from commit 77e9ff7fd5)
2022-06-07 22:27:58 +00:00
Jack Mulrow
90cccd16ef SERVER-66993 Stop tracking highest child session txnNumber
(cherry picked from commit f0a4461798)
2022-06-07 17:55:33 +00:00
Cheahuychou Mao
5edd6ea167 SERVER-67029 Make aggregate command in internal_transactions* workloads robust against failover/shutdown or collection rename
(cherry picked from commit b6b89a3019)
2022-06-07 17:31:57 +00:00
Pierlauro Sciarelli
9927679687 SERVER-66950 Fix orphans feature flag check in upgrade_downgrade_sharded_cluster.js (v6.0) 2022-06-07 14:15:24 +00:00
Romans Kasperovics
049359d123 SERVER-66644 Fix and re-enable profile_operation_metrics.js for debug builds
(cherry picked from commit 76a6a05d16)
2022-06-07 12:45:26 +00:00
Pierlauro Sciarelli
b0c54a72ba SERVER-67001 Make balancer wait interruptably for migration-related commands sent to shards 2022-06-07 09:32:59 +00:00
Jason Zhang
de8a1fc995 SERVER-66758 Remove usage of CancelableOperationContext when cleaning up internal sessions in setFCV 2022-06-06 18:35:38 +00:00
Jason Zhang
a867b3538d SERVER-66948 Catch NoSuchTransaction as an acceptable error in internal transactions coordinator cleanup test
(cherry picked from commit 10c8db0e32)
2022-06-06 17:57:35 +00:00
Vlad Rachev
29cd1eb4bd SERVER-66955 Remove JSON.send usage in sys-perf and performance
(cherry picked from commit 421855380204e5a9dcde2b83cccef8e6f75e3a96)
2022-06-06 17:10:20 +00:00
Mihai Andrei
56e1217005 SERVER-65960 Fall back to classic engine when NLJ is chosen
(cherry picked from commit ccdab6f1ab)
2022-06-06 14:45:46 +00:00
Jack Mulrow
16830c53d1 SERVER-66992 Optimize how often SessionCatalog mutex is held
(cherry picked from commit d457fc3a97)
2022-06-03 20:58:41 +00:00
Mark Benvenuto
ab988bae09 SERVER-66901 Make contention factor accept all valid positive integer types
(cherry picked from commit d4303b413a)
2022-06-03 20:10:37 +00:00
Andrew Shuvalov
c3b8c78465 SERVER-66843 Use defensive programming in DeadlineFuture destructor 2022-06-03 16:34:57 +00:00
Robert Guo
a4ae9e7d4b SERVER-66988 add variant to stress initialSyncId 2022-06-03 15:46:15 +00:00
Zituo Jin
3f587ed65e SERVER-66615 Increase timeout for replica_sets_large_txns_format on Enterprise RHEL 8.0 Required 2022-06-03 14:50:49 +00:00
Mickey. J Winters
fea5674353 SERVER-66062 make sure jstests/change_streams/ddl_create_index_txn.js doesn't accidentally use a cross shard transaction 2022-06-03 14:07:25 +00:00
Vesselina Ratcheva
67fd048070 SERVER-66444 Make storage watchdog compatible with FCBIS
(cherry picked from commit 322be402dd)
2022-06-03 04:10:04 +00:00
Jack Mulrow
a36f71f147 SERVER-66844 Transaction API shouldn't use CancelableOperationContext
(cherry picked from commit 074e2ac50c)
2022-06-03 02:57:31 +00:00
Jack Mulrow
1163832105 SERVER-66852 Eagerly erase retryable child sessions from SessionCatalog
(cherry picked from commit 8e96ecbf56)
2022-06-03 01:38:58 +00:00
sergey.galtsev
5efce3b40f SERVER-66766 stopFLECrud must wait for threads to exit 2022-06-02 22:41:41 +00:00
David Bradford
bfc3fee32a SERVER-66962: multiversion configuration updates
(cherry picked from commit 0a861695ec)
2022-06-02 21:41:51 +00:00
Cheahuychou Mao
5e72b325cd SERVER-66777 Ensure that internal transactions do not get interrupted by logical session reaper
(cherry picked from commit 01938cf723)
2022-06-02 20:57:20 +00:00
Romans Kasperovics
308882d125 SERVER-66830 Remove multiversion-incompatible assertion in view_aggregation.js 2022-06-02 20:56:07 +00:00
Randolph Tan
cebec3621d SERVER-63971 Make coordinate commit wait for transaction to actually complete by default
(cherry picked from commit 52defdf7c5)
2022-06-02 20:32:32 +00:00
Jack Mulrow
5fc426665b SERVER-66960 Cache highest child txnNumber on checked out sessions
(cherry picked from commit b2f773225a)
2022-06-02 19:21:50 +00:00
Gregory Noma
db3dfc6264 SERVER-66910 Ensure collectionUUID is respected for collMod unique index conversion
(cherry picked from commit 7768b6946b)
2022-06-02 18:51:43 +00:00
Tommaso Tocci
882698aa8b SERVER-66929 Persist CompactStructuredEncryptionDataCoordinator document before entering first phase
(cherry picked from commit d4b666e913)
2022-06-02 16:15:11 +00:00
Sergey Galtsev
c0d67ac4fc SERVER-66622 fail to createCollection when running in 5.x compatibility mode 2022-06-02 15:37:52 +00:00
David Storch
20c2bd8b67 SERVER-66833 Improve error and log messages on attempt to use unsupported legacy op code
(cherry picked from commit 6147e2b653)
2022-06-02 14:14:26 +00:00
Sergi Mateo Bellido
425b14f85f SERVER-66542 Unifying paths on the CatalogCache lookup function
Before this change there was an early-exit path that wasn't updating the
stats neither logging a line.

(cherry picked from commit 46a8e36aad)
2022-06-02 12:24:51 +00:00
Timour Katchaounov
b499c915d1 SERVER-66379 $or to $in conversion flawed
(cherry picked from commit 951197b383)
2022-06-02 11:27:12 +00:00
Enrico Golfieri
42f0d7d83d SERVER-62432 Ensure safe access to ShardingDDLCoordinator instance state documents
(cherry picked from commit c4522f8d57)
2022-06-02 11:03:14 +00:00
Jordi Serra Torrens
60f659abea SERVER-66825 Fix deadlock on MigrationDestinationManager::onStepDown
(cherry picked from commit 589d65d55b)
2022-06-02 10:38:51 +00:00
Pierlauro Sciarelli
739777aa24 SERVER-66805 Change public-facing moveRange::forceJumbo to bool type 2022-06-02 08:35:18 +00:00
Cheahuychou Mao
05683c2d9d SERVER-66850 Make the LogicalSessionCache reaper only scan parent sessions when searching for expired logical sessions
(cherry picked from commit d461c7c2fb)
2022-06-01 23:26:39 +00:00
Jack Mulrow
d94581d33c SERVER-66851 Internal session pool should use parent sessions as keys for child session map
(cherry picked from commit 37e28d05ca)
2022-06-01 22:48:03 +00:00
David Bradford
1747882582 SERVER-66557: Refactor and update multiversion setup and config
(cherry picked from commit 0abdf7bc75)
2022-06-01 20:07:41 +00:00
nandinibhartiyaMDB
2657601c25 SERVER-62272 : Migration OK for chunks existing before schema validator
(cherry picked from commit bc1ac6fb2e)
2022-06-01 19:10:02 +00:00
Denis Grebennicov
6cb2394959 SERVER-66540 Don't run awaitData cursor notification on insert part in await_getmore_cmd.js in majority readConcern 2022-06-01 10:34:36 +00:00
samontea
b4b8fa06d7 SERVER-66558 $sort does not rewrite to bounded sort when multiple index options are available 2022-05-31 21:11:59 +00:00
Pierlauro Sciarelli
44bc738a28 SERVER-66720 Interrupt migration-related commands on CSRS upon stepdown 2022-05-31 19:46:52 +00:00
Tommaso Tocci
459b223f35 SERVER-66860 FSM tests should not reuse same database names
(cherry picked from commit d88a892d5b)
2022-05-31 19:08:26 +00:00
Yuhong Zhang
b1b34b9541 SERVER-66556 Block shutdown when releasing cursors to avoid race conditions
(cherry picked from commit 66e938045f)
2022-05-31 18:12:21 +00:00
Matt Kneiser
66ab552d94 SERVER-66769 Add Windows support to spawnhost setup script
(cherry picked from commit ad379f1338)
2022-05-31 17:07:11 +00:00
Shin Yee Tan
8a33efbe38 SERVER-65399 Restart index build if recover in standalone and 'commitIndexBuild' oplog entry replayed 2022-05-31 17:05:55 +00:00
Vojislav Stojkovic
a8fd3bd540 SERVER-65131 Disable opportunistic read targeting
(cherry picked from commit e6547d5561)
2022-05-31 17:04:38 +00:00
Louis Williams
46876f4012 SERVER-66718 Allow StorageInterfaceImpl to perform more clustered collection scans
(cherry picked from commit 600e8b6e84)
2022-05-31 16:41:53 +00:00
Robert Guo
86cb7ea364 SERVER-65672 upgrade python packages to support 3.10 2022-05-31 15:03:45 +00:00
Lingzhi Deng
2fe7afd99f SERVER-66585 Update test tags for repl_startup_error_no_hang_on_shutdown.js 2022-05-31 14:33:12 +00:00
nandinibhartiyaMDB
5b5c358f61 SERVER-65027: Ensure resharding commands are parsed strictly
(cherry picked from commit 9f2b96479c)
2022-05-31 12:40:23 +00:00
Jordi Olivares Provencio
6247d20bcd SERVER-65426 Verify if there's an existing view when creating a collection
(cherry picked from commit c9d4924f3b)
2022-05-31 09:14:05 +00:00
Jordi Olivares Provencio
97ce6056df SERVER-66489 Fix race condition in ticketholder test
(cherry picked from commit c9c71fa2a7)
2022-05-31 08:50:28 +00:00
Pierlauro Sciarelli
6b4d0239a8 SERVER-66857 Retry moveChunk and moveRange indefinitely when router hits retriable errors 2022-05-30 12:30:32 +00:00
Paolo Polato
762492c1f9 SERVER-66714 Use ScopedTaskExecutor to manage requests cancellation at BalancerCommandsScheduler stop()
(cherry picked from commit 11a255c08f)
2022-05-29 20:43:20 +00:00
Paolo Polato
3faed4f1f6 SERVER-66716 remove early return check from _configSvrMoveRange 2022-05-29 20:43:20 +00:00
Paolo Polato
9ae0a24f4d SERVER-66480 introduce joinMigration shard cmd to set a barrier on the Balancer initialisation
(cherry picked from commit 531dfe764b)
2022-05-29 20:43:20 +00:00
Paolo Polato
491f15aaca SERVER-65969 Fix data race in ScopedDonateChunk
(cherry picked from commit bfee7c7eae)
(cherry picked from commit cb69b7f2bcfe4d7eb50da54d6e308b61ff29e6f6)
2022-05-29 20:43:20 +00:00
sergey.galtsev
b53aaa7d7e SERVER-66771 rename mongo_crypt_v1_dev
(cherry picked from commit 494673d29c949ee04fa2d5ef183390dca53e9069)
2022-05-29 15:43:26 +00:00
Jack Mulrow
b054e4fb3c SERVER-66388 Disallow using transaction API in operations with shard versions
(cherry picked from commit 51bff7a1d0)
2022-05-28 02:17:24 +00:00
Jack Mulrow
2332496003 SERVER-66849 Error labels should account for cluster abort and commit commands
(cherry picked from commit 6670518c90)
2022-05-28 01:54:02 +00:00
Jack Mulrow
cd8d0b4122 SERVER-66848 Internal transactions test command API use should use owned BSON
(cherry picked from commit 097483e9f0)
2022-05-27 23:05:02 +00:00
sergey.galtsev
87819b6575 SERVER-66711 rename mongo_crypt to mongo_crypt_shared 2022-05-27 22:19:05 +00:00
Mihai Andrei
06fa33ed4e SERVER-66583 Re-enable SBE as the default execution engine and fall back to classic if no SBE compatible $group or $lookup exists
(cherry picked from commit aa40f5e)
2022-05-27 21:44:19 +00:00
Jack Mulrow
3da01eeee8 SERVER-66828 Fix coverity defect
(cherry picked from commit 1bb4f64ef8)
2022-05-27 17:37:19 +00:00
Gregory Noma
e43fd84f5a SERVER-65218 Run ShardSplitDonorServiceTest with wiredTiger
(cherry picked from commit 4b99e8d94d)
2022-05-27 14:17:48 +00:00
Mindaugas Malinauskas
0cbf0426f7 SERVER-66826 Fix requires_fcv tag on lookup_pit_pre_and_post_image.js and lookup_pre_image.js 2022-05-27 11:53:46 +00:00
Luke Chen
d78084b291 Import wiredtiger: 8fb2c7b2a69abe5de86c870b64ba2ee85eaf1ccb from branch mongodb-6.0
ref: f4d48773a3..8fb2c7b2a6
for: 6.0.0-rc8

WT-9328       Don't remove the update from the transaction if it has been inserted to the update chain
2022-05-27 04:12:26 +00:00
Luke Chen
77d1f6b8d9 Import wiredtiger: f4d48773a3f1f2f7318e48f3c6afe295cb56c409 from branch mongodb-6.0
ref: 746497a6ff..f4d48773a3
for: 6.0.0-rc8

WT-9007       Don't output verbose messages when rolling back transactions
2022-05-27 04:12:26 +00:00
Luke Chen
2541522468 Import wiredtiger: 746497a6ffd88921928244047fbeb70275884163 from branch mongodb-6.0
ref: c2a7ed8278..746497a6ff
for: 6.0.0-rc8

WT-9115       Accept EINVAL error code from commit in the cpp suite
2022-05-27 04:12:26 +00:00
sergey.galtsev
db54aff64f SERVER-66771 Rename CSFLE build artifacts 2022-05-27 02:01:55 +00:00
sergey.galtsev
12075d9eef SERVER-66533 update FLE array tag size estimation 2022-05-27 00:15:25 +00:00
Davis Haupt
9c4ec2ed95 SERVER-66784 numberDecimalsAlmostEqual shell helper now works for negative numbers 2022-05-26 21:04:23 +00:00
Mihai Andrei
dc6062a86a SERVER-66768 Mark find_flip_sbe_enabled with requires_fcv_51 2022-05-26 18:47:30 +00:00
Gregory Noma
012db1b7bd SERVER-66719 Take FCV lock in MODE_IS for shared global lock modes
(cherry picked from commit 1c3268ae7f)
2022-05-26 13:26:05 +00:00
Mark Benvenuto
f45d3eb39a SERVER-66734 Extend FLE2FindEqualityPayload to take ServerDataEncryptionLevel1Token
(cherry picked from commit b198148add)
2022-05-26 12:48:42 +00:00
Rui Liu
82f32f737d SERVER-66538 Exclude timeseries_coll_mod.js from multiversion pre-6.0 tests
(cherry picked from commit 973321a0e7)
2022-05-26 11:55:26 +00:00
Mark Benvenuto
e37d60a30c SERVER-66528 Return the OpTime of Commit Transaction for FLE2 CRUD
(cherry picked from commit d3a424e7ea)
2022-05-26 04:55:02 +00:00
Alexander Neben
e7d454052c SERVER-66384 Ninja shared build log and common output directory
(cherry picked from commit 55ef8e5a8f)
2022-05-25 19:41:55 +00:00
Cheahuychou Mao
1d04c89fab SERVER-65639 Update comment in internal_transactions_kill_sessions.js
(cherry picked from commit 58821353f8)
2022-05-25 17:33:00 +00:00
Robert Guo
7aae6f2752 SERVER-66644 temporarily disable profile_operation_metrics.js
(cherry picked from commit 44eda56d1d)
2022-05-25 14:38:48 +00:00
Robert Guo
fb9f538d1b SERVER-66062 temporarily disable ddl_create_index_txn.js
(cherry picked from commit 1760e2e58af8203efcd5224ae3483ad24accdc10)
2022-05-25 13:56:00 +00:00
Cheahuychou Mao
8da319e0f6 SERVER-65639 Add concurrency workload that kills sessions with active internal transactions started using test command
(cherry picked from commit 73a42e73bf)
2022-05-25 01:05:53 +00:00
Jack Mulrow
222a559ce8 SERVER-66565 Create config.transactions partial index in setFCV 2022-05-24 21:12:59 +00:00
Gregory Wlodarek
27921f09fb SERVER-66327 Omit forceValidationWithFeatureCompatibilityVersion in the jstestfuzz yaml configs 2022-05-24 16:39:19 +00:00
Ruoxin Xu
2d4f4b0403 SERVER-66573 Add FCV tag in lookup_unionWith_subpipeline_local_read.js
(cherry picked from commit 93ec9da133)
2022-05-24 14:41:06 +00:00
Antonio Fuschetto
c8d9624ca6 SERVER-66660 Exclude unsupported test cases in 5.3 version from change_stream_no_orphans.js 2022-05-24 14:37:39 +00:00
Max Hirschhorn
71f9c40007 SERVER-66618 Wait in test for resharding coordinator to persist abort.
Fixes an issue in the resharding_coordinator_recovers_abort_decision.js
test where the reshardingPauseCoordinatorBeforeBlockingWrites failpoint
is being released too early and allowing the resharding coordinator to
decide to commit the resharding operation instead.

(cherry picked from commit 18ec837622)
2022-05-23 18:19:51 +00:00
Cheahuychou Mao
fb115177b0 SERVER-66647 internal_transactions_unsharded.js should set storeFindAndModifyImagesInSideCollection on all mongods
(cherry picked from commit 7a8e211d20)
2022-05-23 16:35:29 +00:00
Cheahuychou Mao
76d6c3a764 SERVER-66344 Only check the response if the last try was not a retry that failed
(cherry picked from commit 62ef2bf50c)
2022-05-23 16:35:29 +00:00
Cheahuychou Mao
44f1b289e4 SERVER-66344 Make internal transactions workloads more extensible
(cherry picked from commit 995d733cf7)
2022-05-23 16:35:29 +00:00
Cheahuychou Mao
d40fcdc9d8 SERVER-66616 Fix clang_tidy error on enterprise-rhel80-dynamic-clang-tidy-v4 caused by getHighestTxnNumberWithChildSessions()
(cherry picked from commit 7ed954527e)
2022-05-23 16:35:29 +00:00
Romans Kasperovics
aaa27a3f0f SERVER-66215 Create Sorter::File instances only when actually needed
(cherry picked from commit dd2874d1fc)
2022-05-23 16:06:46 +00:00
Gabriel Marks
a8f474bb04 SERVER-66111 Set default timeouts in HttpClient 2022-05-20 20:02:30 +00:00
Gabriel Marks
9853be92a5 SERVER-66087 Move curlLibraryManager.initialize() to global initializer 2022-05-20 17:14:24 +00:00
Randolph Tan
a04d70ba73 SERVER-65925 Reshard commit and abort should check for transient errors when joining
(cherry picked from commit c18e300ab0)
2022-05-20 14:23:22 +00:00
Jack Mulrow
e47a080b17 SERVER-66560 Check feature flag before fetching child transaction history
(cherry picked from commit 2fdcda013f)
2022-05-19 21:58:50 +00:00
Mihai Andrei
66be073ec0 SERVER-66551 Rename internalQueryEnableSlotBasedExecutionEngine back to internalQueryForceClassicEngine
(cherry picked from commit 89945d5b95)
2022-05-19 20:40:23 +00:00
Sara Golemon
783b48a1d1 SERVER-65777 Fix ns emitted for UMC commands
(cherry picked from commit 925e00657a)
2022-05-19 18:54:45 +00:00
David Bradford
cdb7058ee9 SERVER-66517: Migrate cwrwc_wc_majority_passthrough to be a generated task
(cherry picked from commit 5276525779)
2022-05-19 17:04:02 +00:00
James Wahlin
90ee530000 SERVER-66559 Expand the internalQueryMaxAddToSetBytes param from 32 to 64 bits
(cherry picked from commit 57f6fcb999)
2022-05-19 16:40:09 +00:00
Cheahuychou Mao
9059aa49eb SERVER-66566 Optimize scanning SessionCatalog when refreshing retryable writes from storage
(cherry picked from commit c088640979)
2022-05-19 15:17:41 +00:00
Tommaso Tocci
398f1e22ce SERVER-66553 configure_collection_balancing_setFCV.js should not run in multiversion suite 2022-05-19 14:53:43 +02:00
sergey.galtsev
8d64bcb59b SERVER-66488 Update selinux tests to use shell from archive_dist_test
(cherry picked from commit 08e5f964cdb3fd71f7e7d1691797c4ece29ea1d8)
2022-05-18 16:55:24 -07:00
Cheahuychou Mao
79e48dd8b0 SERVER-66526 Hang upon restart when there is a prepared internal transaction for retryable findAndModify executed with storeFindAndModifyImagesInSideCollection=true to reconstruct
(cherry picked from commit 13a610d118)
2022-05-18 22:22:33 +00:00
Randolph Tan
8035d1b6c1 SERVER-66264 shardsvrDropIndex should use timeseries namespace in the shardVersionRetry loop
(cherry picked from commit d5a929be4f)
2022-05-18 13:17:23 -04:00
David Bradford
d9c20985e2 SERVER-66518: Include packaging as part of powercycle dependencies
(cherry picked from commit 2bca294623)
2022-05-17 15:04:53 -04:00
Rachita Dhawan
ce47119ff1 SERVER-62175 Mongos fails to attach RetryableWrite Error Label For Command Interrupted In _parseCommand
(cherry picked from commit 38e4a5516d)
2022-05-17 15:48:13 +00:00
James Wahlin
387db2d0f7 Revert "SERVER-65884 $lookup from ts optimize $sequentialCache"
This reverts commit 252235fda4.
2022-05-17 15:24:59 +00:00
Andrii Dobroshynski
df8faf83a1 SERVER-65152 Update change_stream_null_existence_eq_rewrite_test.js for newly-added events
(cherry picked from commit 5a611b4f0d)
2022-05-17 14:08:19 +00:00
Jordi Serra Torrens
c900fa624c SERVER-65947 MigrationDestinationManager must recover if an error occurs during release of the critical section
(cherry picked from commit 5bd946b1fc)
2022-05-17 13:24:50 +00:00
Mindaugas Malinauskas
7aa9056354 SERVER-66075 Make change_streams_pre_image_removal_job.js tolerate transient CappedPositionLost errors when reading the oplog
(cherry picked from commit 7de665954a)
2022-05-17 13:20:37 +00:00
David Bradford
5c8894d8e0 SERVER-65937: Support different fcv tags for lts and continuous multiversion tests
(cherry picked from commit 3b4067a108)
2022-05-17 12:57:34 +00:00
Allison Easton
1a44e197ee SERVER-65930 DDL coordinators and rename participant initial checkpoint may incur in DuplicateKey error 2022-05-17 12:03:40 +00:00
Pierlauro Sciarelli
76fce4412c SERVER-66031 fix fcv document retrieval in jstests/sharding/rename_sharded.js 2022-05-17 10:22:33 +00:00
Paolo Polato
ede5f0da8f SERVER-66377 make ClusterChunksResizePolicy resilient to renameCollection() with dropTarget
(cherry picked from commit 46c54afca7)
2022-05-17 09:12:08 +00:00
Mohammad Dashti
dd511e9140 SERVER-66498 Disable Baseline JIT for MozJS
(cherry picked from commit 13ec926abf)
2022-05-17 05:15:08 +00:00
Mark Benvenuto
33f01c2958 SERVER-66120 Use consistent way to refer to FLE 2 encryption in user-facing messages
(cherry picked from commit ad2271e4c9)
2022-05-17 03:25:41 +00:00
Erwin Pe
86483f603c SERVER-65999 Fix the sharding test for two simultaneous compacts
(cherry picked from commit a86cebf1f3)
2022-05-17 03:02:21 +00:00
Mihai Andrei
7ed364e892 SERVER-66445 Make the classic engine the default execution engine
(cherry picked from commit 40109e237a)
2022-05-17 02:38:30 +00:00
ruslan.abdulkhalikov
252235fda4 SERVER-65884 $lookup from ts optimize $sequentialCache
(cherry picked from commit a672dcd565)
2022-05-17 02:02:30 +00:00
Varun Ravichandran
4ad4646e08 SERVER-66082: Propagate cluster server parameters to new nodes during file-copy based initial sync
(cherry picked from commit 33ced84ad3)
2022-05-16 22:59:43 +00:00
Tausif Rahman
c7801e8a9c Revert "SERVER-64332 added macos binary signing to push task"
(cherry picked from commit dff7548def)
2022-05-16 22:37:26 +00:00
Kyle Suarez
807371ef59 SERVER-65699 delete test-only 'sbe' command 2022-05-16 21:03:13 +00:00
Kyle Suarez
5cc18bcd68 SERVER-65859 Enable filtering of 'fromMigrate' change steam events for individual operations within applyOps array 2022-05-16 20:19:29 +00:00
Henrik Edin
04e49a5d48 SERVER-66139 Disable oplog visibility in standalone mode
(cherry picked from commit fbdcf79b38)
2022-05-16 19:19:55 +00:00
Pierlauro Sciarelli
feb2dfc188 SERVER-66031 rename must succeed on all shards when UUIDs provided for C2C 2022-05-16 17:39:57 +00:00
Paolo Polato
5b39b570b4 SERVER-66383 Persist the progress of ClusterChunksResizePolicy without holding the state mutex
(cherry picked from commit bbd45c53cc)
2022-05-16 16:59:50 +00:00
Paolo Polato
34b7213aee SERVER-65956 fix minor bugs in defragmentation source code/tests
(cherry picked from commit 4afa98e3a4)
2022-05-16 16:58:35 +00:00
Paolo Polato
4ad560df78 SERVER-65956 Skip split phase of collection defragmentation based on feature flag
(cherry picked from commit 7e7e34fb67)
2022-05-16 16:58:35 +00:00
Matthew Russotto
fa5d029fd8 SERVER-66089 Initial sync should do transaction table read with a later afterClusterTime.
(cherry picked from commit 878b6bb324)
2022-05-16 16:35:44 +00:00
Mihai Andrei
6501f4a1e5 SERVER-66354 Additional $search metadata pipeline should use separate ExpressionContext (cherry picked from commit d3d37be21f) 2022-05-16 15:13:13 +00:00
Antonio Fuschetto
082481b93b SERVER-66423 Set the fromMigrate flag of DurableReplOperation entries only when FCV is 6.0 or greater 2022-05-16 10:23:19 +00:00
Haley Connelly
1099c28828 SERVER-65916 Prevent batched_multi_deletes_failover.js from stalling on failpoint
(cherry picked from commit d7cf7fead4)
2022-05-16 09:39:30 +00:00
Andrew Morrow
3972a090fa SERVER-64352 Don't attempt to notarize the test shell
(cherry picked from commit 1d4d6b6f83)
2022-05-13 15:30:08 +00:00
Sergi Mateo Bellido
f9bf6f1799 SERVER-64433 Recovering the topology tick points on startup/init sync
(cherry picked from commit cc33146088)
2022-05-13 13:33:42 +00:00
David Storch
94ebb3709d SERVER-66389 Fix $where parameter bind-in optimization
(cherry picked from commit 48acc21bc9)
2022-05-13 08:01:47 +00:00
Alexander Neben
3645d402d7 SERVER-64352 mongo shell no longer built by default
(cherry picked from commit f59190ee55876c17de0ba92aaae9d2b369cdf901)
2022-05-13 01:48:10 +00:00
Davis Haupt
465ca1e459 SERVER-66366 remove encryptionInformation after rewriting update and delete requests for explain commands 2022-05-13 00:21:27 +00:00
Vesselina Ratcheva
1abb269878 SERVER-64628 Add more targeted tests for adding nodes to sharded sets
(cherry picked from commit 181a405baf)
2022-05-12 22:22:28 +00:00
Amirsaman Memaripour
e1d4cd0bff SERVER-59400 Revert "SERVER-55581: Return ScopedDbConnection to connection pool in cluster aggregation planner"
This reverts commit 663e90bbe8.

(cherry picked from commit 81fa710687)
2022-05-12 19:37:55 +00:00
Cheahuychou Mao
d8d9369e77 SERVER-65641 Add test coverage for reaping a session with active TransactionParticipant and TransactionRouter yielders
(cherry picked from commit 879d439c78)
2022-05-12 18:36:31 +00:00
Brian McCarthy
364c14723d SERVER-66386 Update AMI images for package tests
(cherry picked from commit 558e2dfd2c)
2022-05-12 14:40:04 +00:00
Paolo Polato
0add35fc62 Revert "SERVER-65831 Use ScopedTaskExecutor to speed up BalancerCommandsScheduler stop()"
This reverts commit 00275096d6.
2022-05-12 11:45:12 +00:00
Antonio Fuschetto
5b9077c974 SERVER-66312 Tests on batched operations do not involve orphaned documents 2022-05-12 11:19:46 +00:00
Antonio Fuschetto
8c9ceb09f2 SERVER-65858 Mark the applyOps entries when the operations involves orphaned documents 2022-05-12 10:21:06 +00:00
Luke Chen
7dc5d8f8ef Import wiredtiger: c2a7ed8278fa29430cd51d5e6ae9815f9fba2850 from branch mongodb-6.0
ref: 799bf81c4b..c2a7ed8278
for: 6.0.0-rc6

WT-9251       Perform log flush before the metadata checkpoint
2022-05-12 07:39:43 +00:00
Luke Chen
eb236125bc Import wiredtiger: 799bf81c4b6546b4edccaaa985077de8e69a4e99 from branch mongodb-6.0
ref: ed5f8423a8..799bf81c4b
for: 6.0.0-rc6

WT-9304       Fix checkpoint not to read deleted pages into cache
2022-05-12 07:39:43 +00:00
Luke Chen
8e4809dbac Import wiredtiger: ed5f8423a825c363f913be25c52a4ffdfc59d679 from branch mongodb-6.0
ref: 50aa449b70..ed5f8423a8
for: 6.0.0-rc6

WT-9176       Set operation rate to 10ms for update threads in operations_test
2022-05-12 07:39:43 +00:00
Luke Chen
23bea78e48 Import wiredtiger: 50aa449b701f987e5c5379379cc2c99054872b2a from branch mongodb-6.0
ref: ba455f3c9b..50aa449b70
for: 6.0.0-rc6

WT-8152       Remove stat_db_size runtime check from operations_test and rename cpp evergreen tasks
2022-05-12 07:39:42 +00:00
Benety Goh
3ea669ee44 SERVER-66319 dbcheck_no_history_on_secondary.js waits for dbCheck hasher to start
(cherry picked from commit 3ba08e75e5)
2022-05-12 00:02:40 +00:00
Jack Mulrow
27c9677322 SERVER-66316 Make transactions API interact better with Client Side Operation Timeout
(cherry picked from commit 2102f99116)
2022-05-11 22:18:10 +00:00
Benety Goh
5bef21c71b SERVER-66319 use bulk inserts to speed up dbcheck test
(cherry picked from commit 2daf151f5a)
2022-05-11 21:35:57 +00:00
Charlie Swanson
768de6a405 SERVER-65692 $searchMeta improvement 2022-05-11 20:20:17 +00:00
David Bradford
a2dfdccced SERVER-64731: Use version level task generation
(cherry picked from commit c1638c0ae3)
2022-05-11 17:12:11 +00:00
Alexander Neben
ca933f3c06 SERVER-66113 Add link to mongo shell in enterprise install
(cherry picked from commit 5f5b619e60)
2022-05-11 16:32:01 +00:00
Jack Mulrow
08362ea0dc SERVER-66375 Retry all operations on killed session errors in random_moveChunk_update_shard_key_kill_sessions.js
(cherry picked from commit 4201be5dc4)
2022-05-11 15:25:26 +00:00
Mark Benvenuto
d982d52961 SERVER-66085 Evaluate creating state collections as clustered collections
(cherry picked from commit 4baba7c9f1)
2022-05-11 15:00:19 +00:00
Mark Benvenuto
669b63d34b SERVER-66317 Make owned bson copies for txn api threads
(cherry picked from commit cc0335394b)
2022-05-11 15:00:19 +00:00
Jack Mulrow
7bfa67c512 SERVER-66299 Read random document with linearizable read concern in internal_transactions_unsharded.js
(cherry picked from commit 7ef3dda0e9)
2022-05-11 01:56:09 +00:00
Yuhong Zhang
142cdf278f SERVER-65797 Remove invalid index specs in memory before parsing for listIndexes 2022-05-10 21:56:51 +00:00
David Bradford
440d4679cc SERVER-66343: Increase timeout for mac run_unittests
(cherry picked from commit 167fbe34c3)
2022-05-10 18:53:27 +00:00
Mark Benvenuto
12ef2a3601 SERVER-65503 Remove FLE2 suites from standalone suites
(cherry picked from commit 2d42bc1dec)
2022-05-10 18:29:25 +00:00
Mark Benvenuto
4b8e74e9f9 SERVER-65503 Migrate FLE2 tests to core passthrough suites
(cherry picked from commit 5325fff3f0)
2022-05-10 18:29:25 +00:00
David Bradford
a88f6f47d2 SERVER-65835: Refactor how task timeouts are determined
(cherry picked from commit 1f60e18fd7)
2022-05-10 18:07:12 +00:00
Cheahuychou Mao
c4bfdc5ff5 SERVER-65638 Add concurrency workload that changes FCV while there are active internal transactions started using test command 2022-05-10 15:16:59 +00:00
Gregory Noma
d9acfef2b9 SERVER-65821 Allow prepared transactions to write commit decision across FCV barrier
(cherry picked from commit 5f15e515c6)
2022-05-10 14:41:33 +00:00
Arun Banala
c6d13552e8 SERVER-66307 [v6.0]Set $_generateV2ResumeTokens parameter only on mongos 2022-05-10 11:36:35 +00:00
Benety Goh
62d427c2bb SERVER-64659 add multiple index spec test case for indexBulkBuilder server status section
(cherry picked from commit e2abe094a3)
2022-05-10 10:53:41 +00:00
Kaloian Manassiev
882b0d9dcf SERVER-66236 Always return UNSHARDED description on uninitialised cluster
(cherry picked from commit 4deeaf72d5)
2022-05-10 06:39:08 +00:00
Yoonsoo Kim
201d38029b SERVER-65863 Have optimized _id expression(s) pushed down properly
(cherry picked from commit 7f55c45773)
2022-05-10 05:39:01 +00:00
Israel Hsu
cb28b28ae6 SERVER-65983 Remove unnecessary internal_txns tests
(cherry picked from commit b3515cdffb)
2022-05-10 03:09:21 +00:00
Jack Mulrow
dd38d4917d SERVER-66320 Wait for thread pool to be idle before resetting TransactionWithRetries in unit tests
(cherry picked from commit afe31bee0b)
2022-05-10 02:45:07 +00:00
Cheahuychou Mao
a615e9b7bc SERVER-66296 ReshardingOplogBatchApplier and ReshardingTxnCloner should wait for conflicting transaction to complete upon hitting RetryableTransactionInProgress
(cherry picked from commit a7f575b9c7)
2022-05-10 01:25:49 +00:00
samontea
6e40c0c55d SERVER-52286 Enable feature flag for Bucket Unpacking with Sorting, reduce FCV to 6.0 2022-05-09 23:49:27 +00:00
Alexander Ignatyev
15c5431298 SERVER-66163 Use index entry from IXScan to report IET
(cherry picked from commit 39ccb28e09)
2022-05-09 22:28:39 +00:00
Davis Haupt
5b6dfa1690 SERVER-64911 Add create, collMod and createIndexes to list of commands to send to encryption 2022-05-09 21:30:51 +00:00
Mark Benvenuto
a13b628c6e SERVER-66064 Fix fast count when authentication is enabled
(cherry picked from commit ee12644af8)
2022-05-09 19:23:36 +00:00
Mark Benvenuto
69ce4e6656 SERVER-66064 Optimize FLE2 document counting
(cherry picked from commit c23236c1b6)
2022-05-09 19:23:36 +00:00
Mark Benvenuto
9707fb81cb SERVER-66186 Optimize ECC null document storage
(cherry picked from commit 64ebed9cdd)
2022-05-09 18:58:58 +00:00
Arun Banala
2cfe1b9e8e Revert "SERVER-66307 [v6.0]Set $_generateV2ResumeTokens parameter only on mongos"
This reverts commit 0056ecb9c07a317e93e1bef083efa4462f21f7a0.
2022-05-09 17:13:26 +00:00
Sergi Mateo Bellido
d66184cb6e SERVER-64601 Using the onInitialDataAvailable hook to initialize
sharding environment

(cherry picked from commit bf1b133ade)
2022-05-09 15:43:01 +00:00
Jordi Olivares Provencio
7774cd9bc4 SERVER-64467 Refactor TicketHolders to not use global context
(cherry picked from commit e399b6676c)
2022-05-09 15:19:34 +00:00
Arun Banala
486b3428d8 SERVER-66307 [v6.0]Set $_generateV2ResumeTokens parameter only on mongos 2022-05-09 14:53:39 +00:00
Irina Yatsenko
5a4e56115f SERVER-66119 Avoid duplicated seek into index for local fields with nested arrays
(cherry picked from commit 96b8052c9e34423534ac610fcb5b11bca7239d12)
2022-05-09 14:18:16 +00:00
Denis Grebennicov
8bdca7b05b SERVER-65847 Construct simpler parameterized SBE index scan plans when possible 2022-05-09 13:14:56 +00:00
Anton Korshunov
b690dde464 SERVER-66233 Tag index_filter_commands.js with requires_fcv _60
(cherry picked from commit bae75df363)
2022-05-09 11:27:23 +00:00
Benety Goh
e8f6336784 SERVER-64659 add initial sync test case for indexBulkBuilder server status section
(cherry picked from commit 4adfa1a54c)
2022-05-09 10:21:01 +00:00
Cheahuychou Mao
2b32a92fcc SERVER-65638 Make internal_transactions_unsharded.js track dirty documents and retry_on_killed_session.js only retry idempotent operations
(cherry picked from commit 6575cefe29)
2022-05-08 21:44:00 +00:00
Ruoxin Xu
a4e55674d1 SERVER-66209 Make BSONObjs owned when constructing a DebugInfo
(cherry picked from commit 5c38a29c5b)
2022-05-07 13:47:54 +00:00
Mohammad Dashti
bdb54b6d65 SERVER-66302 Removed 'JS_SetGlobalJitCompilerOption' calls to avoid a possible race condition
(cherry picked from commit c3765031e1)
2022-05-07 09:10:14 +00:00
Eric Cox
5f3510b1b1 SERVER-64735 Fix uninitialized pointer field in HashLookupStage
(cherry picked from commit ba5b14fdf7)
2022-05-06 22:26:31 +00:00
Dan Larkin-York
71305cfbc1 SERVER-64769 Make sure bounded sorter provides sort key for sharded mergesort 2022-05-06 19:33:26 +00:00
Dan Larkin-York
c4577480b3 SERVER-65406 Handle compressed buckets in timeseries dotted path support library 2022-05-06 18:34:06 +00:00
Gregory Wlodarek
8adb070dcb SERVER-62102 Append aggregated BucketCatalog execution stats for all namespaces to ServerStatus 2022-05-06 17:57:36 +00:00
Sanika Phanse
2d2290fe81 SERVER-66067 Transaction API's best-effort abort can interfere with two-phase commit
(cherry picked from commit a9397139b7)
2022-05-06 16:46:46 +00:00
Zakhar Kleyman
a3ba59200f SERVER-62308 Platform Support: Remove Debian 9 2022-05-06 16:18:06 +00:00
David Percy
2e85e425b4 SERVER-65050 Optimize time-series sorting with point query on metadata 2022-05-06 14:52:08 +00:00
Paolo Polato
00275096d6 SERVER-65831 Use ScopedTaskExecutor to speed up BalancerCommandsScheduler stop()
(cherry picked from commit c10fb605ba)
2022-05-06 11:36:52 +00:00
Alexander Ignatyev
4f14082a6c SERVER-66245 Copy sbeCompatible flag for subqueries
(cherry picked from commit 6bf7fbe9ee)
2022-05-06 10:58:53 +00:00
Benety Goh
8f2a387c72 SERVER-64659 add external sorter file handle metrics to indexBulkBuilder server status section
(cherry picked from commit bfc606f1cc)
2022-05-06 10:35:24 +00:00
samontea
72852f034f SERVER-64349 Fix test file FCV 2022-05-06 02:03:39 +00:00
Jack Mulrow
568789beb7 SERVER-66222 Retryable transactions should reject multi writes with an initialized statement id
(cherry picked from commit 883238375b)
2022-05-05 22:10:22 +00:00
Alexander Ignatyev
3b505f1957 SERVER-65345 Check if CanonicalQuery has pushed down stages
(cherry picked from commit 8aa42af064)
2022-05-05 21:21:13 +00:00
Erwin Pe
f32cf4f2d0 SERVER-66167 remove case for deleting all esc/ecc entries in compact
(cherry picked from commit 32ea347de8)
2022-05-05 19:09:34 +00:00
Joel Redman
95d09aba88 SERVER-65541 Fix coverity uninitialized member in CollectionScanNode 2022-05-05 18:27:52 +00:00
Romans Kasperovics
a70e930841 SERVER-65460 Set allowDiskUse to false in read-only mode 2022-05-05 15:59:23 +00:00
Mark Benvenuto
0d025d08cf SERVER-65832 Block mongod CompactStructuredEncryptionData on shard server
(cherry picked from commit 671486e7ba)
2022-05-05 15:57:25 +00:00
Erwin Pe
b29f1a82f9 SERVER-65483 Add tests for compact contention with concurrent FLE2 inserts and deletes
(cherry picked from commit d457616e6a)
2022-05-05 15:57:25 +00:00
Erwin Pe
b318215fa7 SERVER-65431 Disallow renaming to/from a collection with encrypted fields
(cherry picked from commit 3904aa02b4)
2022-05-05 15:34:06 +00:00
Varun Ravichandran
4eb4a309af SERVER-65810: Disable test-only cluster server parameters when enableTestCommands is false
(cherry picked from commit 0047a5b2e8)
2022-05-05 14:37:42 +00:00
Benety Goh
be69831f52 SERVER-64659 add resumable index build counter to indexBulkBuild server status section
(cherry picked from commit 0c40fc644d)
2022-05-05 11:02:43 +00:00
Denis Grebennicov
1723856986 SERVER-61485 Wrong SBE plan reported by explain() for rejected plans 2022-05-05 10:25:47 +00:00
Luke Chen
728342e382 Import wiredtiger: ba455f3c9bd7c3fd1d2b43fb659c53f9822c0c6b from branch mongodb-6.0
ref: d8fc01e023..ba455f3c9b
for: 6.0.0-rc5

WT-9249       Compare and fix the start durable timestamp if it is greater than ooo timestamp
2022-05-05 05:35:15 +00:00
Luke Chen
f37bd161f0 Import wiredtiger: d8fc01e0235d9eda1fc149d7adb723add0862025 from branch mongodb-6.0
ref: 0393d02cd3..d8fc01e023
for: 6.0.0-rc5

WT-8431       Increase test_hs14 cache size to reduce eviction activity
2022-05-05 05:35:15 +00:00
Cheahuychou Mao
c21af7e992 SERVER-66110 Downgrading FCV can cause the active txnNumber on TransactionParticipant to change between session yielding and unyielding
(cherry picked from commit 6d06540e28)
2022-05-05 00:38:36 +00:00
Jack Mulrow
300f2eed08 SERVER-66090 Make mongod service entry point resilient to session yielding
(cherry picked from commit e63da638a1)
2022-05-04 21:47:54 +00:00
Mark Benvenuto
79942357f7 SERVER-65167 Remove usage of std:tie in fle_crud.cpp
(cherry picked from commit 3df96ded70)
2022-05-04 21:24:15 +00:00
sergey.galtsev
4a8d40cb6e SERVER-63703 eliminate openssl dependency on csfle 2022-05-04 20:05:04 +00:00
Cheahuychou Mao
387a30c6a3 SERVER-66211 setFCV downgrade can overwrite the state for the latest txnNumber during internal transactions config.transactions entries removal 2022-05-04 19:41:26 +00:00
David Storch
a616699c51 SERVER-64315 Re-enable caching of SBE plans when there is a single query solution
This reverts commit f8589f840c.

(cherry picked from commit f462237ac1)
2022-05-04 18:11:43 +00:00
Alexander Ignatyev
3c0df34e8a SERVER-65793 Do not parameterize queries with TEXT match expression node
(cherry picked from commit 9ca1d39e1a)
2022-05-04 17:24:34 +00:00
Ted Tuckman
b8cde770ab SERVER-55112 Make distinct on a view match distinct on a collection for certain array cases 2022-05-04 16:06:17 +00:00
Benety Goh
b4950d6e53 SERVER-64659 fix lint 2022-05-04 13:33:26 +00:00
Benety Goh
5659527d24 SERVER-64659 add indexBulkBuilder server status section with minimal creation metrics
(cherry picked from commit adc47cc974)
2022-05-04 11:08:41 +00:00
Max Hirschhorn
fbb5573629 SERVER-66088 Create separate indexes for resharding test to drop.
Due to a StaleConfig exception, the _shardsvrDropIndexes command may
automatically retry the dropIndexes command after the resharding
operation has succeeded and lead to a spurious IndexNotFound error.
While the _shardsvrDropIndexes and dropIndexes shard commands from the
resharding_disallow_writes.js test have a maxTimeMSOpOnly attached, on
platforms with less precise clocks (namely Windows), there may still be
sufficient time for a retry to go through from the primary shard even
after the initial dropIndexes request had timed out on mongos.

(cherry picked from commit 73938f0e9a)
2022-05-03 23:51:55 +00:00
Paolo Polato
5b1fe61d1a SERVER-66008 fix undefined function bug in cluster.js
(cherry picked from commit 782e90f7ae)
2022-05-03 21:17:35 +00:00
Benety Goh
725536e395 SERVER-64659 Sorter::File accepts optional SorterFileStats for tracking file open/close operations
(cherry picked from commit 176747132c)
2022-05-03 20:43:56 +00:00
Gregory Wlodarek
4bd72a14ee SERVER-66140 Run simulate_crash.py hook with testing diagnostics enabled
(cherry picked from commit 062791e149)
2022-05-03 19:51:19 +00:00
samontea
3151bf2f90 SERVER-64349 Add heuristic-based planning support for bucket unpacking with sort 2022-05-03 17:56:04 +00:00
Marcos José Grillo Ramirez
20c5441714 SERVER-65643 Exclude set_cluster_parameter.js test from inMemory variants
(cherry picked from commit 18d5328e20)
2022-05-03 17:32:27 +00:00
Benety Goh
919f4cc6ce SERVER-64659 move sorter.h include to IndexAccessMethod cpp file
(cherry picked from commit dbbf2c0689)
2022-05-03 17:29:07 +00:00
Hana Pearlman
6cc72824de SERVER-62287: Reenable aggregation fuzzers 2022-05-03 17:05:38 +00:00
David Storch
6c2b8f53b4 SERVER-66015 Distinguish simple and non-simple regexes in SBE plan cache key
(cherry picked from commit 2cee6cb397)
2022-05-03 13:48:23 +00:00
Allison Easton
a2958974d4 SERVER-65015 Granular locks for synchronizing orphans tracking 2022-05-03 12:34:00 +00:00
Ruoxin Xu
279da2ed41 SERVER-65897 Remove SBE plan cache entries from the corresponding collection when an index filter is set or cleared
(cherry picked from commit 4ecf46e108)
2022-05-03 09:57:30 +00:00
Paolo Polato
5e73659a3c SERVER-65649 Throttle merge/split chunk ops issued by the balancer
(cherry picked from commit 91c4696df9)
2022-05-03 09:24:05 +00:00
Luke Chen
ff5e921b93 Import wiredtiger: 0393d02cd3a826511c57698e5110e15c50559a80 from branch mongodb-6.0
ref: 396f900428..0393d02cd3
for: 6.0.0-rc4

WT-9029       Remove object_target_size option from WT_SESSION::create
WT-9255       Disable certain tests for mongodb-6.0 branch
2022-05-03 05:34:51 +00:00
Romans Kasperovics
5f60d59336 SERVER-65319 Count explicit use of allowDiskUse:false 2022-05-03 01:14:49 +00:00
Sanika Phanse
1fafce5685 SERVER-64194 Add test coverage for refreshFromStorageIfNeeded() for a retryable internal transaction with write statements with kUninitializedStmtId
(cherry picked from commit 500de2dcb8)
2022-05-02 22:12:36 +00:00
Cheahuychou Mao
91db229de6 SERVER-66104 Make internal_transactions_transient_error_after_setFCV.js check for InternalTransactionNotSupported in writeErrors instead
InternalTransactionNotSupported is no longer a transient transation
error so it is returned as a write error instead of as a top-level
error
2022-05-02 19:43:00 +00:00
Cheahuychou Mao
b33af4ceaf SERVER-66104 Not label InternalTransactionNotSupported as a transient transaction error
(cherry picked from commit 3bef8610d3)
2022-05-02 17:46:29 +00:00
Jack Mulrow
b8e2306d66 SERVER-66029 Fix lifetime of timers in refineCollectionShardKey transaction callback
(cherry picked from commit 5cf29656a8)
2022-05-02 16:27:09 +00:00
Christopher Caplinger
bf5b9ae54f SERVER-65439: Conditionally set multikey paths when indexing records
(cherry picked from commit 51b92630cc)
2022-05-02 14:35:49 +00:00
Pierlauro Sciarelli
683a68904e SERVER-66070 MigrationSourceManager::getMigrationStatusReport must expect optional max bound 2022-05-02 10:29:00 +00:00
Cheahuychou Mao
f8efe6a88b SERVER-65436 Make autosplit_setFCV_downgrade_from_60.js set the FCV back to latest during teardown 2022-04-30 03:57:44 +00:00
Gregory Wlodarek
94a8935df8 SERVER-66080 SimulateCrash hook waits for mongod to stop before copying data files
(cherry picked from commit f121c23374)
2022-04-29 23:25:12 +00:00
ruslan.abdulkhalikov
735345972e SERVER-65808 support $search as subpipeline of $lookup with localField+foreignField
(cherry picked from commit 736d9efe5ef102c2d4e5de5d268787030cd4c346)
2022-04-29 18:58:29 +00:00
Nikita Lapkov
6017abecf4 SERVER-65961 Copy only BSON types during yielding of SBE plans
(cherry picked from commit a88230980f)
2022-04-29 18:35:18 +00:00
Cheahuychou Mao
e6b54429de SERVER-65993 Make internal transaction concurrency workloads create test collection in the setup phase with w: majority
(cherry picked from commit dc51c89abf)
2022-04-29 17:55:56 +00:00
Cheahuychou Mao
9dedc55e66 SERVER-65988 Make TransactionCoordinator log full session ids
(cherry picked from commit ba809f2d90)
2022-04-29 17:21:25 +00:00
Cheahuychou Mao
ca7108a1b0 SERVER-65640 Add concurrency workload that performs resharding while there are active internal transactions started using test command
(cherry picked from commit e4bb8a1218)
2022-04-29 17:21:25 +00:00
Cheahuychou Mao
6259f8d9fd SERVER-64986 Make maxClusterTime not default to null timestmap
(cherry picked from commit 0157495746)
2022-04-29 17:21:25 +00:00
Cheahuychou Mao
faaccd35af SERVER-64986 Make internal transactions concurrency workloads retry testInternalTransactions commands that are run as retryable writes
(cherry picked from commit c8e87a7de9)
2022-04-29 17:21:25 +00:00
Cheahuychou Mao
d81e854994 SERVER-64986 Add concurrency workloads that test internal transactions using test command
(cherry picked from commit 5da689d92c)
2022-04-29 17:21:25 +00:00
Matthew Russotto
0040c5f716 SERVER-65788 Do not hold Global lock when calling startDataReplication
(cherry picked from commit 67a207b721)
2022-04-29 16:42:01 +00:00
Vesselina Ratcheva
064111fc4e SERVER-64627 Refactor onInitialSyncComplete and onStartupRecoveryComplete into new sharding hook that also works with FCBIS
(cherry picked from commit 14e04b0acc)
2022-04-29 13:44:40 +00:00
Luke Chen
2c3982e085 Import wiredtiger: 396f9004282cf8a8d8d7580dfea065ca0352f3d8 from branch mongodb-6.0
ref: 5003f657b0..396f900428
for: 6.0.0-rc4

WT-8234       Prevent eviction of internal pages while reconciling leaf pages which could refer to their memory
WT-9177       Fix deadlock with checkpoint waiting for transactions to complete
2022-04-29 10:00:53 +00:00
Pierlauro Sciarelli
e714e06e04 SERVER-66041 Chunk cloner must never consider too big a chunk with only one document 2022-04-29 09:37:14 +00:00
Allison Easton
82ca5be473 SERVER-65436 Create FSM workload to test chunk splitting on downgrade
(cherry picked from commit 9ecc0667d4)

SERVER-65911 Disable autosplit_setFCV_downgrade_from_60.js on multiversion

(cherry picked from commit 1a3dcd8bf0)
2022-04-29 06:45:49 +00:00
Ted Tuckman
2f3c902495 SERVER-66009 Avoid use of mongo process interface if search is in an update pipeline 2022-04-28 23:17:37 +00:00
Mohammad Dashti
4c05fd8607 SERVER-65773 Improved MozJS error handling
(cherry picked from commit 6808bcf11e)
2022-04-28 22:55:48 +00:00
Jon Streets
b3598e71a2 SERVER-66049 add csfle push task to AL2 ARM
(cherry picked from commit 1423d114a13b61754744c73cf18d794b81e9b87f)
2022-04-28 22:20:38 +00:00
Cheahuychou Mao
715c8344c0 SERVER-66032 Secondary oplog application failure for prepared internal transactions that span an FCV change
(cherry picked from commit ef9865164e)
2022-04-28 20:28:35 +00:00
Cheahuychou Mao
76e25c8ede SERVER-65998 Fix expected document in random_moveChunk_update_shard_key.js
(cherry picked from commit f9a606edcc)
2022-04-28 20:28:35 +00:00
Jack Mulrow
1f1d8fdb23 SERVER-61782 SERVER-63835 Use futures in transaction API run implementation and simplify construction
(cherry picked from commit 06252c6c7d)
2022-04-28 18:56:21 +00:00
Cheahuychou Mao
fba4410371 SERVER-66054 Internal transactions in jstests/multiversion are not running on evergreen 2022-04-28 18:31:03 +00:00
Irina Yatsenko
03296e9bc9 SERVER-65929 Avoid profiling overhead in aggregation over SBE find when not actually profiling
(cherry picked from commit a1f721cd6b)
2022-04-28 16:52:25 +00:00
Rui Liu
ab43ff54c2 SERVER-66044 Fix feature flag assertion in lookup_unionWith_subpipeline_local_read.js
(cherry picked from commit d40ef71d68)
2022-04-28 16:25:35 +00:00
Mark Benvenuto
da36a1747b SERVER-64514 Blackduck check return code, update third_party_components.yml
(cherry picked from commit b4fd6d05d7)
2022-04-28 15:46:37 +00:00
Yuhong Zhang
c32b4ba278 SERVER-65922 Allow duplicate keys to be inserted before the index build with the prepareUnique option commits
(cherry picked from commit b61476a952)
2022-04-28 15:23:50 +00:00
Yuhong Zhang
292b6b8a23 SERVER-65922 Disallow unique and prepareUnique to exist in the index spec together
(cherry picked from commit fcb9d766b6)
2022-04-28 15:23:50 +00:00
Arun Banala
d6e452e89c SERVER-66017 Always include operationDescription in v2 resume token for rename events
(cherry picked from commit 6d0743c76fd5c7fc7aa018ac043e3adc983a7c16)
2022-04-28 14:16:26 +00:00
Allison Easton
e6ee576307 SERVER-64285 Create indexes on config.rangeDeletions
(cherry picked from commit 0d1f974d01)
2022-04-28 08:50:13 +00:00
Robert Guo
39027673be SERVER-65071 remove resmoke gRPC integration
(cherry picked from commit 9563cadc7d)
2022-04-28 07:49:37 +00:00
Ryan Egesdahl
f4feff2da9 SERVER-64803 Check for C99 libc headers during build
(cherry picked from commit 8e9d522792)
2022-04-27 19:44:02 +00:00
Jon Streets
adcf4bfa75 SERVER-66013 change CSFLE ARM build host from x86 to ARM
(cherry picked from commit 8f3c0917a06575fde0ee04a43b11d3e36d73bc57)
2022-04-27 19:18:19 +00:00
Henrik Edin
aa0eff62c5 SERVER-65501 Re-start interleaved object compression when scalar field is encountered as object
This makes the behavior the same as when going from object to scalar.

(cherry picked from commit 8566a0723b)
2022-04-27 18:48:24 +00:00
Jon Streets
db97f4f48f SERVER-65944 Add csfle build and push to Ent RHEL 8 x86
(cherry picked from commit c5b934f586dba4c01a65b0a7830a4d15f8cf6614)
2022-04-27 18:21:14 +00:00
Daniel Moody
8d2be1e9b0 SERVER-64332 skip macos notarization for archives which don't exist.
(cherry picked from commit 92e728ced8)
2022-04-27 17:21:14 +00:00
Arun Banala
f97cda3761 SERVER-63864 Add tests to validate change stream namespace and operationType rewrites for newly added events
(cherry picked from commit 7e8ebefc2f)
2022-04-27 16:48:13 +00:00
Ruoxin Xu
4ce1a04a1d SERVER-65532 Avoid calls to fillOutSecondaryCollectionsInformation() in PrepareExecutionHelper
(cherry picked from commit c516a8fc88)
2022-04-27 14:31:18 +00:00
Paolo Polato
d0e66009f7 SERVER-65811 Adjust set of expected errors in migration_coordinator_abort_failover.js
(cherry picked from commit f08cda52ec)
2022-04-27 11:51:31 +00:00
Marcos José Grillo Ramirez
b74b7a6efb SERVER-65386 Change add shard behavior to absorb shard cluster's parameters when promoting first RS to shard
(cherry picked from commit c78b6a067d)
2022-04-27 11:27:48 +00:00
Ruoxin Xu
53bed7ef77 SERVER-63344 Avoid cloning the SBE tree inside the plan cache mutex
(cherry picked from commit 2c0f447cff)
2022-04-27 11:04:52 +00:00
Denis Grebennicov
f1bdce4f8e SERVER-65085 SBE plan cache entries can be incorrectly reused after a refineCollectionShardKey operation 2022-04-27 10:40:57 +00:00
Pierlauro Sciarelli
d3b3466b49 SERVER-64817 Compute missing bound of moveRange within MigrationSourceManager 2022-04-27 10:14:49 +00:00
Tommaso Tocci
dfbc0da153 SERVER-65705 avoid division by zero in ShardsvrGetStatsForBalancing
(cherry picked from commit 1aa6b2bba7)
2022-04-27 09:15:16 +00:00
Billy Donahue
75cf260b4e SERVER-62656 optional minmax for CSRS pools
(cherry picked from commit b0b3890bdf)
2022-04-26 21:52:03 +00:00
Cheahuychou Mao
b7d4aa803c SERVER-65973 Disable remaining internal transactions tests that involve restarts on the inMemory variants
(cherry picked from commit 1d78938bfc)
2022-04-26 20:51:53 +00:00
David Bradford
b28dbf4657 SERVER-65672: pin crypography dependency
(cherry picked from commit 220004ef36)
2022-04-26 20:28:23 +00:00
Gabriel Marks
08f44d0fbe SERVER-63155 Re-enable ssl_cert_selector_apple.js 2022-04-26 19:49:27 +00:00
Gabriel Marks
72560925f4 SERVER-62941 Add oplog server status to FTDC 2022-04-26 19:11:59 +00:00
Gregory Wlodarek
99b735f678 SERVER-65963 Check FCV before creating time-series measurement indexes 2022-04-26 17:56:47 +00:00
Nikita Lapkov
0310172914 SERVER-65665 Disable sparse indexes from SBE $lookup
(cherry picked from commit 568226e1d6)
2022-04-26 16:48:24 +00:00
Brett Nawrocki
909b71bf5c SERVER-65924 resharding_histogram_metrics.js checks totalCount or ops 2022-04-26 16:25:32 +00:00
Rui Liu
858359e671 SERVER-65826 Fix corrupted collection pointers saved in MultipleCollectionsAccessor
(cherry picked from commit 35f03b7ef5)
2022-04-26 13:49:23 +00:00
Denis Grebennicov
1bbb684e57 SERVER-65814 Avoid resetting system variables on plan recovery if they're not registered in RuntimeEnvironment 2022-04-26 12:54:45 +00:00
Gregory Wlodarek
2b31ab0050 SERVER-65945 Skip reporting simulate crash hook errors when a test failed
(cherry picked from commit 677bfe19c6)
2022-04-26 12:32:29 +00:00
Luke Chen
1b70d13966 Import wiredtiger: 5003f657b04bde3df73de6f655cbfbbc081cd252 from branch mongodb-6.0
ref: 7a7d6bf9ab..5003f657b0
for: 6.0.0-rc2

WT-9096       Fix search near returning wrong key/value sometimes when key doesn't exist
2022-04-26 05:56:27 +00:00
Robert Guo
225f3122c7 SERVER-62937 add testing coverage for graviton
(cherry picked from commit 06f4991248)
2022-04-26 01:31:20 +00:00
Erwin Pe
283f01d900 SERVER-65771 Add requires_ocsp_stapling tag to ocsp_ignore_irrelevant.js
(cherry picked from commit 7958342795)
2022-04-25 23:29:38 +00:00
Irina Yatsenko
03c459860f SERVER-65489 Make unwind of the terminal foreign key value conditioned on whether the value is an array
(cherry picked from commit 55c81877e5)
2022-04-25 21:11:52 +00:00
Randolph Tan
1256b11b0f SERVER-6491 Make dropIndexes take the distlock so it can never run in parallel with shardCollection
(cherry picked from commit 77ffcb1d04)
2022-04-25 14:20:24 +00:00
Bernard Gorman
78c459a1f7 SERVER-65497 Do not assume input document is unmodified in DSChangeStreamHandleTopologyChange
(cherry picked from commit c7b46ffe63)
2022-04-23 03:06:21 +00:00
Varun Ravichandran
d1d2bb4551 SERVER-62266: Serialize setClusterParameter and drop cluster parameter collection during FCV 6.0 downgrade
(cherry picked from commit ad30aeecc3)
2022-04-22 20:43:02 +00:00
Gabriel Marks
5e5533da02 SERVER-65749 Add requires_persistence to user_write_block_fcv.js
(cherry picked from commit 7fcb8ea874)
2022-04-22 19:44:46 +00:00
Mihai Andrei
11c1739246 SERVER-65695 Delete checks for atomic query knobs when getting secondary namespaces
(cherry picked from commit 8a5e1910c1)
2022-04-22 15:01:37 +00:00
Mihai Andrei
0a16e785f7 SERVER-65665 Disallow the use of indexes with partial filter expressions in INLJ (cherry picked from commit b02798f303) 2022-04-22 14:59:06 +00:00
Christopher Caplinger
e2409b8fe0 SERVER-65331: Skip additional multiversion tenant migration test
(cherry picked from commit ad27a9745b)
2022-04-22 14:34:42 +00:00
Denis Grebennicov
7a7e183392 SERVER-65779 Pass IndexBounds directly to the CheckBounds stage 2022-04-22 12:31:39 +00:00
Tommaso Tocci
d5bd5860f6 SERVER-65795 Ensure BalancerStatsRegitry async initialization is interrupted on stepdown
(cherry picked from commit 1a55384344)
2022-04-22 12:08:15 +00:00
Tommaso Tocci
92ae225510 SERVER-65887 Fix clang formatting 2022-04-22 11:40:08 +00:00
Daniel Moody
ba20d2b03c SERVER-64332 added macos binary signing to push task
(cherry picked from commit 8aee4d35ca)
2022-04-21 20:41:25 +00:00
Mihai Andrei
3baf83d4d0 SERVER-64412 Add FSM test for $lookup to verify correctness in the presence of yielding
(cherry picked from commit 207489e8d3)
2022-04-21 19:37:08 +00:00
Mickey. J Winters
7d6df44172 SERVER-65022 always report 'wallTime' in change stream event output 2022-04-21 19:01:45 +00:00
Irina Yatsenko
8b954eecbd SERVER-65772: Use consistent endinaness when (de)serializing during spilling in hash lookup
(cherry picked from commit f549d22363)
2022-04-21 18:32:06 +00:00
Pierlauro Sciarelli
da3fb1b55f SERVER-65802 Return NamespaceExists when dropTarget=false but unsharded target collection exists 2022-04-21 08:50:21 +00:00
Gregory Wlodarek
dfdb498723 SERVER-65849 Run simulate_crash.py hook with test commands enabled
(cherry picked from commit 51b3e37f59)
2022-04-21 01:33:45 +00:00
Jason Chan
8c438c6c73 SERVER-65825 Increase fassertOnLockTimeoutForStepUpDown default timeout to 30 seconds
(cherry picked from commit 7001f53ea5)
2022-04-20 23:30:24 +00:00
David Storch
80c7f100d9 SERVER-65477 Allow plan_cache_replanning.js to run with the SBE plan cache enabled
(cherry picked from commit 717d8209e0)
2022-04-20 18:58:25 +00:00
Jason Zhang
ec279adb4b SERVER-64793 Make exhaustiveFind asynchronous
(cherry picked from commit 06625aa0a8)
2022-04-20 18:05:45 +00:00
Jack Mulrow
db1f183c4e SERVER-61418 Use majority write concern for commit retries in transaction API
(cherry picked from commit c7c2fe1556)
2022-04-20 17:41:29 +00:00
Svilen Mihaylov
cd0f6dfc95 SERVER-65653 Fix expected output of optimizertest/FilterIndexingVariable under macos 2022-04-20 16:48:03 +00:00
David Storch
4ba6b85fcf SERVER-65083 Fix SBE plan cache index visibility bug
(cherry picked from commit 58219cc812)
2022-04-20 15:39:53 +00:00
Richard Samuels
adfd03d5eb SERVER-62992 Don't validate resmoke.ini and install_dir when using subcommands other than run
(cherry picked from commit a4aa57a45b)
2022-04-20 15:16:36 +00:00
Cheahuychou Mao
20ee2db68f SERVER-65344 findAndModify pre/post image noop oplog entry forged by the stage should have the same statement id as the CRUD oplog entry it corresponds to
(cherry picked from commit 38973eaf39)
2022-04-20 14:46:03 +00:00
Gregory Wlodarek
8e60f3488f SERVER-65576 Improve time-series index build performance on non-measurement indexes
(cherry picked from commit df2472d339)
2022-04-20 12:58:11 +00:00
Nicholas Zolnierz
92f1a8ecff SERVER-65654 Avoid using shorthand function notation in drop_index_during_lookup.js
(cherry picked from commit 8ad97ab6e1)
2022-04-20 12:11:47 +00:00
Tommaso Tocci
3c5383d382 SERVER-65536 Relax constraints on numer of records in ShardsvrGetStatsForBalancingCmd
(cherry picked from commit 170f9451a7)
2022-04-20 08:30:05 +00:00
Sanika Phanse
c8dea9f922 SERVER-65635 Tests running large txns do not have correct oplog entry sizes
(cherry picked from commit 6d5c93d1ad)
2022-04-19 19:10:04 +00:00
Sanika Phanse
e5bd4972ce SERVER-65048 Support retryable writes in internal_transactions_test_command
(cherry picked from commit e2ae4c71e1)
2022-04-19 18:47:05 +00:00
Ryan Egesdahl
2fabc0cc49 SERVER-65037 Add missing large_distro_name for ASAN builds on RHEL 8.0
(cherry picked from commit de94da75ce)
2022-04-19 16:45:11 +00:00
Sanika Phanse
8db6c3a296 SERVER-65450 Retry WCOS findAndModify commands in resharding_update_shard_key_in_retryable_writes.js on transient errors.
(cherry picked from commit ff625342a1)
2022-04-19 16:21:02 +00:00
Gregory Wlodarek
d53eab0463 SERVER-65655 Skip reinitializing TicketHolders in reinitializeStorageEngine() 2022-04-19 14:27:56 +00:00
Henrik Edin
8c78c8d7f3 SERVER-65499 Fix storing int64 max as int128 in BSONColumnBuilder
Correctly detect that this value is out-of-range for storage in Simple8b

(cherry picked from commit 201844bf23)
2022-04-19 14:03:26 +00:00
Jordi Olivares Provencio
a7156578d9 SERVER-65542 Fix compilation error in Windows
(cherry picked from commit fdc5173d73)
2022-04-19 13:17:34 +00:00
Jordi Olivares Provencio
bd89da11e0 SERVER-65542 Fix ticket resize
(cherry picked from commit 1cb9c79cdf)
2022-04-19 13:17:34 +00:00
Irina Yatsenko
496a3233aa SERVER-65686 split sbe_query_stages lib out of sbe_query
(cherry picked from commit 5689f05f30)
2022-04-19 01:27:39 +00:00
Yoonsoo Kim
69796a5d7a SERVER-65707 Remove FCV-gating for $lookup pushdown 2022-04-18 23:32:39 +00:00
Irina Yatsenko
35eccb21e8 SERVER-65265 Track memory for unbounded accumulators in SBE
(cherry picked from commit 668b505cbd)
2022-04-18 22:02:58 +00:00
Cheahuychou Mao
a234a2a763 SERVER-65698 Add uses_transactions tag to all internal transaction tests
(cherry picked from commit 09925a53f8)
2022-04-18 16:12:56 +00:00
Cheahuychou Mao
0b8c3267a6 SERVER-65505 Make the gdb pretty printers for Session/TransactionParticipant work with the latest version of the SessionCatalog
(cherry picked from commit 53eaaa11e4)
2022-04-18 16:12:56 +00:00
Cheahuychou Mao
845602af9c SERVER-62479 Reap sessions for the same retryable write atomically
(cherry picked from commit 87393ce9bc)
2022-04-18 16:12:56 +00:00
Benety Goh
7dec3cd8f8 SERVER-65704 always check array compression in test-only BSONColumn validation hook
(cherry picked from commit 941d7d65f2)
2022-04-18 15:48:24 +00:00
Mikhail Shchatko
b2236e586c SERVER-65718 Fix mypy error
(cherry picked from commit f75812f03d)
2022-04-18 15:22:21 +00:00
Charlie Swanson
17165df907 SERVER-65701 Avoid running expr.js in multiversion suites 2022-04-15 22:43:07 +00:00
Zakhar Kleyman
018d4b205c SERVER-50564 Remove Amazon Linux (v1) packages 2022-04-15 21:42:19 +00:00
Mickey. J Winters
373bf08581 SERVER-65676 prevent ChangeStreamOptions cluster parameter no passthrough tests from running on no journal variant
(cherry-picked from commit 5b627beab7)
2022-04-15 19:06:06 +00:00
Ryan Egesdahl
7bf944e31d SERVER-65037 Move TSAN builder to RHEL 8.0
(cherry picked from commit 8b57a45b80)
2022-04-15 17:29:41 +00:00
Ryan Egesdahl
4591c76bb3 SERVER-65037 Migrate experimental and test config builders to RHEL80
(cherry picked from commit 393a4f9e35)
2022-04-15 17:29:41 +00:00
Cheahuychou Mao
04301e5efb SERVER-65661 InternalTransactionReshardingTest and InternalTransactionChunkMigrationTest don't always cause transactions to abort with prepare as configured
(cherry picked from commit dd0fe8486e)
2022-04-15 14:46:28 +00:00
Cheahuychou Mao
568d1bc2aa SERVER-65642 Disable internal transactions tests that involve restarts on the inMemory variants
(cherry picked from commit 3e14ad707a)
2022-04-15 14:45:18 +00:00
Charlie Swanson
6dd843ec01 SERVER-64480 Enable multiple SEARCH_META usages
Includes cherry-pick of SERVER-65689 to fix the build.
2022-04-15 14:21:38 +00:00
Jon Streets
2fa1a6ae1b SERVER-65685 update filename suffix for 6.0 2022-04-15 13:57:49 +00:00
Pierlauro Sciarelli
2fd48fab86 SERVER-65328 MigrationSourceManager must reject bounds with outdated shard key patterns
(cherry picked from commit 1d3a714051)
2022-04-15 08:17:25 +00:00
Gregory Noma
ad3b2e8eca SERVER-65545 Delegate ClockSourceMock to ServiceContextMongoDTest
(cherry picked from commit 576ea084ea)
2022-04-15 01:50:45 +00:00
David Storch
4221d7b10b SERVER-65681 Tag set_cluster_parameter_replset.js with "requires_persistence"
(cherry picked from commit fb9cf156cf)
2022-04-14 23:31:28 +00:00
Gregory Noma
2029052d6a SERVER-65652 Delegate TickSourceMock to ServiceContextMongoDTest
(cherry picked from commit 61f8ab6757)
2022-04-14 20:51:10 +00:00
Kaloian Manassiev
017d4d5d43 SERVER-65491 Fix broken JS tests that query for shardVersion match
(cherry picked from commit 5d5ee59116)
2022-04-14 15:23:29 +00:00
Mihai Andrei
1a04db6bf5 SERVER-65338 Runtime configurable query knob to disable SBE $lookup and $group
Co-authored-by: Ethan Zhang <ethan.zhang@mongodb.com>
    (cherry picked from commit 58fc2711d0)
2022-04-14 14:31:57 +00:00
Jon Streets
1e00adedd5 SERVER-64841 remove all feature flag variants from sys-perf 2022-04-14 13:46:44 +00:00
Robert Guo
87a5b5494b SERVER-64883 routine changes for branching 2022-04-13 15:26:46 -04:00
Robert Guo
eda485be24 SERVER-64883 add required variants to the release branch 2022-04-13 15:16:54 -04:00
1150 changed files with 36516 additions and 17774 deletions

View File

@@ -9,6 +9,10 @@ inherit = false
# D212 - Multi-line docstring summary should start at the first line
# D213 - Multi-line docstring summary should start at the second line
# D301 - Use r""" if any backslashes in a docstring
ignore = D105,D202,D203,D212,D213,D301
# D401 - First line should be in imperative mood
# D407 - Missing dashed underline after section
# D413 - Missing blank line after last section
# D415 - First line should end with a period, question mark, or exclamation point
ignore = D105,D202,D203,D212,D213,D301,D401,D407,D413,D415
# Do not run on buildscripts/tests/
match = ^((?!buildscripts[\\\/]tests[\\\/]).)*$

View File

@@ -90,3 +90,4 @@ Welcome to MongoDB!
October 16, 2018, including patch fixes for prior versions, are published
under the [Server Side Public License (SSPL) v1](LICENSE-Community.txt).
See individual files for details.

View File

@@ -2,7 +2,6 @@
import atexit
import copy
import datetime
import errno
import json
import os
@@ -962,6 +961,11 @@ env_vars.Add('MSVC_VERSION',
help='Sets the version of Visual C++ to use (e.g. 14.2 for VS2019, 14.3 for VS2022)',
default="14.3")
env_vars.Add('NINJA_BUILDDIR',
help="Location for shared Ninja state",
default="$BUILD_DIR/ninja",
)
env_vars.Add('NINJA_PREFIX',
default="build",
help="""A prefix to add to the beginning of generated ninja
@@ -1207,7 +1211,6 @@ envDict = dict(BUILD_ROOT=buildDir,
LIBDEPS_TAG_EXPANSIONS=[],
)
# By default, we will get the normal SCons tool search. But if the
# user has opted into the next gen tools, add our experimental tool
# directory into the default toolpath, ahead of whatever is already in
@@ -3889,6 +3892,71 @@ def doConfigure(myenv):
myenv = conf.Finish()
# Our build generally assumes that we have C11-compliant libc headers for
# C++ source. On most systems, that will be the case. However, on systems
# using glibc older than 2.18 (or other libc implementations that have
# stubbornly refused to update), we need to add some preprocessor defines.
#
# See: https://sourceware.org/bugzilla/show_bug.cgi?id=15366
#
# These headers are only fully standards-compliant on POSIX platforms. Windows
# in particular doesn't implement inttypes.h
if env.TargetOSIs('posix'):
def NeedStdCLimitMacros(context):
test_body="""
#undef __STDC_LIMIT_MACROS
#include <stdint.h>
#if defined(INT64_MAX)
# error
#endif
"""
context.Message('Checking whether to define __STDC_LIMIT_MACROS... ')
ret = context.TryCompile(textwrap.dedent(test_body), '.cpp')
context.Result(ret)
return ret
def NeedStdCConstantMacros(context):
test_body="""
#undef __STDC_CONSTANT_MACROS
#include <stdint.h>
#if defined(INTMAX_C)
# error
#endif
"""
context.Message('Checking whether to define __STDC_CONSTANT_MACROS... ')
ret = context.TryCompile(textwrap.dedent(test_body), '.cpp')
context.Result(ret)
return ret
def NeedStdCFormatMacros(context):
test_body="""
#undef __STDC_FORMAT_MACROS
#include <inttypes.h>
#if defined(PRIx64)
# error
#endif
"""
context.Message('Checking whether to define __STDC_FORMAT_MACROS... ')
ret = context.TryCompile(textwrap.dedent(test_body), '.cpp')
context.Result(ret)
return ret
conf = Configure(myenv, help=False, custom_tests = {
'NeedStdCLimitMacros': NeedStdCLimitMacros,
'NeedStdCConstantMacros': NeedStdCConstantMacros,
'NeedStdCFormatMacros': NeedStdCFormatMacros,
})
conf.env.AppendUnique(
CPPDEFINES=[
'__STDC_LIMIT_MACROS' if conf.NeedStdCLimitMacros() else '',
'__STDC_CONSTANT_MACROS' if conf.NeedStdCConstantMacros() else '',
'__STDC_FORMAT_MACROS' if conf.NeedStdCFormatMacros() else '',
]
)
myenv = conf.Finish()
# We set this with GCC on x86 platforms to work around
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43052
if myenv.ToolchainIs('gcc') and (env['TARGET_ARCH'] in ['i386', 'x86_64']):
@@ -4647,7 +4715,7 @@ if get_option('ninja') != 'disabled':
env.FatalError("Use of ccache is mandatory with --ninja and icecream older than 1.2. You are running {}.".format(env['ICECREAM_VERSION']))
ninja_builder = Tool("ninja")
env["NINJA_BUILDDIR"] = env.Dir("$BUILD_DIR/ninja")
env["NINJA_BUILDDIR"] = env.Dir("$NINJA_BUILDDIR")
ninja_builder.generate(env)
ninjaConf = Configure(env, help=False, custom_tests = {
@@ -4951,15 +5019,15 @@ env.AddPackageNameAlias(
)
env.AddPackageNameAlias(
component="shell",
component="jstestshell",
role="runtime",
name="mongodb-shell",
name="mongodb-jstestshell",
)
env.AddPackageNameAlias(
component="shell",
component="jstestshell",
role="debug",
name="mongodb-shell-debugsymbols",
name="mongodb-jstestshell-debugsymbols",
)
env.AddPackageNameAlias(

View File

@@ -287,7 +287,9 @@ class VersionInfo:
self.production_version = True
# Abseil has an empty string for one version
if self.ver_str == "":
# Abseil thinks "~" is character to use in versions
# Geary thinks "+" is character to use in versions
if self.ver_str == "" or "~" in self.ver_str or "+" in self.ver_str:
self.production_version = False
return
@@ -570,7 +572,7 @@ curl --retry 5 -s -L https://detect.synopsys.com/detect.sh | bash -s -- --black
""".encode())
fp.flush()
subprocess.call(["/bin/sh", fp.name])
subprocess.check_call(["/bin/sh", fp.name])
def _scan_cmd_args(args):

View File

@@ -18,7 +18,7 @@ from buildscripts.resmokelib import utils # pylint: disable=wrong-import-positi
def main():
"""Main."""
"""Collect system resources."""
usage = "usage: %prog [options]"
parser = optparse.OptionParser(description=__doc__, usage=usage)
parser.add_option(

View File

@@ -239,14 +239,15 @@ def read_error_codes(src_root='src/mongo'):
def replace_bad_codes(errors, next_code_generator): # pylint: disable=too-many-locals
"""Modify C++ source files to replace invalid assertion codes.
"""
Modify C++ source files to replace invalid assertion codes.
For now, we only modify zero codes.
Args:
errors: list of AssertLocation
next_code_generator: generator -> int, next non-conflicting assertion code
:param errors: list of AssertLocation
:param next_code_generator: generator -> int, next non-conflicting assertion code
"""
zero_errors = [e for e in errors if int(e.code) == 0]
skip_errors = [e for e in errors if int(e.code) != 0]
@@ -296,7 +297,7 @@ def coerce_to_number(ticket_value):
def main():
"""Main."""
"""Validate error codes."""
parser = OptionParser(description=__doc__.strip())
parser.add_option("--fix", dest="replace", action="store_true", default=False,
help="Fix zero codes in source files [default: %default]")

View File

@@ -1,14 +1,15 @@
#!/usr/bin/env python3
"""Determine the timeout value a task should use in evergreen."""
from __future__ import annotations
import argparse
import math
import os
import shlex
import sys
from datetime import datetime, timedelta
from pathlib import Path
from typing import Dict, List, Optional
import shlex
import inject
import structlog
@@ -16,8 +17,8 @@ import yaml
from pydantic import BaseModel
from evergreen import EvergreenApi, RetryingEvergreenApi
from buildscripts.task_generation.resmoke_proxy import ResmokeProxyService
from buildscripts.ciconfig.evergreen import (EvergreenProjectConfig, parse_evergreen_file)
from buildscripts.task_generation.resmoke_proxy import ResmokeProxyService
from buildscripts.timeouts.timeout_service import (TimeoutParams, TimeoutService, TimeoutSettings)
from buildscripts.util.cmdutils import enable_logging
from buildscripts.util.taskname import determine_task_base_name
@@ -56,6 +57,18 @@ class TimeoutOverride(BaseModel):
exec_timeout: Optional[int] = None
idle_timeout: Optional[int] = None
@classmethod
def from_seconds(cls, task: str, exec_timeout_secs: Optional[float],
idle_timeout_secs: Optional[float]) -> TimeoutOverride:
"""Create an instance of an override from seconds."""
exec_timeout = exec_timeout_secs / 60 if exec_timeout_secs else None
idle_timeout = idle_timeout_secs / 60 if idle_timeout_secs else None
return cls(
task=task,
exec_timeout=exec_timeout,
idle_timeout=idle_timeout,
)
def get_exec_timeout(self) -> Optional[timedelta]:
"""Get a timedelta of the exec timeout to use."""
if self.exec_timeout is not None:
@@ -173,14 +186,16 @@ class TaskTimeoutOrchestrator:
:param timeout_service: Service for calculating historic timeouts.
:param timeout_overrides: Timeout overrides for specific tasks.
:param evg_project_config: Evergreen project configuration.
"""
self.timeout_service = timeout_service
self.timeout_overrides = timeout_overrides
self.evg_project_config = evg_project_config
def determine_exec_timeout(
self, task_name: str, variant: str, idle_timeout: Optional[timedelta] = None,
exec_timeout: Optional[timedelta] = None, evg_alias: str = "") -> timedelta:
def determine_exec_timeout(self, task_name: str, variant: str,
idle_timeout: Optional[timedelta] = None,
exec_timeout: Optional[timedelta] = None, evg_alias: str = "",
historic_timeout: Optional[timedelta] = None) -> timedelta:
"""
Determine what exec timeout should be used.
@@ -189,9 +204,12 @@ class TaskTimeoutOrchestrator:
:param idle_timeout: Idle timeout if specified.
:param exec_timeout: Override to use for exec_timeout or 0 if no override.
:param evg_alias: Evergreen alias running the task.
:param historic_timeout: Timeout determined by looking at previous task executions.
:return: Exec timeout to use for running task.
"""
determined_timeout = DEFAULT_NON_REQUIRED_BUILD_TIMEOUT
if historic_timeout is not None:
determined_timeout = historic_timeout
override = self.timeout_overrides.lookup_exec_override(variant, task_name)
@@ -200,25 +218,26 @@ class TaskTimeoutOrchestrator:
exec_timeout_secs=exec_timeout.total_seconds())
determined_timeout = exec_timeout
elif override is not None:
LOGGER.info("Overriding configured timeout", exec_timeout_secs=override.total_seconds())
determined_timeout = override
elif task_name == UNITTEST_TASK and override is None:
LOGGER.info("Overriding unittest timeout",
exec_timeout_secs=UNITTESTS_TIMEOUT.total_seconds())
determined_timeout = UNITTESTS_TIMEOUT
elif _is_required_build_variant(
variant) and determined_timeout > DEFAULT_REQUIRED_BUILD_TIMEOUT:
LOGGER.info("Overriding required-builder timeout",
exec_timeout_secs=DEFAULT_REQUIRED_BUILD_TIMEOUT.total_seconds())
determined_timeout = DEFAULT_REQUIRED_BUILD_TIMEOUT
elif evg_alias == COMMIT_QUEUE_ALIAS:
LOGGER.info("Overriding commit-queue timeout",
exec_timeout_secs=COMMIT_QUEUE_TIMEOUT.total_seconds())
determined_timeout = COMMIT_QUEUE_TIMEOUT
elif override is not None:
LOGGER.info("Overriding configured timeout", exec_timeout_secs=override.total_seconds())
determined_timeout = override
elif _is_required_build_variant(variant):
LOGGER.info("Overriding required-builder timeout",
exec_timeout_secs=DEFAULT_REQUIRED_BUILD_TIMEOUT.total_seconds())
determined_timeout = DEFAULT_REQUIRED_BUILD_TIMEOUT
# The timeout needs to be at least as large as the idle timeout.
if idle_timeout and determined_timeout.total_seconds() < idle_timeout.total_seconds():
LOGGER.info("Making exec timeout as large as idle timeout",
@@ -228,16 +247,19 @@ class TaskTimeoutOrchestrator:
return determined_timeout
def determine_idle_timeout(self, task_name: str, variant: str,
idle_timeout: Optional[timedelta] = None) -> Optional[timedelta]:
idle_timeout: Optional[timedelta] = None,
historic_timeout: Optional[timedelta] = None) -> Optional[timedelta]:
"""
Determine what idle timeout should be used.
:param task_name: Name of task being run.
:param variant: Name of build variant being run.
:param idle_timeout: Override to use for idle_timeout.
:param historic_timeout: Timeout determined by looking at previous task executions.
:return: Idle timeout to use for running task.
"""
determined_timeout = None
determined_timeout = historic_timeout
override = self.timeout_overrides.lookup_idle_override(variant, task_name)
if idle_timeout and idle_timeout.total_seconds() != 0:
@@ -252,7 +274,7 @@ class TaskTimeoutOrchestrator:
return determined_timeout
def determine_historic_timeout(self, task: str, variant: str, suite_name: str,
exec_timeout_factor: Optional[float]) -> Optional[timedelta]:
exec_timeout_factor: Optional[float]) -> TimeoutOverride:
"""
Calculate the timeout based on historic test results.
@@ -262,7 +284,7 @@ class TaskTimeoutOrchestrator:
:param exec_timeout_factor: Scaling factor to use when determining timeout.
"""
if suite_name in IGNORED_SUITES:
return None
return TimeoutOverride(task=task, exec_timeout=None, idle_timeout=None)
timeout_params = TimeoutParams(
evg_project="mongodb-mongo-master",
@@ -275,10 +297,12 @@ class TaskTimeoutOrchestrator:
if timeout_estimate and timeout_estimate.is_specified():
exec_timeout = timeout_estimate.calculate_task_timeout(
repeat_factor=1, scaling_factor=exec_timeout_factor)
if exec_timeout is not None:
LOGGER.info("Using historic based timeout", exec_timeout_secs=exec_timeout)
return timedelta(seconds=exec_timeout)
return None
idle_timeout = timeout_estimate.calculate_test_timeout(repeat_factor=1)
if exec_timeout is not None or idle_timeout is not None:
LOGGER.info("Getting historic based timeout", exec_timeout_secs=exec_timeout,
idle_timeout_secs=idle_timeout)
return TimeoutOverride.from_seconds(task, exec_timeout, idle_timeout)
return TimeoutOverride(task=task, exec_timeout=None, idle_timeout=None)
def is_build_variant_asan(self, build_variant: str) -> bool:
"""
@@ -305,14 +329,13 @@ class TaskTimeoutOrchestrator:
:param suite_name: Name of evergreen suite being run.
:param exec_timeout_factor: Scaling factor to use when determining timeout.
"""
idle_timeout = self.determine_idle_timeout(task, variant, cli_idle_timeout)
exec_timeout = self.determine_exec_timeout(task, variant, idle_timeout, cli_exec_timeout,
evg_alias)
historic_timeout = self.determine_historic_timeout(task, variant, suite_name,
exec_timeout_factor)
if historic_timeout:
exec_timeout = historic_timeout
idle_timeout = self.determine_idle_timeout(task, variant, cli_idle_timeout,
historic_timeout.get_idle_timeout())
exec_timeout = self.determine_exec_timeout(task, variant, idle_timeout, cli_exec_timeout,
evg_alias, historic_timeout.get_exec_timeout())
output_timeout(exec_timeout, idle_timeout, outfile)

View File

@@ -318,75 +318,100 @@ class DumpMongoDSessionCatalog(gdb.Command):
else:
lsids_to_print = [str(s['first']['_id']) for s in session_kv_pairs]
for sess_kv in session_kv_pairs:
# The Session is stored inside the SessionRuntimeInfo object.
session_runtime_info = get_unique_ptr(sess_kv['second']).dereference() # pylint: disable=undefined-variable
session = session_runtime_info['session']
# TODO: Add a custom pretty printer for LogicalSessionId.
lsid_str = str(session['_sessionId']['_id'])
for session_kv in session_kv_pairs:
# The Session objects are stored inside the SessionRuntimeInfo object.
session_runtime_info = get_unique_ptr(session_kv['second']).dereference() # pylint: disable=undefined-variable
parent_session = session_runtime_info['parentSession']
child_sessions = absl_get_nodes(session_runtime_info['childSessions']) # pylint: disable=undefined-variable
lsid = str(parent_session['_sessionId']['_id'])
# If we are only interested in a specific session, then we print out the entire Session
# object, to aid more detailed debugging.
if lsid_str == lsid_to_find:
print("SessionId", "=", lsid_str)
print(session)
# objects, to aid more detailed debugging.
if lsid == lsid_to_find:
self.dump_session_runtime_info(session_runtime_info)
print(parent_session)
for child_session_kv in child_sessions:
child_session = child_session_kv['second']
print(child_session)
# Terminate if this is the only session we care about.
break
# Only print info for the necessary sessions.
if lsid_str not in lsids_to_print:
if lsid not in lsids_to_print:
continue
# If we are printing multiple sessions, we only print the most interesting fields from
# the Session object for the sake of efficiency. We print the session id string first so
# the session is easily identifiable.
print("Session (" + str(session.address) + "):")
print("SessionId", "=", lsid_str)
session_fields_to_print = ['_checkoutOpCtx', '_killsRequested']
for field in session_fields_to_print:
# If we are printing multiple sessions, we only print the most interesting fields for
# each Session object for the sake of efficiency.
self.dump_session_runtime_info(session_runtime_info)
self.dump_session(parent_session)
for child_session_kv in child_sessions:
child_session = child_session_kv['second']
self.dump_session(child_session)
@staticmethod
def dump_session_runtime_info(session_runtime_info):
"""Dump the session runtime info."""
parent_session = session_runtime_info['parentSession']
# TODO: Add a custom pretty printer for LogicalSessionId.
lsid = str(parent_session['_sessionId']['_id'])[1:-1]
print("SessionId =", lsid)
fields_to_print = ['checkoutOpCtx', 'killsRequested']
for field in fields_to_print:
# Skip fields that aren't found on the object.
if field in get_field_names(session_runtime_info):
print(field, "=", session_runtime_info[field])
else:
print("Could not find field '%s' on the SessionRuntimeInfo object." % field)
print("")
@staticmethod
def dump_session(session):
"""Dump the session."""
print("Session (" + str(session.address) + "):")
fields_to_print = ['_sessionId', '_numWaitingToCheckOut']
for field in fields_to_print:
# Skip fields that aren't found on the object.
if field in get_field_names(session):
print(field, "=", session[field])
else:
print("Could not find field '%s' on the SessionRuntimeInfo object." % field)
# Print the information from a TransactionParticipant if a session has one.
txn_part_dec = get_decoration(session, "TransactionParticipant")
if txn_part_dec:
# Only print the most interesting fields for debugging transactions issues. The
# TransactionParticipant class encapsulates internal state in two distinct
# structures: a 'PrivateState' type (stored in private field '_p') and an
# 'ObservableState' type (stored in private field '_o'). The information we care
# about here is all contained inside the 'ObservableState', so we extract fields
# from that object. If, in the future, we want to print fields from the
# 'PrivateState' object, we can inspect the TransactionParticipant's '_p' field.
txn_part = txn_part_dec[1]
txn_part_observable_state = txn_part['_o']
fields_to_print = ['txnState', 'activeTxnNumberAndRetryCounter']
print("TransactionParticipant (" + str(txn_part.address) + "):")
for field in fields_to_print:
# Skip fields that aren't found on the object.
if field in get_field_names(session):
print(field, "=", session[field])
if field in get_field_names(txn_part_observable_state):
print(field, "=", txn_part_observable_state[field])
else:
print("Could not find field '%s' on the Session object." % field)
print("Could not find field '%s' on the TransactionParticipant" % field)
# Print the information from a TransactionParticipant if a session has one. Otherwise
# we just print the session's id and nothing else.
txn_part_dec = get_decoration(session, "TransactionParticipant")
if txn_part_dec:
# Only print the most interesting fields for debugging transactions issues. The
# TransactionParticipant class encapsulates internal state in two distinct
# structures: a 'PrivateState' type (stored in private field '_p') and an
# 'ObservableState' type (stored in private field '_o'). The information we care
# about here is all contained inside the 'ObservableState', so we extract fields
# from that object. If, in the future, we want to print fields from the
# 'PrivateState' object, we can inspect the TransactionParticipant's '_p' field.
txn_part = txn_part_dec[1]
txn_part_observable_state = txn_part['_o']
fields_to_print = ['txnState', 'activeTxnNumber']
print("TransactionParticipant (" + str(txn_part.address) + "):")
for field in fields_to_print:
# Skip fields that aren't found on the object.
if field in get_field_names(txn_part_observable_state):
print(field, "=", txn_part_observable_state[field])
else:
print("Could not find field '%s' on the TransactionParticipant" % field)
# The 'txnResourceStash' field is a boost::optional so we unpack it manually if it
# is non-empty. We are only interested in its Locker object for now. TODO: Load the
# boost pretty printers so the object will be printed clearly by default, without
# the need for special unpacking.
val = get_boost_optional(txn_part_observable_state['txnResourceStash'])
if val:
locker_addr = get_unique_ptr(val["_locker"]) # pylint: disable=undefined-variable
locker_obj = locker_addr.dereference().cast(
gdb.lookup_type("mongo::LockerImpl"))
print('txnResourceStash._locker', "@", locker_addr)
print("txnResourceStash._locker._id", "=", locker_obj["_id"])
else:
print('txnResourceStash', "=", None)
# Separate sessions by a newline.
print("")
# The 'txnResourceStash' field is a boost::optional so we unpack it manually if it
# is non-empty. We are only interested in its Locker object for now. TODO: Load the
# boost pretty printers so the object will be printed clearly by default, without
# the need for special unpacking.
val = get_boost_optional(txn_part_observable_state['txnResourceStash'])
if val:
locker_addr = get_unique_ptr(val["_locker"]) # pylint: disable=undefined-variable
locker_obj = locker_addr.dereference().cast(gdb.lookup_type("mongo::LockerImpl"))
print('txnResourceStash._locker', "@", locker_addr)
print("txnResourceStash._locker._id", "=", locker_obj["_id"])
else:
print('txnResourceStash', "=", None)
print("")
# Register command
@@ -536,39 +561,51 @@ class MongoDBDumpRecoveryUnits(gdb.Command):
# Dump stashed recovery unit info for each session in a mongod process
for session_kv in get_session_kv_pairs():
session_runtime_info = get_unique_ptr(session_kv["second"]).dereference() # pylint: disable=undefined-variable
session = session_runtime_info["session"]
# The Session objects are stored inside the SessionRuntimeInfo object.
session_runtime_info = get_unique_ptr(session_kv['second']).dereference() # pylint: disable=undefined-variable
parent_session = session_runtime_info['parentSession']
child_sessions = absl_get_nodes(session_runtime_info['childSessions']) # pylint: disable=undefined-variable
# Prepare structured output doc
session_lsid = str(session["_sessionId"]["_id"])[1:-1]
txn_participant_dec = get_decoration(session, "TransactionParticipant")
output_doc = {"session": session_lsid, "txnResourceStash": "0x0"}
recovery_unit_handle = None
recovery_unit = None
if txn_participant_dec:
txn_participant_observable_state = txn_participant_dec[1]["_o"]
txn_resource_stash = get_boost_optional(
txn_participant_observable_state["txnResourceStash"])
if txn_resource_stash:
output_doc["txnResourceStash"] = str(txn_resource_stash.address)
recovery_unit_handle = get_unique_ptr(txn_resource_stash["_recoveryUnit"]) # pylint: disable=undefined-variable
# By default, cast the recovery unit as "mongo::WiredTigerRecoveryUnit"
recovery_unit = recovery_unit_handle.dereference().cast(
gdb.lookup_type(recovery_unit_impl_type))
output_doc["recoveryUnit"] = hex(recovery_unit_handle) if recovery_unit else "0x0"
wt_session = get_wt_session(recovery_unit, recovery_unit_impl_type)
if wt_session:
output_doc["WT_SESSION"] = hex(wt_session)
print(json.dumps(output_doc))
if recovery_unit:
print(recovery_unit)
MongoDBDumpRecoveryUnits.dump_session(parent_session, recovery_unit_impl_type)
for child_session_kv in child_sessions:
child_session = child_session_kv['second']
MongoDBDumpRecoveryUnits.dump_session(child_session, recovery_unit_impl_type)
if enabled_at_start:
gdb.execute("set print static-members on")
@staticmethod
def dump_session(session, recovery_unit_impl_type):
"""Dump the session."""
# Prepare structured output doc
lsid = session["_sessionId"]
output_doc = {"session": str(lsid["_id"])[1:-1], "txnResourceStash": "0x0"}
txn_participant_dec = get_decoration(session, "TransactionParticipant")
recovery_unit_handle = None
recovery_unit = None
if txn_participant_dec:
txn_participant_observable_state = txn_participant_dec[1]["_o"]
txn_resource_stash = get_boost_optional(
txn_participant_observable_state["txnResourceStash"])
if txn_resource_stash:
output_doc["txnResourceStash"] = str(txn_resource_stash.address)
recovery_unit_handle = get_unique_ptr(txn_resource_stash["_recoveryUnit"]) # pylint: disable=undefined-variable
# By default, cast the recovery unit as "mongo::WiredTigerRecoveryUnit"
recovery_unit = recovery_unit_handle.dereference().cast(
gdb.lookup_type(recovery_unit_impl_type))
output_doc["recoveryUnit"] = hex(recovery_unit_handle) if recovery_unit else "0x0"
wt_session = get_wt_session(recovery_unit, recovery_unit_impl_type)
if wt_session:
output_doc["WT_SESSION"] = hex(wt_session)
print(json.dumps(output_doc))
print(lsid)
if recovery_unit:
print(recovery_unit)
# Register command
MongoDBDumpRecoveryUnits()
@@ -726,7 +763,7 @@ class MongoDBJavaScriptStack(gdb.Command):
"""Print the JavaScript stack from a MongoDB process."""
# Looking to test your changes to this? Really easy!
# 1. install-core to build the mongo shell binary (mongo)
# 1. install-jstestshell to build the mongo shell binary (mongo)
# 2. launch it: ./path/to/bin/mongo --nodb
# 3. in the shell, run: sleep(99999999999). (do not use --eval)
# 4. ps ax | grep nodb to find the PID

View File

@@ -579,6 +579,7 @@ def find_match_brackets(search, opening='<', closing='>'):
Example:
'Foo<T>::iterator<U>''
returns 5
"""
index = search.find(opening)
if index == -1:

View File

@@ -61,8 +61,8 @@ def generate_version_expansions():
raise ValueError("Unable to parse version from stdin and no version.json provided")
if version_parts[0]:
expansions["suffix"] = "latest"
expansions["src_suffix"] = "latest"
expansions["suffix"] = "v6.0-latest"
expansions["src_suffix"] = "v6.0-latest"
expansions["is_release"] = "false"
else:
expansions["suffix"] = version_line

View File

@@ -61,8 +61,8 @@ def generate_version_expansions():
raise ValueError("Unable to parse version from stdin and no version.json provided")
if version_parts[0]:
expansions["suffix"] = "latest"
expansions["src_suffix"] = "latest"
expansions["suffix"] = "v6.0-latest"
expansions["src_suffix"] = "v6.0-latest"
expansions["is_release"] = "false"
else:
expansions["suffix"] = version_line

View File

@@ -178,6 +178,7 @@ def main():
def __init__(self):
self.INSTALL_DIR = args.install_dir # pylint: disable=invalid-name
self.command = ""
# pylint: disable=protected-access
configure_resmoke._update_config_vars(FakeArgs())

View File

@@ -72,6 +72,7 @@ _BINDATA_SUBTYPE = {
# },
"uuid": {'scalar': True, 'bindata_enum': 'newUUID'},
"md5": {'scalar': True, 'bindata_enum': 'MD5Type'},
"encrypt": {'scalar': True, 'bindata_enum': 'Encrypt'},
}

View File

@@ -37,7 +37,6 @@ import inspect
import os
import sys
from typing import List, Union
from yaml import nodes
import yaml
from . import common

View File

@@ -707,7 +707,10 @@ def check_param_or_command_type_recursive(ctxt: IDLCompatibilityContext,
# Check that new variant types are a superset of old variant types.
for old_variant_type in old_variant_types:
for new_variant_type in new_variant_types:
if old_variant_type.name == new_variant_type.name:
# object->object_owned serialize to the same bson type. object_owned->object is
# not always safe so we only limit this special case to object->object_owned.
if (old_variant_type.name == "object" and new_variant_type.name == "object_owned") or \
old_variant_type.name == new_variant_type.name:
# Check that the old and new version of each variant type is also compatible.
old = FieldCompatibility(old_variant_type, old_field.idl_file,
old_field.idl_file_path, old_field.unstable,

View File

@@ -236,6 +236,7 @@ class GitException(Exception):
process_args: a list containing the git command and arguments (includes 'git' as its first
element) that were run, if any.
stderr: the error output of the git command.
"""
def __init__( # pylint: disable=too-many-arguments
@@ -258,6 +259,7 @@ class GitCommandResult(object):
returncode: the return code.
stdout: the output of the command.
stderr: the error output of the command.
"""
def __init__( # pylint: disable=too-many-arguments

View File

@@ -9,7 +9,11 @@ from typing import Any, Callable, List
def parallel_process(items, func):
# type: (List[Any], Callable[[Any], bool]) -> bool
"""Run a set of work items to completion and wait."""
"""
Run a set of work items to completion and wait.
:returns whether all tasks were successful.
"""
try:
cpus = cpu_count()
except NotImplementedError:
@@ -17,20 +21,16 @@ def parallel_process(items, func):
task_queue = queue.Queue() # type: queue.Queue
# Use a list so that worker function will capture this variable
pp_event = threading.Event()
pp_result = [True]
pp_lock = threading.Lock()
has_failure_event = threading.Event()
def worker():
# type: () -> None
"""Worker thread to process work items in parallel."""
while not pp_event.is_set():
while True:
try:
item = task_queue.get_nowait()
except queue.Empty:
# if the queue is empty, exit the worker thread
pp_event.set()
return
try:
@@ -39,13 +39,8 @@ def parallel_process(items, func):
# Tell the queue we finished with the item
task_queue.task_done()
# Return early if we fail, and signal we are done
if not ret:
with pp_lock:
pp_result[0] = False
pp_event.set()
return
has_failure_event.set()
# Enqueue all the work we want to process
for item in items:
@@ -62,10 +57,10 @@ def parallel_process(items, func):
# Wait for the threads to finish
# Loop with a timeout so that we can process Ctrl-C interrupts
while not pp_event.wait(1):
while not queue.Empty:
time.sleep(1)
for thread in threads:
thread.join()
return pp_result[0]
return not has_failure_event.is_set()

View File

@@ -11,7 +11,7 @@ class PyDocstyleLinter(base.LinterBase):
def __init__(self):
# type: () -> None
"""Create a pydocstyle linter."""
super(PyDocstyleLinter, self).__init__("pydocstyle", "2.1.1")
super(PyDocstyleLinter, self).__init__("pydocstyle", "6.1.1")
def get_lint_version_cmd_args(self):
# type: () -> List[str]

View File

@@ -41,21 +41,6 @@ platforms:
instance_type: c6g.medium
transport:
username: ec2-user
- name: debian71-x86-64
driver:
image_id: ami-4b124a22
transport:
username: admin
- name: debian81-x86-64
driver:
image_id: ami-896d85e2
transport:
username: admin
- name: debian92-x86-64
driver:
image_id: ami-71b7750b
transport:
username: admin
- name: debian10-x86-64
driver:
image_id: ami-0dedf6a6502877301

View File

@@ -23,7 +23,7 @@ provisioner:
name: chef_zero
log_level: info
product_name: cinc
product_version: 16.7.61
product_version: 17.9.52
download_url: https://omnitruck.cinc.sh/install.sh
platforms:
@@ -34,7 +34,7 @@ platforms:
username: ec2-user
- name: amazon2-x86-64
driver:
image_id: ami-428aa838
image_id: ami-02013ed1a71752ea7
transport:
username: ec2-user
- name: amazon2-arm64
@@ -53,11 +53,6 @@ platforms:
image_id: ami-896d85e2
transport:
username: admin
- name: debian92-x86-64
driver:
image_id: ami-71b7750b
transport:
username: admin
- name: debian10-x86-64
driver:
image_id: ami-0dedf6a6502877301
@@ -70,7 +65,7 @@ platforms:
username: admin
- name: rhel70-x86-64
driver:
image_id: ami-2051294a
image_id: ami-0051b1b2c5a166c8c
transport:
username: root
- name: rhel80-x86-64

View File

@@ -51,11 +51,21 @@ if platform_family? 'debian'
ENV['DEBIAN_FRONTEND'] = 'noninteractive'
package 'openssl'
# the ubuntu 16.04 image does not have some dependencies installed by default
# the ubuntu image does not have some dependencies installed by default
# and it is required for the install_compass script
execute 'install dependencies' do
command 'apt-get install -y python libsasl2-modules-gssapi-mit'
live_stream true
if node['platform'] == 'ubuntu' and node['platform_version'] == '20.04'
execute 'install dependencies ubuntu 20.04' do
command 'apt-get install -y python3 libsasl2-modules-gssapi-mit'
live_stream true
end
link '/usr/bin/python' do
to '/usr/bin/python3'
end
else
execute 'install dependencies' do
command 'apt-get install -y python libsasl2-modules-gssapi-mit'
live_stream true
end
end
# dpkg returns 1 if dependencies are not satisfied, which they will not be
@@ -82,12 +92,6 @@ if platform_family? 'debian'
command 'apt update && apt -y -f install'
live_stream true
end
execute 'install mongo shell' do
command 'dpkg -i `find . -name "*shell*.deb"`'
live_stream true
cwd homedir
end
end
if platform_family? 'rhel' or platform_family? 'amazon'
@@ -108,12 +112,6 @@ if platform_family? 'rhel' or platform_family? 'amazon'
live_stream true
cwd homedir
end
execute 'install mongo shell' do
command 'yum install -y `find . -name "*shell*.rpm"`'
live_stream true
cwd homedir
end
end
if platform_family? 'suse'
@@ -145,32 +143,4 @@ if platform_family? 'suse'
live_stream true
cwd homedir
end
execute 'install mongo' do
command 'zypper --no-gpg-checks -n install `find . -name "*shell*.rpm"`'
live_stream true
cwd homedir
end
end
inspec_wait = <<HEREDOC
#!/bin/bash -x
ulimit -v unlimited
for i in {1..60}
do
mongo --eval "db.smoke.insert({answer: 42})"
if [ $? -eq 0 ]
then
exit 0
else
echo "sleeping"
sleep 1
fi
done
exit 1
HEREDOC
file '/inspec_wait.sh' do
content inspec_wait
mode '0755'
end

View File

@@ -78,11 +78,6 @@ else
end
end
# wait to make sure mongod is ready
describe command("/inspec_wait.sh") do
its('exit_status') { should eq 0 }
end
############################################################
# This section verifies files, directories, and users
# - files and directories exist and have correct attributes
@@ -199,23 +194,6 @@ ulimits.each do |limit, value|
end
end
############################################################
# This section verifies reads and writes.
# - insert a document into the database
# - verify that findOne() returns a matching document
############################################################
describe command('sh -c "ulimit -v unlimited && mongo --eval \"db.smoke.insert({answer: 42})\""') do
its('exit_status') { should eq 0 }
its('stdout') { should match(/.+WriteResult\({ "nInserted" : 1 }\).+/m) }
end
# read a document from the db
describe command('sh -c "ulimit -v unlimited && mongo --eval \"db.smoke.findOne()\""') do
its('exit_status') { should eq 0 }
its('stdout') { should match(/.+"answer" : 42.+/m) }
end
############################################################
# This section verifies uninstall.
############################################################

View File

@@ -8,3 +8,8 @@
# Disable featureFlagRequireTenantID until all paths pass tenant id to TenantNamespace
# and TenantDatabase constructors.
- featureFlagRequireTenantID
- featureFlagSbePlanCache
# This flag exists to help users in managed environments that upgraded to 6.0 before 6.0.0-rc8 was
# released create the transactions collection index and is only meant to be enabled adhoc, so only
# its targeted tests should enable it.
- featureFlagAlwaysCreateConfigTransactionsPartialIndexOnStepUp

View File

@@ -190,16 +190,6 @@ evergreen_buildvariants:
platform: suse15
architecture: x86_64
- name: debian92
edition: targeted
platform: debian92
architecture: x86_64
- name: enterprise-debian92-64
edition: enterprise
platform: debian92
architecture: x86_64
- name: debian10
edition: targeted
platform: debian10

View File

@@ -3,6 +3,8 @@ test_kind: js_test
selector:
roots:
- jstests/core/**/*.js
- jstests/fle2/**/*.js
- src/mongo/db/modules/*/jstests/fle2/*.js
exclude_files:
# Don't run these tests as transactions can only run on primaries.
- jstests/core/txns/**/*.js

View File

@@ -3,6 +3,8 @@ test_kind: js_test
selector:
roots:
- jstests/core/**/*.js
- jstests/fle2/**/*.js
- src/mongo/db/modules/*/jstests/fle2/*.js
exclude_files:
# These tests are run in causally_consistent_jscore_txns_passthrough.yml.
- jstests/core/txns/**/*.js

View File

@@ -12,6 +12,8 @@ test_kind: js_test
selector:
roots:
- jstests/core/**/*.js
- jstests/fle2/**/*.js
- src/mongo/db/modules/*/jstests/fle2/*.js
exclude_files:
- jstests/core/txns/**/*.js
# Skip any tests that run with auth explicitly.

View File

@@ -3,6 +3,8 @@ test_kind: js_test
selector:
roots:
- jstests/core/**/*.js
- jstests/fle2/**/*.js
- src/mongo/db/modules/*/jstests/fle2/*.js
exclude_files:
# Only the first command in a transaction allows readConcern and this suite only tests
# non-transaction snapshot reads.

View File

@@ -4,6 +4,8 @@ test_kind: multi_stmt_txn_passthrough
selector:
roots:
- jstests/core/**/*.js
- jstests/fle2/**/*.js
- src/mongo/db/modules/*/jstests/fle2/*.js
exclude_files:
# These tests run in the jscore_txn passthrough suites.
- jstests/core/txns/**/*.js
@@ -147,7 +149,6 @@ selector:
# $listSessions
- jstests/core/list_all_local_sessions.js
- jstests/core/list_all_sessions.js
- jstests/core/list_local_sessions.js
- jstests/core/list_sessions.js
# $collStats

View File

@@ -3,6 +3,9 @@ test_kind: js_test
selector:
roots:
- jstests/change_streams/**/*.js
exclude_files:
# Expects a change stream cursor to be open on each of 2 shards.
- jstests/change_streams/projection_fakes_internal_event.js
exclude_with_any_tags:
##
# The next tags correspond to the special errors thrown by the

View File

@@ -5,6 +5,8 @@ test_kind: js_test
selector:
roots:
- jstests/core/**/*.js
- jstests/fle2/**/*.js
- src/mongo/db/modules/*/jstests/fle2/*.js
exclude_files:
# Assumes the _id index is real.

View File

@@ -23,6 +23,7 @@ selector:
# $lookup and $graphLookup are not supported on sharded collections with transactions.
- jstests/concurrency/fsm_workloads/agg_graph_lookup.js
- jstests/concurrency/fsm_workloads/agg_lookup.js
- jstests/concurrency/fsm_workloads/view_catalog_cycle_lookup.js
# Disabled due to MongoDB restrictions and/or workload restrictions

View File

@@ -23,6 +23,7 @@ selector:
# $lookup and $graphLookup are not supported on sharded collections with transactions.
- jstests/concurrency/fsm_workloads/agg_graph_lookup.js
- jstests/concurrency/fsm_workloads/agg_lookup.js
- jstests/concurrency/fsm_workloads/view_catalog_cycle_lookup.js
# Disabled due to MongoDB restrictions and/or workload restrictions

View File

@@ -23,6 +23,7 @@ selector:
# $lookup and $graphLookup are not supported on sharded collections with transactions.
- jstests/concurrency/fsm_workloads/agg_graph_lookup.js
- jstests/concurrency/fsm_workloads/agg_lookup.js
- jstests/concurrency/fsm_workloads/view_catalog_cycle_lookup.js
# Disabled due to MongoDB restrictions and/or workload restrictions

View File

@@ -28,6 +28,7 @@ selector:
# $lookup and $graphLookup are not supported on sharded collections with transactions.
- jstests/concurrency/fsm_workloads/agg_graph_lookup.js
- jstests/concurrency/fsm_workloads/agg_lookup.js
- jstests/concurrency/fsm_workloads/view_catalog_cycle_lookup.js
# Disabled because MapReduce can lose cursors if the primary goes down during the operation.

View File

@@ -28,6 +28,7 @@ selector:
# $lookup and $graphLookup are not supported on sharded collections with transactions.
- jstests/concurrency/fsm_workloads/agg_graph_lookup.js
- jstests/concurrency/fsm_workloads/agg_lookup.js
- jstests/concurrency/fsm_workloads/view_catalog_cycle_lookup.js
# Disabled because MapReduce can lose cursors if the primary goes down during the operation.

View File

@@ -23,6 +23,7 @@ selector:
# $lookup and $graphLookup are not supported on sharded collections with transactions.
- jstests/concurrency/fsm_workloads/agg_graph_lookup.js
- jstests/concurrency/fsm_workloads/agg_lookup.js
- jstests/concurrency/fsm_workloads/view_catalog_cycle_lookup.js
# Disabled due to MongoDB restrictions and/or workload restrictions
@@ -129,6 +130,12 @@ selector:
# for dbCheck. TODO (SERVER-63951): Remove this exclusion.
- jstests/concurrency/fsm_workloads/create_collection_and_view.js
# This suite runs the RunDBCheckInBackground hook and the dbCheck command generates oplog entries
# but those oplog entries are not supported by resharding.
# TODO (SERVER-66011): Enable internal_transactions_resharding.js in the
# concurrency_sharded_multi_stmt_txn_with_balancer suite
- jstests/concurrency/fsm_workloads/internal_transactions_resharding.js
exclude_with_any_tags:
- assumes_balancer_off

View File

@@ -28,6 +28,7 @@ selector:
# $lookup and $graphLookup are not supported on sharded collections with transactions.
- jstests/concurrency/fsm_workloads/agg_graph_lookup.js
- jstests/concurrency/fsm_workloads/agg_lookup.js
- jstests/concurrency/fsm_workloads/view_catalog_cycle_lookup.js
# Disabled due to MongoDB restrictions and/or workload restrictions

View File

@@ -36,6 +36,8 @@ selector:
# the error response from the op being killed.
- jstests/concurrency/fsm_workloads/multi_statement_transaction_kill_sessions_atomicity_isolation.js
- jstests/concurrency/fsm_workloads/multi_statement_transaction_simple_kill_sessions.js
- jstests/concurrency/fsm_workloads/internal_transactions_setFCV.js
- jstests/concurrency/fsm_workloads/internal_transactions_kill_sessions.js
# This workload may restart running transactions on a different client, causing deadlock if
# there is a concurrent dropDatabase waiting for the global X lock.

View File

@@ -36,6 +36,8 @@ selector:
# the error response from the op being killed.
- jstests/concurrency/fsm_workloads/multi_statement_transaction_kill_sessions_atomicity_isolation.js
- jstests/concurrency/fsm_workloads/multi_statement_transaction_simple_kill_sessions.js
- jstests/concurrency/fsm_workloads/internal_transactions_setFCV.js
- jstests/concurrency/fsm_workloads/internal_transactions_kill_sessions.js
# This workload may restart running transactions on a different client, causing deadlock if
# there is a concurrent dropDatabase waiting for the global X lock.

View File

@@ -36,6 +36,8 @@ selector:
# the error response from the op being killed.
- jstests/concurrency/fsm_workloads/multi_statement_transaction_kill_sessions_atomicity_isolation.js
- jstests/concurrency/fsm_workloads/multi_statement_transaction_simple_kill_sessions.js
- jstests/concurrency/fsm_workloads/internal_transactions_setFCV.js
- jstests/concurrency/fsm_workloads/internal_transactions_kill_sessions.js
# This workload may restart running transactions on a different client, causing deadlock if
# there is a concurrent dropDatabase waiting for the global X lock.

View File

@@ -6,6 +6,8 @@ test_kind: js_test
selector:
roots:
- jstests/core/**/*.js
- jstests/fle2/**/*.js
- src/mongo/db/modules/*/jstests/fle2/*.js
- jstests/core_standalone/**/*.js
exclude_files:
# Transactions are not supported on MongoDB standalone nodes, so we do not run these tests in the

View File

@@ -6,6 +6,8 @@ test_kind: js_test
selector:
roots:
- jstests/core/**/*.js
- jstests/fle2/**/*.js
- src/mongo/db/modules/*/jstests/fle2/*.js
exclude_files:
# Transactions only a readConcern argument on the first command.
- jstests/core/txns/**/*.js

View File

@@ -0,0 +1,32 @@
test_kind: js_test
selector:
roots:
- jstests/fle2/**/*.js
- src/mongo/db/modules/*/jstests/fle2/*.js
- src/mongo/db/modules/*/jstests/fle2/query/*.js
exclude_with_any_tags:
# Not compatible with tests the expect fle to always using $in in queries,
# i.e. verify explain output
- requires_fle_in_always
executor:
archive:
hooks:
- ValidateCollections
config:
shell_options:
eval: "testingReplication = true; testingFLESharding = false;"
hooks:
# We don't execute dbHash or oplog consistency checks since there is only a single replica set
# node.
- class: ValidateCollections
- class: CleanEveryN
n: 20
fixture:
class: ReplicaSetFixture
mongod_options:
set_parameters:
enableTestCommands: 1
internalQueryFLEAlwaysUseHighCardinalityMode: 1
# Use a 2-node replica set.
num_nodes: 2

View File

@@ -0,0 +1,37 @@
test_kind: js_test
selector:
roots:
- jstests/fle2/*.js
- src/mongo/db/modules/*/jstests/fle2/*.js
- src/mongo/db/modules/*/jstests/fle2/query/*.js
exclude_with_any_tags:
# Not compatible with tests the expect fle to always using $in in queries,
# i.e. verify explain output
- requires_fle_in_always
executor:
archive:
hooks:
- CheckReplDBHash
- ValidateCollections
config:
shell_options:
eval: "testingReplication = false; testingFLESharding = true;"
hooks:
- class: CheckReplDBHash
- class: ValidateCollections
- class: CleanEveryN
n: 20
fixture:
class: ShardedClusterFixture
mongos_options:
set_parameters:
enableTestCommands: 1
internalQueryFLEAlwaysUseHighCardinalityMode: 1
mongod_options:
set_parameters:
enableTestCommands: 1
internalQueryFLEAlwaysUseHighCardinalityMode: 1
num_rs_nodes_per_shard: 2
enable_sharding:
- test

View File

@@ -20,7 +20,6 @@ executor:
TestData:
skipValidationOnInvalidViewDefinitions: true
skipValidationOnNamespaceNotFound: false
forceValidationWithFeatureCompatibilityVersion: latestFCV
fixture:
class: MongoDFixture
mongod_options:

View File

@@ -24,7 +24,6 @@ executor:
TestData:
skipValidationOnInvalidViewDefinitions: true
skipValidationOnNamespaceNotFound: false
forceValidationWithFeatureCompatibilityVersion: latestFCV
fixture:
class: MongoDFixture
mongod_options:

View File

@@ -34,7 +34,6 @@ executor:
global_vars:
TestData:
skipValidationOnInvalidViewDefinitions: true
forceValidationWithFeatureCompatibilityVersion: latestFCV
fixture:
class: ReplicaSetFixture
mongod_options:

View File

@@ -34,7 +34,6 @@ executor:
global_vars:
TestData:
skipValidationOnInvalidViewDefinitions: true
forceValidationWithFeatureCompatibilityVersion: latestFCV
fixture:
class: ReplicaSetFixture
mongod_options:

View File

@@ -32,7 +32,6 @@ executor:
global_vars:
TestData:
skipValidationOnInvalidViewDefinitions: true
forceValidationWithFeatureCompatibilityVersion: latestFCV
fixture:
class: ReplicaSetFixture
mongod_options:

View File

@@ -31,7 +31,6 @@ executor:
global_vars:
TestData:
skipValidationOnInvalidViewDefinitions: true
forceValidationWithFeatureCompatibilityVersion: latestFCV
fixture:
class: ReplicaSetFixture
mongod_options:

View File

@@ -26,7 +26,6 @@ executor:
TestData:
skipValidationOnInvalidViewDefinitions: true
skipValidationOnNamespaceNotFound: false
forceValidationWithFeatureCompatibilityVersion: latestFCV
fixture:
class: ReplicaSetFixture
mongod_options:

View File

@@ -29,7 +29,6 @@ executor:
global_vars:
TestData:
skipValidationOnInvalidViewDefinitions: true
forceValidationWithFeatureCompatibilityVersion: latestFCV
fixture:
class: ShardedClusterFixture
mongos_options:

View File

@@ -29,7 +29,6 @@ executor:
global_vars:
TestData:
skipValidationOnInvalidViewDefinitions: true
forceValidationWithFeatureCompatibilityVersion: latestFCV
fixture:
class: ShardedClusterFixture
mongos_options:

View File

@@ -35,7 +35,6 @@ executor:
global_vars:
TestData:
skipValidationOnInvalidViewDefinitions: true
forceValidationWithFeatureCompatibilityVersion: latestFCV
fixture:
class: ShardedClusterFixture
mongos_options:

View File

@@ -26,7 +26,6 @@ executor:
global_vars:
TestData:
skipValidationOnInvalidViewDefinitions: true
forceValidationWithFeatureCompatibilityVersion: latestFCV
fixture:
class: ShardedClusterFixture
mongos_options:

View File

@@ -3,6 +3,8 @@ test_kind: js_test
selector:
roots:
- jstests/core/**/*.js
- jstests/fle2/**/*.js
- src/mongo/db/modules/*/jstests/fle2/*.js
exclude_files:
# The set_param1.js test attempts to compare the response from running the {getParameter: "*"}
# command multiple times, which may observe the change to the "transactionLifetimeLimitSeconds"
@@ -12,7 +14,6 @@ selector:
# can be triggered deterministically.
- jstests/core/list_all_local_sessions.js
- jstests/core/list_all_sessions.js
- jstests/core/list_local_sessions.js
- jstests/core/list_sessions.js
# The awaitdata_getmore_cmd.js test tails the oplog and waits for the getMore batch size to equal
# zero. The CheckReplDBHashInBackground hook consistently runs and creates sessions. At the same

View File

@@ -3,6 +3,8 @@ test_kind: js_test
selector:
roots:
- jstests/core/**/*.js
- jstests/fle2/**/*.js
- src/mongo/db/modules/*/jstests/fle2/*.js
exclude_files:
# The set_param1.js test attempts to compare the response from running the {getParameter: "*"}
# command multiple times, which may observe the change to the "transactionLifetimeLimitSeconds"
@@ -12,7 +14,6 @@ selector:
# can be triggered deterministically.
- jstests/core/list_all_local_sessions.js
- jstests/core/list_all_sessions.js
- jstests/core/list_local_sessions.js
- jstests/core/list_sessions.js
# The awaitdata_getmore_cmd.js test tails the oplog and waits for the getMore batch size to equal
# zero. The CheckReplDBHashInBackground hook consistently runs and creates sessions. At the same

View File

@@ -3,6 +3,8 @@ test_kind: js_test
selector:
roots:
- jstests/core/**/*.js
- jstests/fle2/**/*.js
- src/mongo/db/modules/*/jstests/fle2/*.js
exclude_files:
# The set_param1.js test attempts to compare the response from running the {getParameter: "*"}
# command multiple times, which may observe the change to the "transactionLifetimeLimitSeconds"
@@ -12,7 +14,6 @@ selector:
# can be triggered deterministically.
- jstests/core/list_all_local_sessions.js
- jstests/core/list_all_sessions.js
- jstests/core/list_local_sessions.js
- jstests/core/list_sessions.js
# The awaitdata_getmore_cmd.js test tails the oplog and waits for the getMore batch size to equal
# zero. The CheckReplDBHashInBackground hook consistently runs and creates sessions. At the same

View File

@@ -3,6 +3,8 @@ test_kind: js_test
selector:
roots:
- jstests/core/**/*.js
- jstests/fle2/**/*.js
- src/mongo/db/modules/*/jstests/fle2/*.js
exclude_files:
# The set_param1.js test attempts to compare the response from running the {getParameter: "*"}
# command multiple times, which may observe the change to the "transactionLifetimeLimitSeconds"
@@ -12,7 +14,6 @@ selector:
# can be triggered deterministically.
- jstests/core/list_all_local_sessions.js
- jstests/core/list_all_sessions.js
- jstests/core/list_local_sessions.js
- jstests/core/list_sessions.js
# The awaitdata_getmore_cmd.js test tails the oplog and waits for the getMore batch size to equal
# zero. The CheckReplDBHashInBackground hook consistently runs and creates sessions. At the same

View File

@@ -3,6 +3,8 @@ test_kind: js_test
selector:
roots:
- jstests/core/**/*.js
- jstests/fle2/**/*.js
- src/mongo/db/modules/*/jstests/fle2/*.js
exclude_files:
# These tests are run in logical_session_cache_sharding_100ms_refresh_jscore_txns_passthrough.yml.
- jstests/core/txns/**/*.js
@@ -55,7 +57,6 @@ selector:
# can be triggered deterministically.
- jstests/core/list_all_local_sessions.js
- jstests/core/list_all_sessions.js
- jstests/core/list_local_sessions.js
- jstests/core/list_sessions.js
# TODO: Remove after fixing SERVER-29449. executionStats.nReturned is incorrect for sharded
# queries with a limit or for distinct commands.

View File

@@ -3,6 +3,8 @@ test_kind: js_test
selector:
roots:
- jstests/core/**/*.js
- jstests/fle2/**/*.js
- src/mongo/db/modules/*/jstests/fle2/*.js
exclude_files:
# These tests are run in logical_session_cache_sharding_100ms_refresh_jscore_txns_passthrough.yml.
- jstests/core/txns/**/*.js
@@ -55,7 +57,6 @@ selector:
# can be triggered deterministically.
- jstests/core/list_all_local_sessions.js
- jstests/core/list_all_sessions.js
- jstests/core/list_local_sessions.js
- jstests/core/list_sessions.js
# TODO: Remove after fixing SERVER-29449. executionStats.nReturned is incorrect for sharded
# queries with a limit or for distinct commands.

View File

@@ -3,6 +3,8 @@ test_kind: js_test
selector:
roots:
- jstests/core/**/*.js
- jstests/fle2/**/*.js
- src/mongo/db/modules/*/jstests/fle2/*.js
exclude_files:
# These tests are run in logical_session_cache_sharding_100ms_refresh_jscore_txns_passthrough.yml.
- jstests/core/txns/**/*.js
@@ -55,7 +57,6 @@ selector:
# can be triggered deterministically.
- jstests/core/list_all_local_sessions.js
- jstests/core/list_all_sessions.js
- jstests/core/list_local_sessions.js
- jstests/core/list_sessions.js
# TODO: Remove after fixing SERVER-29449. executionStats.nReturned is incorrect for sharded
# queries with a limit or for distinct commands.

View File

@@ -3,6 +3,8 @@ test_kind: js_test
selector:
roots:
- jstests/core/**/*.js
- jstests/fle2/**/*.js
- src/mongo/db/modules/*/jstests/fle2/*.js
exclude_files:
# These tests are run in logical_session_cache_sharding_100ms_refresh_jscore_txns_passthrough.yml.
- jstests/core/txns/**/*.js
@@ -55,7 +57,6 @@ selector:
# can be triggered deterministically.
- jstests/core/list_all_local_sessions.js
- jstests/core/list_all_sessions.js
- jstests/core/list_local_sessions.js
- jstests/core/list_sessions.js
# TODO: Remove after fixing SERVER-29449. executionStats.nReturned is incorrect for sharded
# queries with a limit or for distinct commands.

View File

@@ -13,7 +13,6 @@ selector:
# can be triggered deterministically.
- jstests/core/list_all_local_sessions.js
- jstests/core/list_all_sessions.js
- jstests/core/list_local_sessions.js
- jstests/core/list_sessions.js
# These tests verify that an expected number of update operations were tracked in the server
# status metrics, but the logical session cache refresh causes additional updates to be recorded.

View File

@@ -13,7 +13,6 @@ selector:
# can be triggered deterministically.
- jstests/core/list_all_local_sessions.js
- jstests/core/list_all_sessions.js
- jstests/core/list_local_sessions.js
- jstests/core/list_sessions.js
# These tests verify that an expected number of update operations were tracked in the server
# status metrics, but the logical session cache refresh causes additional updates to be recorded.

View File

@@ -13,7 +13,6 @@ selector:
# can be triggered deterministically.
- jstests/core/list_all_local_sessions.js
- jstests/core/list_all_sessions.js
- jstests/core/list_local_sessions.js
- jstests/core/list_sessions.js
# These tests verify that an expected number of update operations were tracked in the server
# status metrics, but the logical session cache refresh causes additional updates to be recorded.

View File

@@ -13,7 +13,6 @@ selector:
# can be triggered deterministically.
- jstests/core/list_all_local_sessions.js
- jstests/core/list_all_sessions.js
- jstests/core/list_local_sessions.js
- jstests/core/list_sessions.js
# These tests verify that an expected number of update operations were tracked in the server
# status metrics, but the logical session cache refresh causes additional updates to be recorded.

View File

@@ -151,7 +151,6 @@ selector:
# $listSessions
- jstests/core/list_all_local_sessions.js
- jstests/core/list_all_sessions.js
- jstests/core/list_local_sessions.js
- jstests/core/list_sessions.js
# $collStats

View File

@@ -146,7 +146,6 @@ selector:
# $listSessions
- jstests/core/list_all_local_sessions.js
- jstests/core/list_all_sessions.js
- jstests/core/list_local_sessions.js
- jstests/core/list_sessions.js
# $collStats

View File

@@ -147,7 +147,6 @@ selector:
# $listSessions
- jstests/core/list_all_local_sessions.js
- jstests/core/list_all_sessions.js
- jstests/core/list_local_sessions.js
- jstests/core/list_sessions.js
# $collStats

View File

@@ -159,7 +159,6 @@ selector:
# $listSessions
- jstests/core/list_all_local_sessions.js
- jstests/core/list_all_sessions.js
- jstests/core/list_local_sessions.js
- jstests/core/list_sessions.js
# $collStats

View File

@@ -3,6 +3,8 @@ test_kind: js_test
selector:
roots:
- jstests/core/**/*.js
- jstests/fle2/**/*.js
- src/mongo/db/modules/*/jstests/fle2/*.js
exclude_files:
# Transactions only a readConcern argument on the first command.
- jstests/core/txns/**/*.js

View File

@@ -5,6 +5,8 @@ test_kind: js_test
selector:
roots:
- jstests/core/**/*.js
- jstests/fle2/**/*.js
- src/mongo/db/modules/*/jstests/fle2/*.js
exclude_files:
# This test initiates a txn with API parameters, but runs txn-continuing commands in a separate
# Thread object. Since those commands will not have API parameters appended, they will fail due

View File

@@ -3,6 +3,8 @@ test_kind: js_test
selector:
roots:
- jstests/core/**/*.js
- jstests/fle2/**/*.js
- src/mongo/db/modules/*/jstests/fle2/*.js
exclude_files:
# Tests that query the system.profile collection cannot run in this suite since an initial sync
# may insert unexpected operations into the profile collection.

View File

@@ -3,6 +3,8 @@ test_kind: js_test
selector:
roots:
- jstests/core/**/*.js
- jstests/fle2/**/*.js
- src/mongo/db/modules/*/jstests/fle2/*.js
exclude_files:
# Tests that query the system.profile collection cannot run in this suite since an initial sync
# may insert unexpected operations into the profile collection.

View File

@@ -3,6 +3,8 @@ test_kind: js_test
selector:
roots:
- jstests/core/**/*.js
- jstests/fle2/**/*.js
- src/mongo/db/modules/*/jstests/fle2/*.js
exclude_files:
# Duplicate namespace may cause cloner to try and clone view instead of collection
- jstests/core/views/duplicate_ns.js

View File

@@ -3,6 +3,8 @@ test_kind: js_test
selector:
roots:
- jstests/core/**/*.js
- jstests/fle2/**/*.js
- src/mongo/db/modules/*/jstests/fle2/*.js
exclude_files:
# These tests change the transactionLifetimeLimitSeconds server parameter which conflicts with how
# the CheckReplDBHashInBackground hook doesn't want transactions to be reaped while it is running.

View File

@@ -96,7 +96,6 @@ selector:
# $listSessions
- jstests/core/list_all_local_sessions.js
- jstests/core/list_all_sessions.js
- jstests/core/list_local_sessions.js
- jstests/core/list_sessions.js
# $indexStats

View File

@@ -87,7 +87,6 @@ selector:
# $listSessions
- jstests/core/list_all_local_sessions.js
- jstests/core/list_all_sessions.js
- jstests/core/list_local_sessions.js
- jstests/core/list_sessions.js
# $collStats

View File

@@ -86,7 +86,6 @@ selector:
# $listSessions
- jstests/core/list_all_local_sessions.js
- jstests/core/list_all_sessions.js
- jstests/core/list_local_sessions.js
- jstests/core/list_sessions.js
# $collStats

View File

@@ -84,7 +84,6 @@ selector:
# $listSessions
- jstests/core/list_all_local_sessions.js
- jstests/core/list_all_sessions.js
- jstests/core/list_local_sessions.js
- jstests/core/list_sessions.js
# $collStats

View File

@@ -7,6 +7,8 @@ test_kind: js_test
selector:
roots:
- jstests/core/**/*.js
- jstests/fle2/**/*.js
- src/mongo/db/modules/*/jstests/fle2/*.js
exclude_files:
# Transactions do not support retryability of individual operations.
# TODO: Remove this once it is supported (SERVER-33952).

View File

@@ -7,6 +7,8 @@ test_kind: js_test
selector:
roots:
- jstests/core/**/*.js
- jstests/fle2/**/*.js
- src/mongo/db/modules/*/jstests/fle2/*.js
exclude_files:
# Transactions do not support retryability of individual operations.
# TODO: Remove this once it is supported (SERVER-33952).

View File

@@ -3,6 +3,8 @@ test_kind: js_test
selector:
roots:
- jstests/core/**/*.js
- jstests/fle2/**/*.js
- src/mongo/db/modules/*/jstests/fle2/*.js
exclude_files:
# Transactions do not support retryability of individual operations.
# TODO: Remove this once it is supported (SERVER-33952).

View File

@@ -3,6 +3,8 @@ test_kind: js_test
selector:
roots:
- jstests/core/**/*.js
- jstests/fle2/**/*.js
- src/mongo/db/modules/*/jstests/fle2/*.js
exclude_files:
# These tests change the transactionLifetimeLimitSeconds server parameter which conflicts with how
# the CheckReplDBHashInBackground hook doesn't want transactions to be reaped while it is running.

View File

@@ -3,6 +3,8 @@ test_kind: js_test
selector:
roots:
- jstests/core/**/*.js
- jstests/fle2/**/*.js
- src/mongo/db/modules/*/jstests/fle2/*.js
exclude_files:
# Transactions do not support retryability of individual operations.
# TODO: Remove this once it is supported (SERVER-33952).

View File

@@ -3,6 +3,8 @@ test_kind: js_test
selector:
roots:
- jstests/core/**/*.js
- jstests/fle2/**/*.js
- src/mongo/db/modules/*/jstests/fle2/*.js
exclude_files:
# Transactions do not support retryability of individual operations.
# TODO: Remove this once it is supported (SERVER-33952).

View File

@@ -3,6 +3,8 @@ test_kind: js_test
selector:
roots:
- jstests/core/**/*.js
- jstests/fle2/**/*.js
- src/mongo/db/modules/*/jstests/fle2/*.js
exclude_files:
# Transactions do not support retryability of individual operations.
# TODO: Remove this once it is supported (SERVER-33952).

View File

@@ -5,6 +5,8 @@ test_kind: js_test
selector:
roots:
- jstests/core/**/*.js
- jstests/fle2/**/*.js
- src/mongo/db/modules/*/jstests/fle2/*.js
exclude_files:
# These tests are run in sharded_causally_consistent_jscore_txns_passthrough.
- jstests/core/txns/**/*.js

View File

@@ -5,6 +5,8 @@ test_kind: js_test
selector:
roots:
- jstests/core/**/*.js
- jstests/fle2/**/*.js
- src/mongo/db/modules/*/jstests/fle2/*.js
exclude_files:
# These tests are run in sharded_causally_consistent_jscore_txns_passthrough.
- jstests/core/txns/**/*.js

View File

@@ -3,6 +3,8 @@ test_kind: js_test
selector:
roots:
- jstests/core/**/*.js
- jstests/fle2/**/*.js
- src/mongo/db/modules/*/jstests/fle2/*.js
exclude_files:
# These tests run in the jscore_txn passthrough suites.
- jstests/core/txns/**/*.js

View File

@@ -120,7 +120,6 @@ selector:
# $listSessions
- jstests/core/list_all_local_sessions.js
- jstests/core/list_all_sessions.js
- jstests/core/list_local_sessions.js
- jstests/core/list_sessions.js
# $indexStats

View File

@@ -3,6 +3,8 @@ test_kind: js_test
selector:
roots:
- jstests/core/**/*.js
- jstests/fle2/**/*.js
- src/mongo/db/modules/*/jstests/fle2/*.js
exclude_files:
# Transactions do not support retryability of individual operations.
# TODO: Remove this once it is supported (SERVER-33952).

View File

@@ -5,6 +5,8 @@ test_kind: js_test
selector:
roots:
- jstests/core/**/*.js
- jstests/fle2/**/*.js
- src/mongo/db/modules/*/jstests/fle2/*.js
exclude_files:
# This test initiates a txn with API parameters, but runs txn-continuing commands in a separate

View File

@@ -11,6 +11,12 @@ selector:
- jstests/sharding/query/*[aA]uth*.js
- jstests/sharding/change_streams/*[aA]uth*.js
- jstests/sharding/internal_txns/internal_client_restrictions.js
- jstests/sharding/internal_txns/non_retryable_writes_during_migration.js
- jstests/sharding/internal_txns/retry_on_transient_error_validation.js
- jstests/sharding/internal_txns/retryable_findAndModify_during_migration_oplog.js
- jstests/sharding/internal_txns/retryable_findAndModify_during_migration_side_coll.js
- jstests/sharding/internal_txns/retryable_writes_aborted_during_migration.js
- jstests/sharding/internal_txns/retryable_writes_committed_during_migration.js
- jstests/sharding/localhostAuthBypass.js
- jstests/sharding/kill_sessions.js

View File

@@ -3,6 +3,8 @@ test_kind: js_test
selector:
roots:
- jstests/core/**/*.js
- jstests/fle2/**/*.js
- src/mongo/db/modules/*/jstests/fle2/*.js
exclude_files:
# These tests are run in sharded_jscore_txns.
- jstests/core/txns/**/*.js

View File

@@ -0,0 +1,16 @@
test_kind: js_test
selector:
roots:
- jstests/sharding/**/*.js
exclude_files:
- jstests/sharding/**/libs/**/*.js
executor:
config:
shell_options:
nodb: ''
global_vars:
TestData:
setParametersMongos:
opportunisticSecondaryTargeting: true

View File

@@ -3,6 +3,8 @@ test_kind: js_test
selector:
roots:
- jstests/core/**/*.js
- jstests/fle2/**/*.js
- src/mongo/db/modules/*/jstests/fle2/*.js
exclude_files:
# These tests are run in sharded_jscore_txns.
- jstests/core/txns/**/*.js

View File

@@ -4,9 +4,6 @@ selector:
roots:
- jstests/ssl/*.js
- src/mongo/db/modules/*/jstests/fips/*.js
exclude_files:
# TODO SERVER-63155 Re-enable this test.
- jstests/ssl/ssl_cert_selector_apple.js
# ssl tests start their own mongod's.
executor:

Some files were not shown because too many files have changed in this diff Show More