Commit Graph

127 Commits

Author SHA1 Message Date
Paolo Polato
bc35bf3473 SERVER-64171 Resize Cluster Chunks when downgrading to 5.x 2022-04-12 02:17:11 +00:00
Pavi Vetriselvan
3ffd0984dd SERVER-65225 Don't drop clustered indexes in do_upgrade_downgrade.js 2022-04-11 18:39:46 +00:00
Brett Nawrocki
0425d81490 SERVER-65047 Strengthen guarantees for resharding aborting across FCVs
Previously, resharding operations were aborted after sending the request
to finalize the FCV version on the shards when upgrading, making it is
possible that a resharding recipient will update its FCV to its target
value prior to aborting. It was therefore not possible to differentiate
a resharding operation that has upgraded to the latest version since
starting from one that has been the latest version throughout. For this
reason, the resharding operations are now aborted first.

Furthermore, the resharding command currently ensures that the FCV
cannot change while setting up the coordinator. However, it did not
check to make sure that the current FCV is not currently in an upgrading
or downgrading state. After making the above change, this would allow
for the possibility for a new resharding operation to begin during an
FCV upgrade, after resharding operations are aborted, but before the
shards complete the FCV upgrade. This would have the consequence of the
operation running across FCVs without being aborted. As such, the
reshard command now fails if the current FCV is either upgrading or
downgrading.

These changes in combination should guarantee that during a version
change, a new resharding operation cannot begin and a previously running
resharding operation always aborts completely before reaching the target
version. Note that it is still possible for a resharding operation to
reach an upgrading or downgrading FCV before being aborted.

