[SERVER-79357] CheckMetadataConsistency is not reading chunks with snapshot read concern Created: 26/Jul/23  Updated: 29/Oct/23  Resolved: 10/Aug/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 7.1.0-rc0, 7.0.0-rc8
Fix Version/s: 7.1.0-rc0, 7.0.1

Type: Bug Priority: Major - P3
Reporter: Tommaso Tocci Assignee: Enrico Golfieri
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Problem/Incident
is caused by SERVER-75490 Use kSnapshotReadConcern when getting... Closed
Assigned Teams:
Sharding EMEA
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.0
Sprint: Sharding EMEA 2023-08-07, Sharding EMEA 2023-08-21
Participants:
Linked BF Score: 135

 Description   

CheckMetadataConsistency command is correctly setting snapshot read concern when reading chunks from config.chunks but since we are using the localCatalogClient (DBDirect client) the read concern provided in the command gets ignored.

Possible solution are:

  • use the normal CatalogClient, this will use remote command execution path that will honor the provided read concern
  • Set the read concern on the operation context before to invoking the DBDirectClient and reset once we reutrn from the call
  • We could also use an alternative client reagion so that we won't need to patch up the original operation context.


 Comments   
Comment by Githook User [ 17/Aug/23 ]

Author:

{'name': 'Enrico', 'email': 'enrico.golfieri@mongodb.com', 'username': 'enricogolfieri'}

Message: SERVER-79357 shard local aggregation request don't apply snapshot read concern (cherry-picked from 71982fab94bda7b5661a84a261b18d4c74efe646)
Branch: v7.0
https://github.com/mongodb/mongo/commit/8ce7148b986cc90fb5486e06c1a2ee4e438dc7b0

Comment by Githook User [ 10/Aug/23 ]

Author:

{'name': 'Enrico', 'email': 'enrico.golfieri@mongodb.com', 'username': 'enricogolfieri'}

Message: SERVER-79357 shard local aggregation request don't apply snapshot read concern
Branch: master
https://github.com/mongodb/mongo/commit/71982fab94bda7b5661a84a261b18d4c74efe646

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