<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:58:09 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-1823] db.slaves.find()  and rs.status() reporting different values of date of last sync</title>
                <link>https://jira.mongodb.org/browse/SERVER-1823</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Problem:&lt;/p&gt;

&lt;p&gt;Customer had accidentally set the clocktime of a secondary member of a replicate set to a date in 2030.&lt;/p&gt;

&lt;p&gt;When they performed a rs.status() they saw&lt;/p&gt;


&lt;p&gt;rs.status()&lt;br/&gt;
{&lt;br/&gt;
	&quot;set&quot; : &quot;set1&quot;,&lt;br/&gt;
	&quot;date&quot; : &quot;Sat Sep 21 2030 14:15:14 GMT+0000 (UTC)&quot;,&lt;br/&gt;
	&quot;myState&quot; : 2,&lt;br/&gt;
	&quot;members&quot; : [&lt;br/&gt;
		&lt;/p&gt;
{
			&quot;_id&quot; : 0,
			&quot;name&quot; : &quot;rs1a:27018&quot;,
			&quot;health&quot; : 1,
			&quot;state&quot; : 1,
			&quot;uptime&quot; : 347973,
			&quot;lastHeartbeat&quot; : &quot;Sat Sep 21 2030 14:15:13 GMT+0000 (UTC)&quot;
		}
&lt;p&gt;,&lt;/p&gt;
		{
			&quot;_id&quot; : 1,
			&quot;name&quot; : &quot;rs1b:27018&quot;,
			&quot;health&quot; : 1,
			&quot;state&quot; : 2,
			&quot;self&quot; : true
		}
&lt;p&gt;	],&lt;br/&gt;
	&quot;ok&quot; : 1&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;The date being reported was &quot;Sat Sep 21 2030 14:15:14 GMT+0000 (UTC)&quot; (date and last hearbeat), which was the clocktime set on the machine.&lt;/p&gt;

&lt;p&gt;However, looking further into the issue there seems to be a difference in what was being recording. A query to db.slaves.find() gave&lt;/p&gt;

&lt;p&gt;{ &quot;_id&quot; : ObjectId(&quot;4c8e86f0c2aec46f3455b99a&quot;), &quot;host&quot; : &quot;10.121.14.4&quot;, &quot;ns&quot; : &quot;local.oplog.rs&quot;, &quot;syncedTo&quot; : &lt;/p&gt;
{ &quot;t&quot; : 1285085434000, &quot;i&quot; : 30 }
&lt;p&gt; } &lt;/p&gt;

&lt;p&gt;The syncedTo of 1285085434000 equals &lt;br/&gt;
Tue Sep 21 2010 09:10:34 GMT-0700 (PDT)&lt;/p&gt;

&lt;p&gt;Workaround:&lt;br/&gt;
To correct the problem&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;shutdown mongo on the secondary with the wrong clock time&lt;/li&gt;
	&lt;li&gt;change the clock  time&lt;/li&gt;
	&lt;li&gt;restart mongod&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Solution:&lt;br/&gt;
It appears that rs.status() is reporting the clocktime on the node its run but db.slaves.find() reports the clocktime on the master.&lt;/p&gt;

&lt;p&gt;Business Case:&lt;br/&gt;
User Experience&lt;/p&gt;</description>
                <environment></environment>
        <key id="13142">SERVER-1823</key>
            <summary>db.slaves.find()  and rs.status() reporting different values of date of last sync</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="9">Done</resolution>
                                        <assignee username="dwight@mongodb.com">Dwight Merriman</assignee>
                                    <reporter username="alvin">Alvin Richards</reporter>
                        <labels>
                    </labels>
                <created>Tue, 21 Sep 2010 17:39:22 +0000</created>
                <updated>Tue, 12 Jul 2016 00:20:27 +0000</updated>
                            <resolved>Sun, 16 Jan 2011 06:26:10 +0000</resolved>
                                    <version>1.6.2</version>
                                    <fixVersion>1.7.4</fixVersion>
                                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="22409" author="eliot" created="Sun, 16 Jan 2011 06:26:10 +0000"  >&lt;p&gt;we added sync time to rs.status()&lt;/p&gt;</comment>
                            <comment id="18417" author="dwight_10gen" created="Wed, 22 Sep 2010 07:54:26 +0000"  >&lt;p&gt;i need to make status show how up to date a node is&lt;/p&gt;

&lt;p&gt;lastheartbeat is last time it checked &apos;are you alive&apos; and does not reflect its data freshness&lt;/p&gt;</comment>
                            <comment id="18408" author="alvin" created="Tue, 21 Sep 2010 22:24:03 +0000"  >&lt;p&gt;Reproduce:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Get two machines and setup a Replica Set. Set the clocktime on both machines to now&lt;/li&gt;
	&lt;li&gt;Insert into the Primary and ensure that data is being replicated to the secondary&lt;/li&gt;
	&lt;li&gt;Show down the Secondary&lt;/li&gt;
	&lt;li&gt;Move the clocktime of the secondary forward (e.g. to 2030)&lt;/li&gt;
	&lt;li&gt;Bring the Secondary up&lt;/li&gt;
	&lt;li&gt;Ensure that data is still being propergated&lt;/li&gt;
	&lt;li&gt;Run rs.status() on the secondary and note the timestamp is the secodnaries clocktime (e.g. 2030)&lt;/li&gt;
	&lt;li&gt;Run db.slaves.find() on the master and see the regular clocktime (e..g now).&lt;/li&gt;
&lt;/ul&gt;
</comment>
                    </comments>
                <issuelinks>
                            <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>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 22 Sep 2010 07:54:26 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        13 years, 5 weeks, 3 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>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            13 years, 5 weeks, 3 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </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>alvin</customfieldvalue>
            <customfieldvalue>dwight@mongodb.com</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrpepz:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>21813</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|ht0st3:</customfieldvalue>

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