diff options
author | XueruiFa <xuerui.fa@mongodb.com> | 2021-03-15 16:49:51 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-03-15 19:10:59 +0000 |
commit | fd19665e9ccad740ce082ce295afc6968bbf9d04 (patch) | |
tree | fb2e4ac869cf5da6f610a671ab57e1843fc65dbf /buildscripts | |
parent | f30cfba9ae3e0bce5a0054f3623f243cbedcb5ae (diff) | |
download | mongo-fd19665e9ccad740ce082ce295afc6968bbf9d04.tar.gz |
SERVER-55168: Allow tenant migration cloner to write to system.views collections
Diffstat (limited to 'buildscripts')
-rw-r--r-- | buildscripts/resmokelib/testing/hooks/tenant_migration.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/buildscripts/resmokelib/testing/hooks/tenant_migration.py b/buildscripts/resmokelib/testing/hooks/tenant_migration.py index 8ef70056211..f857e05e0d2 100644 --- a/buildscripts/resmokelib/testing/hooks/tenant_migration.py +++ b/buildscripts/resmokelib/testing/hooks/tenant_migration.py @@ -329,15 +329,8 @@ class _TenantMigrationThread(threading.Thread): # pylint: disable=too-many-inst return abort_reason["code"] == self.ILLEGAL_OPERATION_ERR_CODE and re.search( err_msg_regex, abort_reason["errmsg"]) - def _is_write_to_system_views_err(self, abort_reason): - # TODO (SERVER-55168): Allow tenant migration cloner to write to system.views collections. - err_msg_regex = r"cannot write to {}_.*\.system\.views".format(self._tenant_id) - return abort_reason["code"] == self.INVALID_NS_ERR_CODE and re.search( - err_msg_regex, abort_reason["errmsg"]) - def _is_blacklisted_abort_reason(self, abort_reason): - return self._is_empty_id_index_spec_err(abort_reason) or self._is_write_to_system_views_err( - abort_reason) + return self._is_empty_id_index_spec_err(abort_reason) def _create_migration_opts(self, donor_rs_index, recipient_rs_index): donor_rs = self._tenant_migration_fixture.get_replset(donor_rs_index) |