These changes were made in the interest of being able to assert that
newly added optional fields that should always be set were indeed set.
As such, this change also enables the assertion disabled by
SERVER-65039.
2022-04-01 22:02:53 +00:00
Allison Easton
9022ee2c14 SERVER-64163 Synchronize orphans tracking upon upgrade/downgrade with ongoing migrations 2022-03-30 13:06:51 +00:00
XueruiFa
9b6d19aa8c SERVER-64636: Ensure that unsupportedOldFCV is still too old in the future git tag variant 2022-03-22 22:36:10 +00:00
Tommaso Tocci
7594b5990a Revert "SERVER-64163 Synchronize orphans tracking upon upgrade/downgrade with ongoing migrations"
This reverts commit 2e63d56d8f.
2022-03-22 16:31:43 +00:00
Allison Easton
2e63d56d8f SERVER-64163 Synchronize orphans tracking upon upgrade/downgrade with ongoing migrations 2022-03-22 11:50:09 +00:00
A. Jesse Jiryu Davis
76a2683fd0 SERVER-63397 Abort all index builds during shard merge 2022-03-10 13:34:05 +00:00
Pierlauro Sciarelli
508308a2cd SERVER-64343 Integration tests for orphans tracking during upgrade/downgrade 2022-03-10 10:33:39 +00:00
trahman1318
e9a3d471b8 SERVER-60211 Structure targeted multiversion JS test directories 2022-02-02 20:13:31 +00:00
A. Jesse Jiryu Davis
258ceaa9a9 SERVER-60684 Tag serverless tests 2022-01-28 23:31:17 +00:00
A. Jesse Jiryu Davis
541e9288b7 SERVER-62352 Post-5.2 fixes for shard merge tests 2022-01-26 13:35:21 +00:00
jonstreets
ee8a689161 SERVER-61671 temporarily remove tests for FCV 5.3 2021-12-23 21:26:13 +00:00
Zituo Jin
8b0819392f SERVER-61296 Remove obsolete TODOs 2021-11-16 14:57:55 +00:00
Suganthi Mani
7f89e2f0ed SERVER-59495 Donor and recipient tenant migration state machines will persist the migration protocol info and tenantId info will be an empty string for 'Merge' protocol." 2021-11-09 20:55:12 +00:00
Gregory Wlodarek
e47af06d2f Revert "SERVER-59495 Donor and recipient tenant migration state machines will persist the migration protocol info and tenantId info will be an empty string for 'Merge' protocol."
This reverts commit bbc96fbba2.
2021-11-04 23:32:41 +00:00
Suganthi Mani
bbc96fbba2 SERVER-59495 Donor and recipient tenant migration state machines will persist the migration protocol info and tenantId info will be an empty string for 'Merge' protocol. 2021-11-02 20:53:19 +00:00
Sergi Mateo Bellido
30a0b6165d SERVER-60834 new migration protocol setFCV requirements 2021-11-01 12:13:26 +00:00
Vesselina Ratcheva
7b27276ea7 SERVER-60935 Fix disabled repl tests failing due to changing latest release to 5.2 2021-10-30 02:49:20 +00:00
ali-mir
f094005b0b SERVER-60869 Re-add logic to set feature compatibility version on arbiters 2021-10-25 17:19:55 +00:00
Jon Streets
0273057add SERVER-60490 Update FCV constants to recognise 5.2 as latest 2021-10-20 17:23:11 +00:00
Zituo Jin
35558f7233 SERVER-50389 Support generating mixed version set containing last-continuous randomly in ReplSetTest/ShardingTest 2021-10-09 01:21:35 +00:00
LaMont Nelson
c5b030f123 SERVER-60421 raise the log level when removing nodes from sdam topology or ignoring messages 2021-10-05 16:24:00 +00:00
Luis Osta
292f846169 SERVER-59716 Removed "disabled_due_to_server_58295" tag from add_invalid_shard 2021-09-20 18:30:48 +00:00
Luis Osta
d8634cee81 SERVER-59716 Re-enable Sharding tests with the "disabled_due_to_server_58295" tag 2021-09-09 20:52:11 +00:00
Simon Gratzer
8c4c466acd Revert "SERVER-59716 Removed usage of "disabled_due_to_server_58295" tag" 2021-09-09 09:24:10 +00:00
Luis Osta
b923a3440e SERVER-59716 Removed usage of "disabled_due_to_server_58295" tag 2021-09-08 20:33:00 +00:00
Mickey. J Winters
9e6b4a60f9 SERVER-58354 Re-enable query tests disabled_due_to_server_58295 2021-09-07 19:25:28 +00:00
Vishnu Kaushik
eec4969a40 SERVER-58296 re-enabled tests and marked node_restarts_no_oplog_entry_at_stable.js as multiversion_incompatible 2021-09-01 23:54:58 +00:00
Jason Chan
8fdfe55ebd SERVER-52936 Remove featureFlagTenantMigration 2021-08-18 19:51:21 +00:00
Wenbin Zhu
94415e3593 SERVER-58900 Re-enable major_version_upgrade.js after FCV constant change. 2021-07-29 17:57:26 +00:00
Jon Streets
05a0f8e98b SERVER-56366 Update FCV constants to recognize 5.1 as latest 2021-07-23 15:49:23 +00:00
Robert Guo
bc5f939071 SERVER-58172 run multiversion tests on master with 5.0 and disable incompatible tests 2021-07-22 14:50:12 +00:00
Andrii Dobroshynski
c99ec109b0 SERVER-53028 Clean up FCV gating for $dateDiff, $dateAdd, $dateSubtract, $dateTrunc and related system tests now that 5.0 is last LTS 2021-07-14 16:15:54 +00:00
Vishnu Kaushik
3ce695b73a SERVER-58295 Temporarily disable multiversion tests that fail due to SERVER-56366 2021-07-14 16:14:50 +00:00
Marcos José Grillo Ramirez
e5c7116913 SERVER-58315 Change jstests to not use standalone nodes as shards nor config server 2021-07-07 16:12:35 +00:00
Marcos José Grillo Ramirez
4a20641fe7 Revert "SERVER-32531 Disalow standalone nodes as shards if no queryableBackupMode is enabled"
This reverts commit 92a0de6ce7.
2021-07-07 12:17:09 +00:00
Marcos José Grillo Ramirez
92a0de6ce7 SERVER-32531 Disalow standalone nodes as shards if no queryableBackupMode is enabled 2021-07-02 17:10:37 +00:00
Mikhail Shchatko
10e7a6b566 SERVER-58017 Remove downloading of 3.6 binaries since they're no longer available 2021-06-25 07:51:33 +00:00
Spencer Jackson
09f99b41e3 SERVER-53062 Throw an exception in tests if server startup fails 2021-06-23 17:51:07 +00:00
Tommaso Tocci
bb7763a733 SERVER-57314 Drop support for deprecated shardAsReplicaSet option in shardingtest 2021-06-14 08:39:08 +00:00
Irina Yatsenko
911e585044 SERVER-57198 Remove getLastError calls from tests where it's easy to do so 2021-06-02 01:18:12 +00:00
Nick Zolnierz
8ae3c7b68d SERVER-56197 Remove feature flag for window functions 2021-06-01 14:50:37 +00:00
Matthew Russotto
11b41d2899 SERVER-53643 Wait for FCV to be majority committed before reporting it. 2021-05-27 15:12:27 +00:00
Wenbin Zhu
1cb18cbb34 SERVER-55202 Add assertion if migration committed or aborted in TenantMigrationTest fixture. 2021-05-12 20:25:00 +00:00
Vesselina Ratcheva
a0c0b91d6c SERVER-53563 Cancel tenant migrations on FCV change (recipient side) 2021-05-12 08:20:51 +00:00
Moustafa Maher
242d8aa409 SERVER-55703 Fix tests to update getDefaultRWConcern to return the implicit default 2021-05-04 22:31:49 +00:00
Moustafa Maher
0d27344b5a SERVER-55703 Fix tests to update getDefaultRWConcern to return the implicit default 2021-05-04 22:30:37 +00:00
Vesselina Ratcheva
da663d32d6 SERVER-53563 Cancel tenant migrations on FCV change (donor side) 2021-05-01 03:30:15 +00:00
Nick Zolnierz
53230099fc SERVER-55826 Disallow $count accumulator in persisted pipelines unless FCV is 5.0 or greater 2021-04-15 15:52:49 +00:00