diff options
author | liubov.molchanova <liubov.molchanova@mongodb.com> | 2023-03-31 08:45:40 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-03-31 09:51:22 +0000 |
commit | d4d9753e67f26cbae43a92762b885e1a04a8daa3 (patch) | |
tree | 4aba24c716b3345b084cff9ca98d0e2c9dbc592a /src/mongo/db/transaction | |
parent | cba935effa931678d3f707c4cfd02b70268f9569 (diff) | |
download | mongo-d4d9753e67f26cbae43a92762b885e1a04a8daa3.tar.gz |
Revert "SERVER-73695 Add JS test for primary crashing in the middle of committing split prepared transactions"
This reverts commit 4714df5896ddaa06f3146531d2283a013f903996.
Diffstat (limited to 'src/mongo/db/transaction')
-rw-r--r-- | src/mongo/db/transaction/transaction_participant.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
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<TransactionParticipant>(); 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); |