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

Replica Set configuration

    XMLWordPrintableJSON

Details

    • Icon: Question Question
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Replication
    • None

    Description

      [Server log]

      2017-10-16T06:30:30.988100711Z 2017-10-16T06:30:30.987+0000 I REPL     [conn1] replSetReconfig admin command received from client
      2017-10-16T06:31:01.151444478Z 2017-10-16T06:31:01.151+0000 I NETWORK  [conn1] Socket recv() timeout  X.X.X.X:27017
      2017-10-16T06:31:01.152286316Z 2017-10-16T06:31:01.151+0000 I NETWORK  [conn1] SocketException: remote: (NONE):0 error: 9001 socket exception [RECV_TIMEOUT] server [X.X.X.X:27017]
      2017-10-16T06:31:01.152313290Z 2017-10-16T06:31:01.151+0000 I NETWORK  [conn1] can't authenticate to node2:27017 (X.X.X.X) failed as internal user, error: network error while attempting to run command 'saslStart' on host 'node2:27017'
      2017-10-16T06:31:01.152324083Z 2017-10-16T06:31:01.151+0000 I REPL     [conn1] replSetReconfig config object with 2 members parses ok
      2017-10-16T06:31:01.152332099Z 2017-10-16T06:31:01.151+0000 I ASIO     [NetworkInterfaceASIO-Replication-0] Connecting to node2:27017
      2017-10-16T06:31:11.152173626Z 2017-10-16T06:31:11.151+0000 W REPL     [ReplicationExecutor] Failed to complete heartbeat request to node2:27017; ExceededTimeLimit: Couldn't get a connection within the time limit
      2017-10-16T06:31:11.152294763Z 2017-10-16T06:31:11.152+0000 E REPL     [conn1] replSetReconfig failed; NodeNotFound: Quorum check failed because not enough voting nodes responded; required 2 but only the following 1 voting nodes responded: node1:27017; the following nodes did not respond affirmatively: node2:27017 failed with Couldn't get a connection within the time limit
      2017-10-16T06:31:11.153480974Z 2017-10-16T06:31:11.152+0000 I COMMAND  [conn1] command admin.$cmd appName: "MongoDB Shell" command: replSetReconfig { replSetReconfig: { _id: "my_replica", version: 2, protocolVersion: 1, members: [ { _id: 0, host: "node1:27017", arbiterOnly: false, buildIndexes: true, hidden: false, priority: 1.0, tags: {}, slaveDelay: 0, votes: 1 }, { _id: 1.0, host: "node2:27017" } ], settings: { chainingAllowed: true, heartbeatIntervalMillis: 2000, heartbeatTimeoutSecs: 10, electionTimeoutMillis: 10000, catchUpTimeoutMillis: 2000, getLastErrorModes: {}, getLastErrorDefaults: { w: 1, wtimeout: 0 }, replicaSetId: ObjectId('59e446098e9cfb134480aa4f') } } } numYields:0 reslen:330 locks:{ Global: { acquireCount: { r: 1, W: 1 } } } protocol:op_command 40164ms
      2017-10-16T06:31:21.152196585Z 2017-10-16T06:31:21.151+0000 I ASIO     [NetworkInterfaceASIO-Replication-0] Failed to connect to node2:27017 - NetworkInterfaceExceededTimeLimit: Operation timed out, request was RemoteCommand 66 -- target:node2:27017 db:admin cmd:{ isMaster: 1 }
      2017-10-16T06:31:21.152260029Z 2017-10-16T06:31:21.151+0000 I ASIO     [NetworkInterfaceASIO-Replication-0] Dropping all pooled connections to node2:27017 due to failed operation on a connection
      

      [Message]

      my_replica:PRIMARY> rs.add("node2:27017")
      {
              "ok" : 0,
              "errmsg" : "Quorum check failed because not enough voting nodes responded; required 2 but only the following 1 voting nodes responded: node1:27017; the following nodes did not respond affirmatively: node2:27017 failed with Couldn't get a connection within the time limit",
              "code" : 74,
              "codeName" : "NodeNotFound"
      }
      

      Attachments

        Activity

          People

            mark.agarunov Mark Agarunov
            sungbeom Sungbeom Cho
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: