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

Check for standalone-only commands when checking if a command can be run on a secondary

    • Type: Icon: Task Task
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Replication

      When running a command on a secondary, we check if that command is allowed on the secondary here. If the command is only allowed to be run on a standalone node, then this will cause the command to fail with a NotMaster error instead of a helpful error for the user.

      We should add functionality to check for standalone-only commands in a manner analogous to AllowedOnSecondary to provide a better error for users.

            Assignee:
            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            Reporter:
            samy.lanka@mongodb.com Samyukta Lanka
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: