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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Trivial - P5
    • None
    • Affects Version/s: None
    • Component/s: Replication
    • 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()
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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:
            [DO NOT USE] Backlog - Replication Team
            Reporter:
            Daniel Pasette (Inactive)
            Votes:
            11 Vote for this issue
            Watchers:
            21 Start watching this issue

              Created:
              Updated:
              Resolved: