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

lastHeartbeatMessage says "could not find member to sync from" when set is healthy

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Trivial - P5 Trivial - P5
    • None
    • Affects Version/s: None
    • Component/s: Replication
    • Labels:
    • Replication
    • ALL
    • Hide

      Start a two node replset (default params)
      rs.initiate()
      rs.add("node:30000")
      rs.status()

      Show
      Start a two node replset (default params) rs.initiate() rs.add("node:30000") rs.status()

      Unfortunately this doesn't happen deterministically, but it is easy to trigger. It appears that the lastHeartbeatMessage is just not cleared.

      This usually is cleared once documents are inserted, so marking as a trivial issue.

      dan:PRIMARY> rs.status()
      {
      	"set" : "dan",
      	"date" : ISODate("2015-08-26T18:16:10.319Z"),
      	"myState" : 1,
      	"term" : NumberLong(0),
      	"heartbeatIntervalMillis" : NumberLong(2000),
      	"members" : [
      		{
      			"_id" : 0,
      			"name" : "mortar:27017",
      			"health" : 1,
      			"state" : 1,
      			"stateStr" : "PRIMARY",
      			"uptime" : 76,
      			"optime" : Timestamp(1440612909, 1),
      			"optimeDate" : ISODate("2015-08-26T18:15:09Z"),
      			"infoMessage" : "could not find member to sync from",
      			"electionTime" : Timestamp(1440612906, 2),
      			"electionDate" : ISODate("2015-08-26T18:15:06Z"),
      			"configVersion" : 2,
      			"self" : true
      		},
      		{
      			"_id" : 1,
      			"name" : "mortar:30000",
      			"health" : 1,
      			"state" : 2,
      			"stateStr" : "SECONDARY",
      			"uptime" : 61,
      			"optime" : Timestamp(1440612909, 1),
      			"optimeDate" : ISODate("2015-08-26T18:15:09Z"),
      			"lastHeartbeat" : ISODate("2015-08-26T18:16:09.049Z"),
      			"lastHeartbeatRecv" : ISODate("2015-08-26T18:16:09.056Z"),
      			"pingMs" : NumberLong(1),
      			"lastHeartbeatMessage" : "could not find member to sync from",
      			"configVersion" : 2
      		}
      	],
      	"ok" : 1
      }
      

      Attaching log files from primary and secondary

        1. primary.log
          6 kB
        2. secondary.log
          5 kB

            Assignee:
            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            Reporter:
            dan@mongodb.com Daniel Pasette (Inactive)
            Votes:
            11 Vote for this issue
            Watchers:
            21 Start watching this issue

              Created:
              Updated:
              Resolved: