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

Port runCommandWithFixedRetryAttempts() to DBDirectClientWrapper

    • Sharding NYC
    • 4

      See SERVER-66674 for more context. Our goal is to relocate the mutations on Config server using runCommandWithFixedRetryAttempts() to DBDirectClientWrapper.

      Note: unlike the parent ticket, not all invocations of runCommandWithFixedRetryAttempts() are specific to the config server, but most of them are. There are ~75 total call sites. One example when this command is applied to a different shard is sendWriteCommandToRecipient(). We also need to exclude cases when the call may be from a normal shard to the config shard, however that would be very odd.

      To verify the conversion is correct add the invariant that when this is invoked on new direct client wrapper, the cluster role should be config server - this needs to be verified in normal mode, not as Catalog shard. If some cases are not obvious, create another ticket.

            Assignee:
            backlog-server-sharding-nyc [DO NOT USE] Backlog - Sharding NYC
            Reporter:
            andrew.shuvalov@mongodb.com Andrew Shuvalov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: