add_shard_1.js uses direct shard connection for a mongos writability check

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • ALL
    • CAR Team 2026-07-06
    • 200
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      jstests/sharding/add_shard_1.js uses db1, a direct connection to the shard replica set primary and then tries to write to a collection.

      If the shard’s CollectionShardingRuntime is in an unknown state during metadata recovery, a direct write is expected to fail with StaleConfig by design.

            Assignee:
            Pol Pinol
            Reporter:
            Pol Pinol
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: