CheckMetadataConsistency is not reading chunks with snapshot read concern

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: 8.0.10, 8.1.1
    • Component/s: None
    • None
    • Catalog and Routing
    • ALL
    • CAR Team 2025-06-23
    • 200
    • None
    • 3
    • TBD
    • 🟦 Shard Catalog
    • None
    • None
    • None
    • None
    • None
    • None

      Even though the check metadata consistency machinery is supposed to read at snapshot, when using the DBDirectClient we don't take into account the command's readconcern. This means we end up executing the command with read concern local and that can cause checkMetadataConsistency to read inconsistent data.

      This exact same problem was solved in SERVER-79357 by making RSLocalClient::runAggregation set the readConcern in the Operation context directly, however SERVER-99966 changed the logic and started using DBDirectClient directly.

            Assignee:
            Daniel Gomez Ferro
            Reporter:
            Daniel Gomez Ferro
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: