Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-55168

Allow tenant migration cloner to write to system.views collections

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

      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@mongodb.com Xuerui Fa
            Reporter:
            cheahuychou.mao@mongodb.com Cheahuychou Mao
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: