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

Implement Return CanNotTargetItself error from Shard::runCommand

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Sharding
    • Fully Compatible

      Currently its possible to run a command on the node that schedules it via
      ShardRemote::runCommand. Instead the ShardRemote instance should return a new ErrorCode::CanNotTargetItself. This will allow clients that call it to catch the error and implement a different scenario. e.g. running the command locally.
      The possible implementation is to make RemoteCommandTargeter::findHost issue an error if its requested to "target itself". The code written as a part of SERVER-27772 fix needs to address the change when its done.

            Assignee:
            backlog-server-sharding [DO NOT USE] Backlog - Sharding Team
            Reporter:
            misha.tyulenev@mongodb.com Misha Tyulenev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: