<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:28:06 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>[SERVER-31758] Incorrect uptime reported in rs.status() by recently restarted node</title>
                <link>https://jira.mongodb.org/browse/SERVER-31758</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;After restart of `mongod` on secondary node, `rs.status()` is reporting incorrect uptime of other nodes. Primary node is reporting correct uptime.&lt;/p&gt;</description>
                <environment>Amazon Linux</environment>
        <key id="452331">SERVER-31758</key>
            <summary>Incorrect uptime reported in rs.status() by recently restarted node</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="13202">Works as Designed</resolution>
                                        <assignee username="spencer@mongodb.com">Spencer Brody</assignee>
                                    <reporter username="dabest1">dabest1</reporter>
                        <labels>
                    </labels>
                <created>Sat, 28 Oct 2017 08:43:30 +0000</created>
                <updated>Fri, 27 Oct 2023 13:54:08 +0000</updated>
                            <resolved>Thu, 25 Jan 2018 22:38:41 +0000</resolved>
                                                                    <component>Replication</component>
                                        <votes>0</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="1785484" author="spencer" created="Thu, 25 Jan 2018 22:38:33 +0000"  >&lt;p&gt;I do not think there is a bug here, this is the intended behavior.  replSetGetStatus reports what the node it is run against believes the state of the other nodes to be, it is fundamentally about reflecting one node&apos;s view of the world, which is not necessarily the correct view of the world as observed by a perfect &apos;god&apos; observer.  In this case the node that the command was run against never saw the node that was restarted as down, thus it reporting a high uptime for it is correct.&lt;/p&gt;</comment>
                            <comment id="1773026" author="mark.agarunov" created="Fri, 12 Jan 2018 17:56:33 +0000"  >&lt;p&gt;Hello &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=MongoDBA_IRE&quot; class=&quot;user-hover&quot; rel=&quot;MongoDBA_IRE&quot;&gt;MongoDBA_IRE&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thank you for providing this information. As detailed by Spencer in the previous reply, this appears to be due to the node restarting so quickly that other nodes never see it as down. I&apos;ve set the fixVersion on this ticket to &quot;Needs Triage&quot; to be planned against our currently scheduled work. Please follow this ticket for updates on this issue.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Mark&lt;/p&gt;</comment>
                            <comment id="1770590" author="spencer" created="Wed, 10 Jan 2018 19:08:12 +0000"  >&lt;p&gt;From mongod_802.log:&lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;2017-12-11T11:42:51.089+0000 I CONTROL  [signalProcessingThread] got signal 15 (Terminated), will terminate after current cmd ends&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;2017-12-11T11:42:51.633+0000 I CONTROL  [initandlisten] shutting down with code:0&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;2017-12-11T11:42:52.021+0000 I CONTROL  [main] ***** SERVER RESTARTED *****&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;2017-12-11T11:42:52.038+0000 I CONTROL  [initandlisten] MongoDB starting : pid=7955 port=28122 dbpath=/mongo/data 64-bit host=extdubmongodb802.eu.dsext.susq.com&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;2017-12-11T11:42:52.610+0000 I REPL     [rsSync] transition to SECONDARY&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;The whole restart happens in less than a second.  That means the primary most likely just never actually noticed that that secondary was down, since it wouldn&apos;t ever have gone longer than the heartbeat timeout without responding.  Looking at the logs of the primary supports this hypothesis, there are no messages indicating it ever considers node 802 down.&lt;/p&gt;

&lt;p&gt;The important thing to note is that the &apos;uptime&apos; reported in replSetGetStatus for other nodes is the amount of time that has passed since the last time &lt;b&gt;this node&lt;/b&gt; considered the other node down.  It is thus likely to be different than what the other node would report as its own uptime.&lt;/p&gt;</comment>
                            <comment id="1749657" author="mongodba_ire" created="Tue, 12 Dec 2017 15:05:18 +0000"  >&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;Done as adiagnostic.data.tar.gz&lt;/p&gt;

