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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial - P5
    • Resolution: Gone away
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Replication
    • Labels:
    • Operating System:
      ALL
    • Steps To Reproduce:
      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()
    • Case:

      Description

      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

        Attachments

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

          Activity

            People

            Assignee:
            backlog-server-repl Backlog - Replication Team
            Reporter:
            pasette Daniel Pasette
            Participants:
            Votes:
            11 Vote for this issue
            Watchers:
            22 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: