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

Metadata size is double counted in Document::getApproximateSize()

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.1.14
    • None
    • Querying
    • None
    • Fully Compatible
    • ALL
    • Query 2019-06-03

    Description

      We compute the size used in DocumentStorage here and then again here.

      The second time, we call getApproximateSize() on the geoNearPoint and searchHighlight metadata fields.

      We should change getApproximateSize() to still count the approximate size of geoNearPoint and searchHighlight, but not to double count the space metadata fields use in DocumentStorage.

       

      As part of this work, we may be able to revert the "allowDiskUse: true" added in this line as part of SERVER-40555.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ian.boros@mongodb.com Ian Boros
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: