summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mongo/db/ttl.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/ttl.cpp b/src/mongo/db/ttl.cpp
index c4977922eba..a3e872d5288 100644
--- a/src/mongo/db/ttl.cpp
+++ b/src/mongo/db/ttl.cpp
@@ -333,6 +333,11 @@ private:
Status result = exec->executePlan();
if (!result.isOK()) {
+ if (result == ErrorCodes::QueryPlanKilled) {
+ // It is expected that a collection drop can kill a query plan while the TTL monitor
+ // is deleting an old document, so ignore this error.
+ return;
+ }
LOGV2_ERROR(22543,
"ttl query execution for index {index} failed with status: {error}",
"TTL query execution failed",