summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Tuckman <ted.tuckman@mongodb.com>2019-02-01 11:17:38 -0500
committerTed Tuckman <ted.tuckman@mongodb.com>2019-02-01 15:51:57 -0500
commita42194fd5f453f3ec65e6b09edbf152e89ee104f (patch)
treeb8a253a9c73ff1425aff8493c4d93c738f502ba1
parent6c0c3f30d261de356b9c57d56a478c301298025d (diff)
downloadmongo-a42194fd5f453f3ec65e6b09edbf152e89ee104f.tar.gz
SERVER-39334 Don't run plan_cache_list_plans with balancer on
-rw-r--r--jstests/core/plan_cache_list_plans.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/jstests/core/plan_cache_list_plans.js b/jstests/core/plan_cache_list_plans.js
index 11c7922b4b1..51c200dbeeb 100644
--- a/jstests/core/plan_cache_list_plans.js
+++ b/jstests/core/plan_cache_list_plans.js
@@ -4,8 +4,11 @@
// # This test attempts to perform queries and introspect the server's plan cache entries. The
// # former operation may be routed to a secondary in the replica set, whereas the latter must be
// # routed to the primary.
+// # If the balancer is on and chunks are moved, the plan cache can have entries with isActive:
+// # false when the test assumes they are true because the query has already been run many times.
// assumes_read_preference_unchanged,
// does_not_support_stepdowns,
+// assumes_balancer_off,
// ]
(function() {