[SERVER-47345] Fix causal consistency bug in $merge code on mongos Created: 06/Apr/20  Updated: 29/Oct/23  Resolved: 07/Apr/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.4.0-rc0, 4.7.0

Type: Bug Priority: Major - P3
Reporter: Arun Banala Assignee: Arun Banala
Resolution: Fixed Votes: 0
Labels: qexec-team
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
is related to SERVER-69244 $merge fails when session default rea... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4
Sprint: Query 2020-04-20
Participants:

 Description   

We are not passing afterClusterTime when we do listIndexes in aggregate $merge here. So the listIndexes doesn't obey the causal consistency and runs in parallel with the createIndexes command.
This can be fixed by copying the readConcern (which holds afterClusterTime) from opCtx .



 Comments   
Comment by Arun Banala [ 07/Apr/20 ]

Author:

{'name': 'Arun Banala', 'email': 'arun.banala@mongodb.com', 'username': 'banarun'}

Message: SERVER-47345 Fix causal consistency bug in $merge code on mongos
Branch: master
https://github.com/mongodb/mongo/commit/51a0252cdc5918d71bc816b4b360e2ea6145962d

Comment by Githook User [ 07/Apr/20 ]

Author:

{'name': 'Arun Banala', 'email': 'arun.banala@mongodb.com', 'username': 'banarun'}

Message: SERVER-47345 Fix causal consistency bug in $merge code on mongos
Branch: v4.4
https://github.com/mongodb/mongo/commit/961c26475c1560f575dd95d6a30294d07b72a707

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