diff options
author | Jonathan Abrahams <jonathan@mongodb.com> | 2018-05-25 13:47:07 -0400 |
---|---|---|
committer | Jonathan Abrahams <jonathan@mongodb.com> | 2018-09-20 16:01:13 -0400 |
commit | 06df250cacc2fbf7b1669201e7ab7b03fab2c173 (patch) | |
tree | d5d2347369be717cd9623d3eecae132971bff14c /pytests/powertest.py | |
parent | 62ddf96f847d5bbc301aad4fab94977671af417c (diff) | |
download | mongo-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-x | pytests/powertest.py | 3 |
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"] |