Use listShards in cardinality_and_frequency.js to determine the number of nodes

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • ALL
    • CAR Team 2026-01-19
    • 200
    • 🟦 Shard Catalog
    • None
    • None
    • None
    • None
    • None
    • None

      SERVER-114498 exposed a problem with getShardMap where in case of fixture with multiple routers the test might start with some mongos that have a shard registry not yet updated (SERVER-116303)

      The cardinality_and_frequency.js  uses getShardMap to determine the number of nodes. The issue described can cause the test to run with a write concern of 0 which can disrupt the test in many ways. 

            Assignee:
            Enrico Golfieri
            Reporter:
            Enrico Golfieri
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: