Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-1786

Error running command when rs is not fully setup

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Server 3.0.2
      Java driver 3.0.0

    Description

      Here is the situation

      The servers are setup for a replica set with a keyfile and replica name configured in the conf file

      I am trying to run a command on 127.0.0.1 to initialize the replica set. It fails with the following error

      29 Apr 2015 22:20:58,981 ERROR ~ MongDBInstance-configureReplicaSet: Timed out after 10000 ms while waiting for a server that matches ReadPreferenceServerSelector{readPreference=secondaryPreferred}. Client view of cluster state is {type=UNKNOWN, servers=[{address=127.0.0.1:27017, type=REPLICA_SET_GHOST, roundTrip Time=1.5 ms, state=CONNECTED}]
      

      If I remove the replica set parameter from the conf file the commands work fine. I need to run commands in this mode because that is now I initialize the replica set.

      Attachments

        Activity

          People

            Unassigned Unassigned
            dharshanr@scalegrid.net Dharshan Rangegowda
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: