Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-87691

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

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

      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@mongodb.com Pol Pinol
            Reporter:
            george.wangensteen@mongodb.com George Wangensteen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: