Exclude Injector Nodes from RSM Server Selection in Standby Clusters

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.0.0-rc0, 8.3.3, 8.0.24
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • CAR Team 2026-04-13, CAR Team 2026-04-27, CAR Team 2026-05-11
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In a standby cluster, the injector node acts as the replica set "primary," but it can only serve a subset of replication-related commands (e.g., hello, oplog reads). For all other commands, it returns an injector-specific error. This causes issues for mongoS and other cluster components (shards/config servers) that prefer talking to the primary during startup and normal operations.

      Solution:

      Add an exclusion in the RSM ServerSelector to filter out nodes tagged with

       {"processType": "INJECTOR"}

      from consideration when targeting nodes for non-replication commands. This ensures replication continues to work normally while preventing other components from inadvertently routing requests to the injector.

            Assignee:
            Igor Praznik
            Reporter:
            Allison Easton
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: