[SERVER-55168] Allow tenant migration cloner to write to system.views collections Created: 11/Mar/21  Updated: 29/Oct/23  Resolved: 15/Mar/21

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 4.9.0

Type: Bug Priority: Major - P3
Reporter: Cheahuychou Mao Assignee: Xuerui Fa
Resolution: Fixed Votes: 0
Labels: pm-1791_other_required, read-only-views
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-55157 Make tenant migration hook throw an e... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Repl 2021-03-22
Participants:

 Description   

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.



 Comments   
Comment by Githook User [ 15/Mar/21 ]

Author:

{'name': 'XueruiFa', 'email': 'xuerui.fa@mongodb.com', 'username': 'XueruiFa'}

Message: SERVER-55168: Allow tenant migration cloner to write to system.views collections
Branch: master
https://github.com/mongodb/mongo/commit/fd19665e9ccad740ce082ce295afc6968bbf9d04

Generated at Thu Feb 08 05:35:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.