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

Reported size of TelemetryMetrics is too small

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Query Optimization
    • Fully Compatible
    • ALL
    • QO 2023-06-12, QO 2023-06-26
    • 35

      In the budget estimator for the PartitionedCache we just use a simple sizeof(TelemetryMetrics), but the type now has a BSONObj cmdObj which is not a simple type you can use 'sizeof' to correctly size. The same is true of the NamespaceString (uses a string buffer) and application name, since std::strings are variable size as well. We should include the size of this object (or whatever takes its place in SERVER-76330) to be sure we are properly accounting for memory used. 

       

      Also related to SERVER-76526 - right now that BSONObj is left out of this computation as well.

            Assignee:
            charlie.swanson@mongodb.com Charlie Swanson
            Reporter:
            charlie.swanson@mongodb.com Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: