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

isMaster fails for uninitiated replica set

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.5.8
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • ALL

      When running isMaster on an uninitiated rs I get:

      {u'info': u"can't currently get local.system.replset config from self or any seed (EMPTYUNREACHABLE)", u'ismaster': False, u'ok': 0.0, u'errmsg': u'replSet still trying to initialize'}

      The problem is that some drivers (PyMongo at least) run an isMaster command automatically on first connect to try to find the master/primary, ensure the connection is working, etc. So I can't connect to the set to run the initiate command from the driver. Any reason 'ok' can't be true/1.0 for this case?

            Assignee:
            dwight@mongodb.com Dwight Merriman
            Reporter:
            mike Michael Dirolf
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: