diff options
-rw-r--r-- | jstests/replsets/reconstruct_prepared_transactions_initial_sync_index_build.js | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/jstests/replsets/reconstruct_prepared_transactions_initial_sync_index_build.js b/jstests/replsets/reconstruct_prepared_transactions_initial_sync_index_build.js index 414ad493e23..3824ba87e53 100644 --- a/jstests/replsets/reconstruct_prepared_transactions_initial_sync_index_build.js +++ b/jstests/replsets/reconstruct_prepared_transactions_initial_sync_index_build.js @@ -3,9 +3,11 @@ * of initial sync. Additionally, we will test that a background index build blocks this particular * situation until the index build is finished. * + * TODO(SERVER-44042): Remove two_phase_index_builds_unsupported tag. * @tags: [ * uses_transactions, * uses_prepare_transaction, + * two_phase_index_builds_unsupported, * ] */ @@ -89,18 +91,13 @@ jsTestLog("Resuming initial sync"); assert.commandWorked(secondary.adminCommand( {configureFailPoint: "initialSyncHangDuringCollectionClone", mode: "off"})); -const enableTwoPhaseIndexBuild = - assert.commandWorked(primary.adminCommand({getParameter: 1, enableTwoPhaseIndexBuild: 1})) - .enableTwoPhaseIndexBuild; -if (!enableTwoPhaseIndexBuild) { - // Wait for log message. - assert.soon( - () => - rawMongoProgramOutput().indexOf( - "blocking replication until index builds are finished on test.reconstruct_prepared_transactions_initial_sync_index_build, due to prepared transaction") >= - 0, - "replication not hanging"); -} +// Wait for log message. +assert.soon( + () => + rawMongoProgramOutput().indexOf( + "blocking replication until index builds are finished on test.reconstruct_prepared_transactions_initial_sync_index_build, due to prepared transaction") >= + 0, + "replication not hanging"); // Unblock index build. assert.commandWorked( |