summaryrefslogtreecommitdiff
path: root/pytests/powertest.py
diff options
context:
space:
mode:
authorJonathan Abrahams <jonathan@mongodb.com>2018-05-25 13:47:07 -0400
committerJonathan Abrahams <jonathan@mongodb.com>2018-09-20 16:01:13 -0400
commit06df250cacc2fbf7b1669201e7ab7b03fab2c173 (patch)
treed5d2347369be717cd9623d3eecae132971bff14c /pytests/powertest.py
parent62ddf96f847d5bbc301aad4fab94977671af417c (diff)
downloadmongo-06df250cacc2fbf7b1669201e7ab7b03fab2c173.tar.gz
SERVER-35233 Fix remote collection validation by ignoring views
(cherry picked from commit 1e9a55f9bba4909732ba0b06bd3547df152864bf)
Diffstat (limited to 'pytests/powertest.py')
-rwxr-xr-xpytests/powertest.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pytests/powertest.py b/pytests/powertest.py
index c54f4e355cf..bbb2f9a72a7 100755
--- a/pytests/powertest.py
+++ b/pytests/powertest.py
@@ -1599,7 +1599,8 @@ def mongo_validate_collections(mongo):
invalid_colls = []
ebusy_colls = []
for db_name in mongo.database_names():
- for coll_name in mongo[db_name].collection_names():
+ for coll in mongo[db_name].list_collections(filter={"type": "collection"}):
+ coll_name = coll["name"]
res = mongo[db_name].command({"validate": coll_name, "full": True})
LOGGER.info("Validating %s %s: %s", db_name, coll_name, res)
ebusy = "EBUSY" in res["errors"] or "EBUSY" in res["warnings"]