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

$FACET throws "BufBuilder attempted to grow()" while

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: 3.4.15
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide

      (The original code is NDA. I expect this bug fairly easy to reproduce.)

      Show
      (The original code is NDA. I expect this bug fairly easy to reproduce.)

      Description

      I get a "BufBuilder attempted to grow() to 67108866 bytes, past the 64MB limit." error when trying to move a pipeline to be the only argument of a $FACET operator.

      The whole pipeline works fine without the $FACET, there is a lot of data to return, but the $OUT operator is used.

      However, once within the $FACET, the above is triggered, despite $OUT still being specified outside the $FACET.

      $OUT cannot be used within the $FACET arguments, thus I either don't seem to have the necessary control over the problem, or the $OUT operator's settings are ignored within the embedded pipeline, and the intermediate results, which are returned from the constituent pipelines, are undergoing a "to document" conversion, as is the case with other mentions of this error message.

       

      assert: command failed: {
       "ok" : 0,
       "errmsg" : "BufBuilder attempted to grow() to 67108866 bytes, past the 64MB limit.",
       "code" : 13548,
       "codeName" : "Location13548"
       } : aggregate failed
       _getErrorWithCode@src/mongo/shell/utils.js:25:13
       doassert@src/mongo/shell/assert.js:16:14
       assert.commandWorked@src/mongo/shell/assert.js:370:5
       DBCollection.prototype.aggregate@src/mongo/shell/collection.js:1319:5
       @(shell):1:1
      2018-06-18T00:26:00.570+0100 E QUERY [thread1] Error: command failed: {
       "ok" : 0,
       "errmsg" : "BufBuilder attempted to grow() to 67108866 bytes, past the 64MB limit.",
       "code" : 13548,
       "codeName" : "Location13548"
       } : aggregate failed :
       _getErrorWithCode@src/mongo/shell/utils.js:25:13
       doassert@src/mongo/shell/assert.js:16:14
       assert.commandWorked@src/mongo/shell/assert.js:370:5
       DBCollection.prototype.aggregate@src/mongo/shell/collection.js:1319:5
       @(shell):1:1
      

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              brezniczky@gmail.com Janos Brezniczky
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: