[SERVER-85583] Running an aggregate on a view may throw IllegalChangeToExpectedDatabaseVersion Created: 23/Jan/24  Updated: 31/Jan/24  Resolved: 31/Jan/24

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 7.3.0-rc1
Fix Version/s: 8.0.0-rc0

Type: Bug Priority: Major - P3
Reporter: Silvia Surroca Assignee: Jordi Serra Torrens
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File 0001-Repro-85583.patch    
Issue Links:
Backports
Depends
Problem/Incident
is caused by SERVER-81233 Prevent kickback to router when readi... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.3
Sprint: CAR Team 2024-02-05
Participants:
Linked BF Score: 134

 Description   

We can get an IllegalChangeToExpectedDatabaseVersion error when we create a ScopedSetShardRole under runAggregateOnView() if the view dbVersion mismatches with the dbVersion of its linked collection. For instance, this could happen if there is a movePrimary running concurrently.



 Comments   
Comment by Githook User [ 31/Jan/24 ]

Author:

{'name': 'Silvia Surroca', 'email': 'silvia.surroca@mongodb.com', 'username': 'silviasuhu'}

Message: SERVER-85583 Running an aggregate on a view may throw IllegalChangeToExpectedDatabaseVersion (#18326)

GitOrigin-RevId: 3477a0bc3a282b365196ee6f4dd40c0e59141422
Branch: master
https://github.com/mongodb/mongo/commit/4bef4c1734cd1f32cb2232da7a779bfc4cd772ae

Generated at Thu Feb 08 06:58:06 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.