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

Make sure events with large documentKey do not crash change stream

    • Type: Icon: Task Task
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Query Execution
    • None
    • Query Execution

      For change events with fullDocument field, the documentKey would be duplicated in the fullDocument field. If the document has large documentKey, the total size of the event would exceed the 16MB bson limit because of the duplication, and cause the change stream cursor to fail. What could be worse is that the resumeToken can also encode documentKey, resulting in more duplicates. We need to investigate approaches to mitigate this.

            Assignee:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            wenbin.zhu@mongodb.com Wenbin Zhu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: