Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-79357

CheckMetadataConsistency is not reading chunks with snapshot read concern

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.1.0-rc0, 7.0.1
    • 7.1.0-rc0, 7.0.0-rc8
    • None
    • None
    • Sharding EMEA
    • Fully Compatible
    • ALL
    • v7.0
    • Sharding EMEA 2023-08-07, Sharding EMEA 2023-08-21
    • 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.

      Attachments

        Activity

          People

            enrico.golfieri@mongodb.com Enrico Golfieri
            tommaso.tocci@mongodb.com Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: