[DOCS-7810] Replica set lastHeartbeat documentation is incorrect Created: 05/May/16 Updated: 30/Oct/23 Resolved: 09/Oct/17 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | manual |
| Affects Version/s: | None |
| Fix Version/s: | Server_Docs_20231030 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Kevin Adistambha | Assignee: | Nicholas Larew |
| Resolution: | Done | Votes: | 0 |
| Labels: | groom | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Days since reply: | 6 years, 18 weeks, 2 days ago | ||||||||||||||||||||
| Description |
|
The manual at https://docs.mongodb.org/manual/reference/command/replSetGetStatus/#replSetGetStatus.members[n].lastHeartbeat states that:
If there are two nodes A and B and we are at node A, my understanding of this sentence is:
However this is incorrect, as my testing seems to show that lastHeartbeat keeps increasing in value and seems to track the current time, while lastHeartbeatRecv is showing the time node B replies to the heartbeat request from A. Therefore, the manual is incorrect: lastHeartbeat is apparently the timestamp when node A sends a heartbeat to node B. Note: The source code in src/mongo/db/repl/member_heartbeat_data.h also shows an incorrect comment. |
| Comments |
| Comment by Githook User [ 09/Oct/17 ] |
|
Author: {'email': 'nick.larew@10gen.com', 'name': 'Nick Larew', 'username': 'nlarew'}Message: Signed-off-by: kay <kay.kim@10gen.com> |
| Comment by Githook User [ 09/Oct/17 ] |
|
Author: {'email': 'nick.larew@10gen.com', 'name': 'Nick Larew', 'username': 'nlarew'}Message: Signed-off-by: kay <kay.kim@10gen.com> |
| Comment by Githook User [ 09/Oct/17 ] |
|
Author: {'email': 'nick.larew@10gen.com', 'name': 'Nick Larew', 'username': 'nlarew'}Message: Signed-off-by: kay <kay.kim@10gen.com> |
| Comment by Nicholas Larew [ 04/Oct/17 ] |
|
Per discussion w/ Spencer Brody, A = node on which replSetGetStatus is run lastHearbeatRecv => the last time A received a heartbeat request from B |