[SERVER-48394] Operations on views should not reach onShardVersionMismatch Created: 25/May/20  Updated: 29/Oct/23  Resolved: 11/Jun/20

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

Type: Task Priority: Major - P3
Reporter: Pierlauro Sciarelli Assignee: Pierlauro Sciarelli
Resolution: Fixed Votes: 0
Labels: PM-1645-Milestone-1
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
causes SERVER-50056 Collections can become views during s... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding 2020-06-15
Participants:
Linked BF Score: 0

 Description   

In onShardVersionMismatch there is an explicit advise to not use AutoGetCollection in order to not incur in an InvalidViewDefinition.

 

It should be inspected if operations involving views are actually reaching the function, in which case there is some error.



 Comments   
Comment by Githook User [ 11/Jun/20 ]

Author:

{'name': 'Pierlauro Sciarelli', 'email': 'pierlauro.sciarelli@mongodb.com', 'username': 'pierlauro'}

Message: SERVER-48394 Operations on views should not reach onShardVersionMismatch
Branch: master
https://github.com/mongodb/mongo/commit/b12583e850e2dde7f5a21333920571e9ae675015

Comment by Pierlauro Sciarelli [ 05/Jun/20 ]

I would recommend to change AutoGetDB + CollectionLock to AutoGetCollection and launch an evergreen patch to find eventual problems.

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