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

The default 'shardingStatistics' serverStatus section takes locks

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.0.0-rc0, 6.0.6, 5.0.17, 6.3.1
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v6.3, v6.0, v5.0
    • Sharding EMEA 2023-03-20
    • 161

      Default serverStatus sections are used by FTDC and also for emergency debugging. Because of this, we should try to ensure that they can always make forward progress. Taking locks or performing I/O runs the risk that a server in some degraded state will not be able to collect FTDC metrics and thus will impede diagnostics.

      The shardingStatistics serverStatus section is included by default if the node is a cluster node, but it also takes locks. We should be able to read the estimated number of documents using the lock-free variant of the function.

            Assignee:
            pol.pinol@mongodb.com Pol Pinol
            Reporter:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: