queryStats enabled for agg can cause a previously-working query to fail

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Query Integration
    • Fully Compatible
    • ALL
    • v8.0
    • Hide

      Attached js test file reproduces this issue

      Show
      Attached js test file reproduces this issue
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Aggregations on sharded clusters that return a result that is just under the 16MB BSONObj limit can succeed with query stats disabled, but fail due to exceeding the limit with query stats enabled. Adding the data-bearing nodes metrics to the response here is what causes the BSON on the shards to exceed the limit.

            Assignee:
            Alyssa Clark
            Reporter:
            Claudia Cortell (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: