<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 07:55:03 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[DOCS-7810] Replica set lastHeartbeat documentation is incorrect</title>
                <link>https://jira.mongodb.org/browse/DOCS-7810</link>
                <project id="10380" key="DOCS">Documentation</project>
                    <description>&lt;p&gt;The manual at &lt;a href=&quot;https://docs.mongodb.org/manual/reference/command/replSetGetStatus/#replSetGetStatus.members[n].lastHeartbeat&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://docs.mongodb.org/manual/reference/command/replSetGetStatus/#replSetGetStatus.members[n].lastHeartbeat&lt;/a&gt; states that:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;The lastHeartbeat value provides an ISODate formatted date and time of the transmission time of last heartbeat received from this member. Compare this value to the value of the date and lastHeartBeatRecv field to track latency between these members.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;If there are two nodes A and B and we are at node A, my understanding of this sentence is:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;&lt;tt&gt;lastHeartbeat&lt;/tt&gt; means the timestamp when the heartbeat was sent &lt;b&gt;from B to A&lt;/b&gt;&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;lastHeartbeatRecv&lt;/tt&gt; means the timestamp when B&apos;s heartbeat reply was received by A&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;However this is incorrect, as my testing seems to show that &lt;tt&gt;lastHeartbeat&lt;/tt&gt; keeps increasing in value and seems to track the current time, while &lt;tt&gt;lastHeartbeatRecv&lt;/tt&gt; is showing the time node B replies to the heartbeat request from A.&lt;/p&gt;

&lt;p&gt;Therefore, the manual is incorrect: &lt;tt&gt;lastHeartbeat&lt;/tt&gt; is apparently the timestamp when node A sends a heartbeat to node B.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Note:&lt;/b&gt; The source code in &lt;tt&gt;src/mongo/db/repl/member_heartbeat_data.h&lt;/tt&gt; also shows an incorrect comment.&lt;/p&gt;</description>
                <environment></environment>
        <key id="284587">DOCS-7810</key>
            <summary>Replica set lastHeartbeat documentation is incorrect</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="nick.larew@mongodb.com">Nicholas Larew</assignee>
                                    <reporter username="kevin.adistambha@mongodb.com">Kevin Adistambha</reporter>
                        <labels>
                            <label>groom</label>
                    </labels>
                <created>Thu, 5 May 2016 03:44:24 +0000</created>
                <updated>Mon, 30 Oct 2023 21:32:41 +0000</updated>
                            <resolved>Mon, 9 Oct 2017 21:02:02 +0000</resolved>
                                                    <fixVersion>Server_Docs_20231030</fixVersion>
                                    <component>manual</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>7</watches>
                                                                                                                <comments>
                            <comment id="1693759" author="xgen-internal-githook" created="Mon, 9 Oct 2017 21:06:04 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;nick.larew@10gen.com&apos;, &apos;name&apos;: &apos;Nick Larew&apos;, &apos;username&apos;: &apos;nlarew&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-7810&quot; title=&quot;Replica set lastHeartbeat documentation is incorrect&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-7810&quot;&gt;&lt;del&gt;DOCS-7810&lt;/del&gt;&lt;/a&gt;: Fixed replSetGetStatus lastHeartbeat and lastHeartbeatRecv descriptions&lt;/p&gt;

&lt;p&gt;Signed-off-by: kay &amp;lt;kay.kim@10gen.com&amp;gt;&lt;br/&gt;
Branch: v3.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/5712eb44d51abae774656dd8152e6e1a94c50edf&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/5712eb44d51abae774656dd8152e6e1a94c50edf&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1693756" author="xgen-internal-githook" created="Mon, 9 Oct 2017 21:03:03 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;nick.larew@10gen.com&apos;, &apos;name&apos;: &apos;Nick Larew&apos;, &apos;username&apos;: &apos;nlarew&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-7810&quot; title=&quot;Replica set lastHeartbeat documentation is incorrect&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-7810&quot;&gt;&lt;del&gt;DOCS-7810&lt;/del&gt;&lt;/a&gt;: Fixed replSetGetStatus lastHeartbeat and lastHeartbeatRecv descriptions&lt;/p&gt;

&lt;p&gt;Signed-off-by: kay &amp;lt;kay.kim@10gen.com&amp;gt;&lt;br/&gt;
Branch: v3.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/b37c33ea1f4555c8715d05a1c72e7238a2b435ce&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/b37c33ea1f4555c8715d05a1c72e7238a2b435ce&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1693755" author="xgen-internal-githook" created="Mon, 9 Oct 2017 21:02:37 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;nick.larew@10gen.com&apos;, &apos;name&apos;: &apos;Nick Larew&apos;, &apos;username&apos;: &apos;nlarew&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-7810&quot; title=&quot;Replica set lastHeartbeat documentation is incorrect&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-7810&quot;&gt;&lt;del&gt;DOCS-7810&lt;/del&gt;&lt;/a&gt;: Fixed replSetGetStatus lastHeartbeat and lastHeartbeatRecv descriptions&lt;/p&gt;

&lt;p&gt;Signed-off-by: kay &amp;lt;kay.kim@10gen.com&amp;gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/f698904de359f3ce7566f76e52182e09a5dd72f6&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/f698904de359f3ce7566f76e52182e09a5dd72f6&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1689591" author="nick.larew" created="Wed, 4 Oct 2017 21:17:06 +0000"  >&lt;p&gt;Per discussion w/ Spencer Brody,&lt;/p&gt;

&lt;p&gt;A = node on which replSetGetStatus is run&lt;br/&gt;
B = another member of the replica set&lt;/p&gt;

&lt;p&gt;lastHearbeatRecv =&amp;gt; the last time A received a heartbeat request from B&lt;br/&gt;
lastHeartBeat =&amp;gt; the last time A received a response from B to a heartbeat request sent by A&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                                                <inwardlinks description="backports">
                                        <issuelink>
            <issuekey id="1424995">SERVER-50038</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="442705">DOCS-10879</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                                        </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 6 Jun 2017 22:27:34 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        6 years, 18 weeks, 2 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>emet.ozar@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            6 years, 18 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>kevin.adistambha@mongodb.com</customfieldvalue>
            <customfieldvalue>nick.larew@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrmt0n:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsl4bj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="1324">KANBAN BUCKET</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrz2nz:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                </customfields>
    </item>
</channel>
</rss>