[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: |
|
||||||||
| 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: |
| 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. |