Reduce FTDC gaps due to LogicalSessionServerStatusSection

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Replication
    • Repl 2026-04-27
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In HELP-91789 there were some gaps in FTDC correlated with long times to generate the LogicalSessionCache serverStatus section.

      {"t":{"$date":"2026-04-10T00:31:29.309+00:00"},"s":"I",  "c":"COMMAND",  "id":20499,   "ctx":"ftdc","msg":"serverStatus was very slow","attr":{"timeStats":{"after basic":0,"after asserts":0,"after batchedDeletes":0,"after bucketCatalog":0,"after catalogStats":0,"after changeCollections":0,"after collectionCatalog":0,"after connections":0,"after electionMetrics":0,"after encryptionAtRest":0,"after extra_info":10,"after featureCompatibilityVersion":10,"after flowControl":10,"after globalLock":15,"after indexBuilds":15,"after indexBulkBuilder":15,"after indexStats":15,"after internalTransactions":15,"after locks":15,"after logicalSessionRecordCache":1278,"after mirroredReads":1278,"after network":1278,"after opLatencies":1278,"after opWriteConcernCounters":1278,"after opcounters":1278,"after opcountersRepl":1278,"after oplog":1279,"after oplogTruncation":1279,"after profiler":1279,"after queryAnalyzers":1279,"after queues":1279,"after readConcernCounters":1279,"after readPreferenceCounters":1279,"after repl":1279,"after scramCache":1279,"after security":1279,"after shardSplits":1279,"after storageEngine":1279,"after tcmalloc":1294,"after tenantMigrations":1294,"after trafficRecording":1294,"after transactions":1294,"after transportSecurity":1294,"after twoPhaseCommitCoordinator":1294,"after watchdog":1294,"after wiredTiger":1294,"at end":1309}}}
      

      To generate that section we only take a couple of mutexes to look at the size of two maps in the SessionCatalog and in LogicalSessionCacheImpl, we could maintain these sizes for statistics separately on an atomic to avoid having to take the mutex, reducing the chance of FTDC gaps.

            Assignee:
            Indy Prentice
            Reporter:
            Daniel Gomez Ferro
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: