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

Collection acquisitions should always check if the read source needs changed

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • CAR Team 2025-04-14
    • 2

      On secondaries, some collections (replicated + oplog) should be read at the last applied timestamp whereas others (non-replicated) should be read at latest. In the shard role, we check all of the namespaces in the acquisition to see if any of them require last applied.

      However, if we first do an acquisition for an unreplicated collection, we will use latest. And then if we do a later acquisition for a replicated collection, we will not check the read source as the snapshot is already allocated. This could lead to us reading from a replicated collection at latest on a secondary, which could result in reading mid batch application.

            Assignee:
            allison.easton@mongodb.com Allison Easton
            Reporter:
            allison.easton@mongodb.com Allison Easton
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: