summaryrefslogtreecommitdiff
path: root/src/mongo/db/s
diff options
context:
space:
mode:
authorEsha Maharishi <esha.maharishi@mongodb.com>2020-06-02 20:05:57 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-06-05 21:27:44 +0000
commite04a9896ee545cdf4248b8bfc2d92421ab3b6f85 (patch)
tree6e71f510173561453669a7981cf105187273dd43 /src/mongo/db/s
parentd57593228bcda502ea4f652eadf7c13d2b3e2c4c (diff)
downloadmongo-e04a9896ee545cdf4248b8bfc2d92421ab3b6f85.tar.gz
SERVER-48550 Range deletion code should allow exceptions from PlanExecutor::getNext to bubble up to the retry loop instead of swallowing them
Diffstat (limited to 'src/mongo/db/s')
-rw-r--r--src/mongo/db/s/range_deletion_util.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/db/s/range_deletion_util.cpp b/src/mongo/db/s/range_deletion_util.cpp
index ffc9235475f..374402fc82f 100644
--- a/src/mongo/db/s/range_deletion_util.cpp
+++ b/src/mongo/db/s/range_deletion_util.cpp
@@ -227,7 +227,10 @@ StatusWith<int> deleteNextBatch(OperationContext* opCtx,
"namespace"_attr = nss,
"explainGetWinningPlanStats"_attr =
Explain::getWinningPlanStats(exec.get()));
- break;
+ uasserted(ErrorCodes::OperationFailed,
+ str::stream() << "Cursor error while trying to delete " << redact(min)
+ << " to " << redact(max) << " in " << nss.ns()
+ << ", stats: " << Explain::getWinningPlanStats(exec.get()));
}
invariant(PlanExecutor::ADVANCED == state);