Fix count_secondaryok.js test

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-05-11
    • 200
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The test count_secondaryok.js fails deterministically in the sharding_config_shard suite because it stops the only primary in rs0, leaving the cluster without a reachable primary.

      During teardown, ShardingTest.stop() runs the routing-table consistency hook, which makes a call against the config primary with primary read preference. Because the cluster no longer has a primary, that call times out during host selection after roughly 15 seconds and fails with FailedToSatisfyReadPreference. The exception then propagates out of ShardingTest.stop(), causing the test itself to fail.

            Assignee:
            Silvia Surroca
            Reporter:
            Silvia Surroca
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: