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

error messages not useful for some commands not supported through mongos

    • Type: Icon: Task Task
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Usability
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Some commands which are not supported on mongos have useful error messages.

      For example, mongo::dbgrid_pub_cmds::ProfileCmd has a stub implementation which returns an error message "profile currently not supported via mongos".

      But there are several commands which just return "no such cmd" because they have no mongos implementation at all. It would be nice to add more useful error messages for some of them (i.e. "<cmd> cannot be run via mongos"). The list of these commands is:

      • cloneCollection
      • eval
      • geoSearch
      • replSetReconfig
      • replSetStepDown
      • replSetMaintenance
      • replSetSyncFrom
      • replSetInitiate
      • touch
      • shardingState
      • mapReduce

            Assignee:
            david.storch@mongodb.com David Storch
            Reporter:
            david.storch@mongodb.com David Storch
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: