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

Fix shard key update check in update_stage.cpp to exclude _id queries

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Sharding NYC 2023-02-20, Sharding NYC 2023-03-06
    • 160

      Documented here: https://github.com/10gen/mongo/pull/10271#discussion_r1097928283

      Replacement updates currently have logic that use the replacement doc for targeting, which would result in _id query replacement updates containing a valid shard version, bypassing the feature guard in update_stage.cpp

            Assignee:
            jason.zhang@mongodb.com Jason Zhang (Inactive)
            Reporter:
            jason.zhang@mongodb.com Jason Zhang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: