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

Fix the lifetime of ScopedMetricsCollector in ExecCommandDatabase

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.9.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • Service arch 2020-11-16
    • 43

      The instance of ScopedMetricsCollector (defined here) should not go out-of-scope so long as ExecCommandDatabase's future-chain (define here) is not executed. This would ensure that the metrics collector remains in scope long enough to collect its desired metrics.

            Assignee:
            amirsaman.memaripour@mongodb.com Amirsaman Memaripour
            Reporter:
            amirsaman.memaripour@mongodb.com Amirsaman Memaripour
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: