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

Update command may send mirrored reads without filter, hint or collation

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Server Programmability
    • ALL

      Currently update command only sets _updateOpObj when the `updates` DocumentSequence is present in OpMsg. However this is often not the case, especially due to SERVER-77648 which means that all update commands sent from mongos to mongod are serialized in a way that does not have any DocumentSequence in OpMsg (this can be verified by doing a simple update through mongos in a sharded cluster).
       
      Without correctly setting _updateOpObj, the mirrored read requests sent to secondaries will not have filter, hint or collation, and this means that the documents we put into secondary's cache will not be the same as user read on primary. This might have negative impact on the effectiveness of cache warmup.

            Assignee:
            Unassigned Unassigned
            Reporter:
            wenbin.zhu@mongodb.com Wenbin Zhu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: