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

memory owned by BSONObjExternalSorter may exceed _maxFilesize

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Index Maintenance
    • None
    • ALL

    Description

      BSONObjExternalSorter::finishMap() calls _cur->clear(), which resets the _cur array's size but does not destroy the BSONObjs contained within it. The contained BSONObjs will be destroyed when their array locations are reassigned, but if new keys are larger than old keys some array locations may never be reassigned. Any such excess memory won't be counted in the _curSizeSoFar size and won't be freed until _cur is destroyed.

      This is not likely to cause significant memory overhead but could in pathological cases.

      Attachments

        Activity

          People

            Unassigned Unassigned
            aaron Aaron Staple
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: