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

Subtracted memory greater than the total memory

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0, 8.0.0-rc10
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • Fully Compatible
    • ALL
    • v8.0, v7.3, v7.0
    • QE 2024-06-24, QE 2024-07-08
    • 200

      In the context of SERVER-61281, memoisation was added for the computation of the approximate size of a document (code change). The approximate size of a document is computed as the sum of the bson object, some metadata and the cache size (code). With memoisation we do not compute the size again if the variable _snapshottedSize has already a value (code). However, as we load more of the document in the cache the size changes and the _snapshottedSize has not the correct size.

      However, this seems to be by design (unit test). The invariant that checks whether the memUsage that we want to subtract is at least as much as the total _memUsage was added later in SERVER-72328.

      So, we will remove the invariant.

            Assignee:
            foteini.alvanaki@mongodb.com Foteini Alvanaki
            Reporter:
            foteini.alvanaki@mongodb.com Foteini Alvanaki
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: