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

Investigate if large PBRT can cause BSONObjTooLarge for non-get-more commands

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 8.1.0-rc0, 7.0.16
    • Component/s: None
    • None
    • Query Execution

      SERVER-92904 fixed an issue where a post-batch resume token (PBRT) was not accounted when packing a response batch. As an implication, the resulting batch could exceed the allowed size and cause the BSONObjectTooLarge error.

      During backporting SERVER-92904 I have discovered that PBRT is added in 3 more locations in our codebase:

      • find_cmd.cpp
      • run_aggregate.cpp
      • cluster_aggregation_planner.cpp

      As a part of this ticket, we need to check if we can get the BSONObjectTooLarge also in these code-paths and fix them when necessary.

            Assignee:
            Unassigned Unassigned
            Reporter:
            romans.kasperovics@mongodb.com Romans Kasperovics
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: