summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jstests/noPassthrough/find_by_uuid_and_rename.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/jstests/noPassthrough/find_by_uuid_and_rename.js b/jstests/noPassthrough/find_by_uuid_and_rename.js
index d07c1da0ce6..206d9a0cbbd 100644
--- a/jstests/noPassthrough/find_by_uuid_and_rename.js
+++ b/jstests/noPassthrough/find_by_uuid_and_rename.js
@@ -39,6 +39,12 @@
while (conn.getDB("test").await_data.findOne({_id: "rename has ended"}) == null) {
for (let i = 0; i < repeatFind; i++) {
let res = findRenameDB.runCommand(findCmd);
+
+ // This is an acceptable transient error until SERVER-31695 has been completed.
+ if (res.code === ErrorCodes.QueryPlanKilled) {
+ print("Ignoring transient QueryPlanKilled error: " + res.errmsg);
+ continue;
+ }
assert.commandWorked(res, "could not run " + tojson(findCmd));
let cursor = new DBCommandCursor(findRenameDB, res);
let errMsg = "expected more data from command " + tojson(findCmd) + ", with result " +