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

Wrong message when adding arbiter to a shard.

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.9.0
    • Affects Version/s: 1.7.5
    • Component/s: Replication, Sharding
    • Labels:
      None
    • ALL

      When trying to add a replica set as a new shard and specifying an arbiter among hosts, it replies with error like "host XXX does not belong to replica set YYY" (when it really does).

      During discussion at https://groups.google.com/forum/?hl=en&pli=1#!topic/mongodb-user/raZ8mJteML8 it turned out that currently you can't add arbiter to a shard. And, indeed, if you omit it from the command, everything works.

      Also, when you specify non-existent host, the error message is the same!

      RESOLUTION: provide two distinctive messages for two cases described above.

      • host XXX is an arbiter. Can't add arbiter to shard.
      • host XXX is unreachable. Check your hostname/port.

            Assignee:
            kristina Kristina Chodorow (Inactive)
            Reporter:
            sergei.tulentsev@gmail.com Sergei Tulentsev
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: