diff options
author | Benety Goh <benety@mongodb.com> | 2020-09-06 06:51:11 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-09-06 12:47:59 +0000 |
commit | 178164641de42107c7c7272b80bac9ec514102ce (patch) | |
tree | acf65606b4e6625866a1a0fbce44c677da8a0a58 | |
parent | 133f5c036868cb108aec0fa1442398dae6e8da0a (diff) | |
download | mongo-178164641de42107c7c7272b80bac9ec514102ce.tar.gz |
SERVER-49847 enable resumable index builds by default
6 files changed, 33 insertions, 9 deletions
diff --git a/etc/evergreen.yml b/etc/evergreen.yml index bf797710081..0ec7c71fb5b 100644 --- a/etc/evergreen.yml +++ b/etc/evergreen.yml @@ -10468,16 +10468,15 @@ buildvariants: - name: snmp - name: .updatefuzzer -- name: enterprise-rhel-62-64-bit-resumable-index-builds - display_name: "Enterprise RHEL 6.2 (resumable index builds)" +- name: enterprise-rhel-62-64-bit-non-resumable-index-builds + display_name: "Enterprise RHEL 6.2 (non-resumable index builds)" modules: - enterprise run_on: - rhel62-small - expansions: &enterprise-rhel-62-64-bit-resumable-index-builds-expansions + expansions: &enterprise-rhel-62-64-bit-non-resumable-index-builds-expansions test_flags: >- - --mongodSetParameters="{enableResumableIndexBuilds: true}" - --excludeWithAnyTags=resumable_index_build_incompatible + --mongodSetParameters="{enableResumableIndexBuilds: false}" compile_flags: >- -j$(grep -c ^processor /proc/cpuinfo) --ssl diff --git a/jstests/replsets/rollback_resumable_index_build_bulk_load_phase.js b/jstests/replsets/rollback_resumable_index_build_bulk_load_phase.js index 06b69ee78d7..81631163f06 100644 --- a/jstests/replsets/rollback_resumable_index_build_bulk_load_phase.js +++ b/jstests/replsets/rollback_resumable_index_build_bulk_load_phase.js @@ -13,6 +13,12 @@ load('jstests/replsets/libs/rollback_resumable_index_build.js'); +// TODO(SERVER-50775): Re-enable when stepdown issues are fixed in resumable index rollback tests. +if (true) { + jsTestLog('Skipping test.'); + return; +} + const dbName = "test"; const rollbackStartFailPointName = "hangIndexBuildDuringBulkLoadPhase"; const insertsToBeRolledBack = [{a: 4}, {a: 5}]; @@ -45,4 +51,4 @@ RollbackResumableIndexBuildTest.run(rollbackTest, insertsToBeRolledBack); rollbackTest.stop(); -})();
\ No newline at end of file +})(); diff --git a/jstests/replsets/rollback_resumable_index_build_collection_scan_phase.js b/jstests/replsets/rollback_resumable_index_build_collection_scan_phase.js index a1ed6ed393e..23807d85383 100644 --- a/jstests/replsets/rollback_resumable_index_build_collection_scan_phase.js +++ b/jstests/replsets/rollback_resumable_index_build_collection_scan_phase.js @@ -13,6 +13,12 @@ load('jstests/replsets/libs/rollback_resumable_index_build.js'); +// TODO(SERVER-50775): Re-enable when stepdown issues are fixed in resumable index rollback tests. +if (true) { + jsTestLog('Skipping test.'); + return; +} + const dbName = "test"; const rollbackStartFailPointName = "hangIndexBuildDuringCollectionScanPhaseBeforeInsertion"; const insertsToBeRolledBack = [{a: 6}, {a: 7}]; @@ -45,4 +51,4 @@ RollbackResumableIndexBuildTest.run(rollbackTest, insertsToBeRolledBack); rollbackTest.stop(); -})();
\ No newline at end of file +})(); diff --git a/jstests/replsets/rollback_resumable_index_build_complete.js b/jstests/replsets/rollback_resumable_index_build_complete.js index d3c472f34f2..51f5988f4c9 100644 --- a/jstests/replsets/rollback_resumable_index_build_complete.js +++ b/jstests/replsets/rollback_resumable_index_build_complete.js @@ -13,6 +13,12 @@ load('jstests/replsets/libs/rollback_resumable_index_build.js'); +// TODO(SERVER-50775): Re-enable when stepdown issues are fixed in resumable index rollback tests. +if (true) { + jsTestLog('Skipping test.'); + return; +} + const dbName = "test"; const insertsToBeRolledBack = [{a: 7}, {a: 8}]; diff --git a/jstests/replsets/rollback_resumable_index_build_drain_writes_phase.js b/jstests/replsets/rollback_resumable_index_build_drain_writes_phase.js index 557dd8321fb..4e025596884 100644 --- a/jstests/replsets/rollback_resumable_index_build_drain_writes_phase.js +++ b/jstests/replsets/rollback_resumable_index_build_drain_writes_phase.js @@ -13,6 +13,12 @@ load('jstests/replsets/libs/rollback_resumable_index_build.js'); +// TODO(SERVER-50775): Re-enable when stepdown issues are fixed in resumable index rollback tests. +if (true) { + jsTestLog('Skipping test.'); + return; +} + const dbName = "test"; const rollbackStartFailPointName = "hangIndexBuildDuringDrainWritesPhase"; const insertsToBeRolledBack = [{a: 13}, {a: 14}]; @@ -74,4 +80,4 @@ RollbackResumableIndexBuildTest.run(rollbackTest, [{a: 10}, {a: 11}, {a: 12}]); rollbackTest.stop(); -})();
\ No newline at end of file +})(); diff --git a/src/mongo/db/storage/two_phase_index_build_knobs.idl b/src/mongo/db/storage/two_phase_index_build_knobs.idl index 40dbe469d44..0d52b29128a 100644 --- a/src/mongo/db/storage/two_phase_index_build_knobs.idl +++ b/src/mongo/db/storage/two_phase_index_build_knobs.idl @@ -69,8 +69,9 @@ server_parameters: default: 10000 enableResumableIndexBuilds: + # TODO(SERVER-50745): Remove this feature flag. description: "Support for using resumable index builds." set_at: startup cpp_vartype: bool cpp_varname: "enableResumableIndexBuilds" - default: false + default: true |