-
Type: Bug
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: 3.2.1
-
Component/s: Replication
-
Fully Compatible
-
ALL
-
Repl F (01/29/16)
The electionTime field is not set in the heartbeat response from a primary.
On secondary, set log level to make command responses visible:
db.setLogLevel(4, 'executor')
In the secondary node's logs, examine log messages containing Received remote response: RemoteResponse with the fields hbmsg: "" and state: 1
2016-01-14T15:15:10.301-0500 D EXECUTOR [NetworkInterfaceASIO-Replication-0] Received remote response: RemoteResponse -- cmd:{ ok: 1.0, state: 1, v: 3, hbmsg: "", set: "foo", term: 4, primaryId: 1, opTime: { ts: Timestamp 1452802429000|2, t: 4 } }
Primary should be reporting its election time in the field electionTime:
2016-01-14T15:22:16.859-0500 D EXECUTOR [NetworkInterfaceASIO-Replication-0] Received remote response: RemoteResponse -- cmd:{ ok: 1.0, electionTime: new Date(6239740960213827585), state: 1, v: 3, hbmsg: "", set: "foo", term: 5, primaryId: 0, opTime: { ts: Timestamp 1452802904000|2, t: 5 } }