&lt;p&gt;Thank you,&lt;/p&gt;</comment>
                            <comment id="1748888" author="mark.agarunov" created="Mon, 11 Dec 2017 20:43:13 +0000"  >&lt;p&gt;Hello &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=MongoDBA_IRE&quot; class=&quot;user-hover&quot; rel=&quot;MongoDBA_IRE&quot;&gt;MongoDBA_IRE&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thank you for providing these logs. I&apos;ve reopened the ticket and am investigating the issue. If possible, could you also archive (tar or zip) the &lt;tt&gt;$dbpath/diagnostic.data&lt;/tt&gt; folder and attach it to this ticket? This contains some addition debugging information that may be helpful in diagnosing this issue.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Mark&lt;/p&gt;</comment>
                            <comment id="1748406" author="mongodba_ire" created="Mon, 11 Dec 2017 15:31:57 +0000"  >&lt;p&gt;HI,&lt;/p&gt;

&lt;p&gt;Separate/Independent of previous poster, I too am experiencing this issue. MongoDB v3.4.7&lt;/p&gt;

&lt;p&gt;I used the secure link above to upload logs.&lt;/p&gt;

&lt;p&gt;If I restart the secondary Instance the uptime does not change basically.&lt;/p&gt;

&lt;p&gt;Cheers,&lt;br/&gt;
Ciaran&lt;/p&gt;</comment>
                            <comment id="1740347" author="mark.agarunov" created="Fri, 1 Dec 2017 18:53:47 +0000"  >&lt;p&gt;Hello &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=dabest1&quot; class=&quot;user-hover&quot; rel=&quot;dabest1&quot;&gt;dabest1&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;We haven&#8217;t heard back from you for some time, so I&#8217;m going to mark this ticket as resolved. If this is still an issue for you, please provide additional information and we will reopen the ticket.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Mark&lt;/p&gt;</comment>
                            <comment id="1723077" author="mark.agarunov" created="Fri, 10 Nov 2017 21:56:37 +0000"  >&lt;p&gt;Hello &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=dabest1&quot; class=&quot;user-hover&quot; rel=&quot;dabest1&quot;&gt;dabest1&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;We still need additional information to diagnose the problem. If this is still an issue for you, would you please:&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Please provide the output of &lt;tt&gt;rs.status()&lt;/tt&gt; from all affected nodes&lt;/li&gt;
	&lt;li&gt;Please provide the complete log files from all affected nodes&lt;/li&gt;
	&lt;li&gt;Which version(s) of mongodb are being used?&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Thanks,&lt;br/&gt;
Mark&lt;/p&gt;</comment>
                            <comment id="1712822" author="mark.agarunov" created="Mon, 30 Oct 2017 19:00:26 +0000"  >&lt;p&gt;Hello &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=dabest1&quot; class=&quot;user-hover&quot; rel=&quot;dabest1&quot;&gt;dabest1&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thank you for the response. I&apos;ve generated a &lt;a href=&quot;https://10gen-httpsupload.s3.amazonaws.com/upload_forms/8b3bf022-94e2-422c-a7f5-3fa373a232a9.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;secure upload portal&lt;/a&gt; so that you can send us these files privately.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Mark&lt;/p&gt;</comment>
                            <comment id="1712820" author="dabest1" created="Mon, 30 Oct 2017 18:56:23 +0000"  >&lt;p&gt;Hello Mark,&lt;/p&gt;

&lt;p&gt;Is there a private upload feature? Where I would be able to upload the files and they are not publicly visible.&lt;/p&gt;

&lt;p&gt;Thanks.&lt;/p&gt;</comment>
                            <comment id="1712654" author="mark.agarunov" created="Mon, 30 Oct 2017 17:08:19 +0000"  >&lt;p&gt;Hello &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=dabest1&quot; class=&quot;user-hover&quot; rel=&quot;dabest1&quot;&gt;dabest1&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thank you for the report. To get a better idea of why this may be happening, I&apos;d like to request some additional information:&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Please provide the output of &lt;tt&gt;rs.status()&lt;/tt&gt; from all affected nodes&lt;/li&gt;
	&lt;li&gt;Please provide the complete log files from all affected nodes&lt;/li&gt;
	&lt;li&gt;Which version(s) of mongodb are being used?&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;This should give us a better insight into what may be causing the uptime to be reported incorrectly.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Mark&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>11.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 30 Oct 2017 17:08:19 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        6 years, 2 weeks, 6 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>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            6 years, 2 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>MongoDBA_IRE</customfieldvalue>
            <customfieldvalue>dabest1</customfieldvalue>
            <customfieldvalue>mark.agarunov</customfieldvalue>
            <customfieldvalue>spencer@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|htiyaf:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|htaqtr:</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_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|htike7:</customfieldvalue>

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