diff options
author | Louis Williams <louis.williams@mongodb.com> | 2018-06-21 14:35:15 -0400 |
---|---|---|
committer | Louis Williams <louis.williams@mongodb.com> | 2018-06-22 12:01:06 -0400 |
commit | c0b942e3a80b9ccd8434ab0927d97cbd1862d19a (patch) | |
tree | 63cdd26ca3d9261dd0c5636ae5236ec493f3123d | |
parent | 7f2c1d288cea146de09ecb9debe022cce15f1694 (diff) | |
download | mongo-c0b942e3a80b9ccd8434ab0927d97cbd1862d19a.tar.gz |
SERVER-35675 find_by_uuid_and_rename.js should not fail from QueryPlanKilled when yielding during a collection rename
-rw-r--r-- | jstests/noPassthrough/find_by_uuid_and_rename.js | 6 |
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 " + |