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

XMLWordPrintableJSON

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

      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
            Reporter:
            Ian Boros
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: