diff options
author | Samy Lanka <samy.lanka@mongodb.com> | 2020-06-25 15:27:53 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-07-07 19:18:59 +0000 |
commit | c0c6890f477a9faa239dada415259fe57a2c6d7b (patch) | |
tree | 60b818a9b725e0c33bf74cf3a2bfbbebb224f272 /src/mongo/db/ttl.cpp | |
parent | 5485c9ed0309205ea0c82ee1b1c393e73207761c (diff) | |
download | mongo-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.cpp | 4 |
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}", |