diff options
author | Tommaso Tocci <tommaso.tocci@mongodb.com> | 2023-01-17 10:48:57 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-01-17 14:28:26 +0000 |
commit | 5fbe7207babd249273b51bdf4715d6ed4ae51c45 (patch) | |
tree | 96212f68a8985db52affbac2cc2de3ff9e6d0bf6 | |
parent | 7a5f7ea80c9f5c3f743f99c77853a76a2779eb6f (diff) | |
download | mongo-5fbe7207babd249273b51bdf4715d6ed4ae51c45.tar.gz |
SERVER-72877 Mongos retargeting logic in stepdown hooks should skip views
(cherry picked from commit ab05cf2179d112a92467de3e454c53f75eee81ba)
-rw-r--r-- | buildscripts/resmokelib/testing/hooks/stepdown.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/buildscripts/resmokelib/testing/hooks/stepdown.py b/buildscripts/resmokelib/testing/hooks/stepdown.py index c09602baee8..da42d0efd4a 100644 --- a/buildscripts/resmokelib/testing/hooks/stepdown.py +++ b/buildscripts/resmokelib/testing/hooks/stepdown.py @@ -627,6 +627,10 @@ class _StepdownThread(threading.Thread): # pylint: disable=too-many-instance-at break except pymongo.errors.NotMasterError: pass + except pymongo.errors.OperationFailure as ex: + if ex.code == 166: # CommandNotSupportedOnView + # listCollections return also views and collStats is not supported on views + break retarget_time = time.time() - start_time if retarget_time >= 60: raise RuntimeError( |