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-08-21 03:53:19 +0000 |
commit | cfbde7b91048af890fc1fa7ad47e154f336d6d9c (patch) | |
tree | 7c78ac92e7f86d432db9e645bddd65b2f22ba46d | |
parent | 5f50db39c481baf780cd83c288518bdcbe299ca0 (diff) | |
download | mongo-cfbde7b91048af890fc1fa7ad47e154f336d6d9c.tar.gz |
SERVER-48658 Stop logging QueryPlanKilled error in TTL monitor
(cherry picked from commit c0c6890f477a9faa239dada415259fe57a2c6d7b)
-rw-r--r-- | src/mongo/db/ttl.cpp | 5 |
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", |