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

Confirm $lookup local read optimization doesn't miss data, migrated during the read

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • v7.2
    • QE 2023-11-13, QE 2023-11-27

      When $lookup targets only local shard for sub-pipeline, it performs local reads.

      However, if the targeted collection was already read by the same query, it is possible that some storage snapshots are left inside OperationContext, Transaction, etc. that will prevent the query from reading the latest data.

      We need to make sure that there is no discrepancy between routing info that we use and the data that we read.

            Assignee:
            ivan.fefer@mongodb.com Ivan Fefer
            Reporter:
            ivan.fefer@mongodb.com Ivan Fefer
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: