summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2019-10-26 11:53:43 +0000
committerevergreen <evergreen@mongodb.com>2019-10-26 11:53:43 +0000
commit27b29ec51fecc0ebdd79e22fb688e662c99c8079 (patch)
tree67dfd3c6382caa3d600cced9dc366e9ad4838df2
parent3d9d8d9989c3f1912c934b9c22c9413ab1495af0 (diff)
downloadmongo-27b29ec51fecc0ebdd79e22fb688e662c99c8079.tar.gz
Revert "SERVER-44042 Enable reconstruct_prepared_transactions_initial_sync_index_build.js when two phase index builds are enabled"
This reverts commit 20ca77a7181ad9629b91eae1884664cfaa4e6941.
-rw-r--r--jstests/replsets/reconstruct_prepared_transactions_initial_sync_index_build.js21
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(