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

Adding member in replica by hostname fails

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 2.0.1
    • Replication
    • None
    • Ubuntu 10.04
    • Linux

    Description

      For each node in replica set we have hostnames (mongo-0-0 for master, mongo-0-1 for the first slave and so on) in /etc/hosts.
      And when trying to add a slave to set using hostnames, we always get this particular error:

      'need most members up to reconfigure, not ok : mongo-0-1:27018', assertionCode: 13144

      The problem occurs only in case /etc/hosts is modified after mongod process was started on the master node.

      Although if we use IP-addresses instead of hostnames, or hack /etc/hosts before starting master's mongod, or if we simply restart mongod when manipulating with /etc/hosts is done everything seems to be alright, replication process begins and we get no errors.

      But unfortunately neither is acceptable for our setup.

      Attachments

        Activity

          People

            kristina Kristina Chodorow (Inactive)
            korsakov Dmytro Korsakov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: