Remove explicit serverGlobalParams.clusterRole check from state change error rewrite library

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Service Arch
    • CAR Team 2024-03-18
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      The router role/mongos rewrites certain state-change errors before it returns them to clients, to prevent errors that mongos is merely 'proxying' from underlying shard-servers from confusing drivers about the state of mongos itself. Today, that behavior is gated by an explicit check on process being exclusively a router. However, the router-service of a process that provides both router and shard services should do the same rewrites for the same reasons. So we should remove the explicit check

            Assignee:
            Pol Pinol
            Reporter:
            George Wangensteen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: