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

Wrong message when adding arbiter to a shard.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: 1.7.5
    • Fix Version/s: 1.9.0
    • Component/s: Replication, Sharding
    • Labels:
      None
    • Operating System:
      ALL

      Description

      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.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: