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

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

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.14
    • Affects Version/s: None
    • Component/s: Querying
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Query 2019-06-03

      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.

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

              Created:
              Updated:
              Resolved: