summaryrefslogtreecommitdiff
path: root/src/mongo/db/ttl.cpp
diff options
context:
space:
mode:
authorSamy Lanka <samy.lanka@mongodb.com>2020-06-25 15:27:53 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-07-07 19:18:59 +0000
commitc0c6890f477a9faa239dada415259fe57a2c6d7b (patch)
tree60b818a9b725e0c33bf74cf3a2bfbbebb224f272 /src/mongo/db/ttl.cpp
parent5485c9ed0309205ea0c82ee1b1c393e73207761c (diff)
downloadmongo-c0c6890f477a9faa239dada415259fe57a2c6d7b.tar.gz
SERVER-48658 Stop logging QueryPlanKilled error in TTL monitor
Diffstat (limited to 'src/mongo/db/ttl.cpp')
-rw-r--r--src/mongo/db/ttl.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/ttl.cpp b/src/mongo/db/ttl.cpp
index e224b6876e3..dfdd2f4aaa4 100644
--- a/src/mongo/db/ttl.cpp
+++ b/src/mongo/db/ttl.cpp
@@ -380,6 +380,10 @@ private:
try {
exec->executePlan();
+ } catch (const ExceptionFor<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;
} catch (const DBException& exception) {
LOGV2_WARNING(22543,
"ttl query execution for index {index} failed with status: {error}",