From d4d9753e67f26cbae43a92762b885e1a04a8daa3 Mon Sep 17 00:00:00 2001 From: "liubov.molchanova" Date: Fri, 31 Mar 2023 08:45:40 +0000 Subject: Revert "SERVER-73695 Add JS test for primary crashing in the middle of committing split prepared transactions" This reverts commit 4714df5896ddaa06f3146531d2283a013f903996. --- src/mongo/db/transaction/transaction_participant.cpp | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/mongo/db/transaction') diff --git a/src/mongo/db/transaction/transaction_participant.cpp b/src/mongo/db/transaction/transaction_participant.cpp index 00e81290f98..18238f76a3a 100644 --- a/src/mongo/db/transaction/transaction_participant.cpp +++ b/src/mongo/db/transaction/transaction_participant.cpp @@ -72,7 +72,6 @@ #include "mongo/logv2/log.h" #include "mongo/s/grid.h" #include "mongo/s/would_change_owning_shard_exception.h" -#include "mongo/util/debugger.h" #include "mongo/util/fail_point.h" #include "mongo/util/log_with_sampling.h" #include "mongo/util/net/socket_utils.h" @@ -99,8 +98,6 @@ MONGO_FAIL_POINT_DEFINE(restoreLocksFail); MONGO_FAIL_POINT_DEFINE(failTransactionNoopWrite); -MONGO_FAIL_POINT_DEFINE(hangInCommitSplitPreparedTxnOnPrimary); - const auto getTransactionParticipant = Session::declareDecoration(); const auto retryableWriteTransactionParticipantCatalogDecoration = @@ -2019,14 +2016,6 @@ void TransactionParticipant::Participant::_commitSplitPreparedTxnOnPrimary( for (const auto& sessInfos : splitPrepareManager->getSplitSessions(userSessionId, userTxnNumber).get()) { - if (MONGO_unlikely(hangInCommitSplitPreparedTxnOnPrimary.shouldFail())) { - LOGV2( - 7369500, - "transaction - hangInCommitSplitPreparedTxnOnPrimary fail point enabled. Blocking " - "until fail point is disabled"); - hangInCommitSplitPreparedTxnOnPrimary.pauseWhileSet(); - } - auto splitClientOwned = userOpCtx->getServiceContext()->makeClient("tempSplitClient"); auto splitOpCtx = splitClientOwned->makeOperationContext(); AlternativeClientRegion acr(splitClientOwned); -- cgit v1.2.1