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

Make sure events with large documentKey do not crash change stream

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Duplicate
    • None
    • None
    • Query Execution
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              backlog-query-execution Backlog - Query Execution
              wenbin.zhu@mongodb.com Wenbin Zhu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: