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

The default 'shardingStatistics' serverStatus section takes locks

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 7.0.0-rc0, 6.0.6, 5.0.17, 6.3.1
    • None
    • None
    • Fully Compatible
    • ALL
    • v6.3, v6.0, v5.0
    • Sharding EMEA 2023-03-20
    • 161

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: