diff options
author | Esha Maharishi <esha.maharishi@mongodb.com> | 2020-06-02 20:05:57 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-06-05 21:27:44 +0000 |
commit | e04a9896ee545cdf4248b8bfc2d92421ab3b6f85 (patch) | |
tree | 6e71f510173561453669a7981cf105187273dd43 /src/mongo/db/s | |
parent | d57593228bcda502ea4f652eadf7c13d2b3e2c4c (diff) | |
download | mongo-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.cpp | 5 |
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); |