Increase RouterRole unit test coverage

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Catalog and Routing
    • Fully Compatible
    • CAR Team 2025-06-09, CAR Team 2025-06-23, CAR Team 2025-07-07, CAR Team 2025-07-21
    • 0
    • 🟩 Routing and Topology
    • None
    • None
    • None
    • None
    • None
    • None

      The new tests cover:

      • DBPrimaryRouter and CollectionRouter retry logic for various stale errors (StaleConfig, StaleDbVersion, StaleEpoch) outside of transactions. The new sub-class is added that does not initialize a session, so the OperationContext will not contain a TransactionRouter instance.
      • Simple ShardNotFound error test.
      • Simple TransactionParticipantFailedUnyield error test.
      • Routing tests that validate correct shard targeting at specific timestamps using transaction and read concern cluster times.
      • MultiCollectionRouter multi-namespace routing retry logic.
      • Special case for timeseries Bucket collection namespace.

            Assignee:
            Igor Praznik
            Reporter:
            Silvia Surroca
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: