Allow tenant migration cloner to write to system.views collections

XMLWordPrintableJSON

    • Fully Compatible
    • ALL
    • Repl 2021-03-22
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      According to the EVG patch builds for SERVER-55157, when the tenant data contains system.views collections, tenant migrations consistently abort due to the error shown below. 

      {'state': 'aborted', 'abortReason': {'code': 73, 'codeName': 'InvalidNamespace', 'errmsg': "Tenant migration recipient command failed :: caused by :: InvalidNamespace: Error cloning collection 'tenantMigrationTenantId_dbstats_js.system.views' :: caused by :: cannot write to tenantMigrationTenantId_dbstats_js.system.views"}, 'ok': 1.0, '$clusterTime': {'clusterTime': Timestamp(1615478932, 17), 'signature': {'hash': b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', 'keyId': 0}}, 'operationTime': Timestamp(1615478932, 5)}

      This error is thrown by this check here.

              Assignee:
              Xuerui Fa
              Reporter:
              Cheahuychou Mao
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: