<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:44:19 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-36870] Replication fails if server date exceeds January 19th, 2038</title>
                <link>https://jira.mongodb.org/browse/SERVER-36870</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;If a replica set is running on a node who&apos;s date exceeds the bounds set by the 2038 bug (see &lt;a href=&quot;https://en.wikipedia.org/wiki/Year_2038_problem&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://en.wikipedia.org/wiki/Year_2038_problem&lt;/a&gt;), replication will fail due to a timestamp overflow:&lt;/p&gt;


&lt;blockquote&gt;&lt;p&gt;2039-01-15T18:00:00.037-0500 I REPL &lt;span class=&quot;error&quot;&gt;&amp;#91;replication-1&amp;#93;&lt;/span&gt; Restarting oplog query due to error: ExceededTimeLimit: Operation timed out, request was RemoteCommand 13017 &amp;#8211; target:localhost:27018 db:local expDate:2018-08-24T17:06:58.217-0400 cmd:{ getMore: 16995111421, collection: &quot;oplog.rs&quot;, maxTimeMS: 5000, term: 4, lastKnownCommittedOpTime: &lt;/p&gt;
&lt;div class=&quot;error&quot;&gt;&lt;span class=&quot;error&quot;&gt;Unknown macro: { ts}&lt;/span&gt; &lt;/div&gt;
&lt;p&gt; }. Last fetched optime (with hash): { ts: Timestamp 1535144753000|331, t: 4 &lt;span class=&quot;error&quot;&gt;&amp;#91;-5142302661271950628&amp;#93;&lt;/span&gt;. Restarts remaining: 3&lt;br/&gt;
2039-01-15T18:00:00.049-0500 I REPL &lt;span class=&quot;error&quot;&gt;&amp;#91;ReplicationExecutor&amp;#93;&lt;/span&gt; transition to PRIMARY&lt;br/&gt;
2039-01-15T18:00:00.049-0500 I REPL &lt;span class=&quot;error&quot;&gt;&amp;#91;ReplicationExecutor&amp;#93;&lt;/span&gt; Entering primary catch-up mode.&lt;br/&gt;
2039-01-15T18:00:00.050-0500 I REPL &lt;span class=&quot;error&quot;&gt;&amp;#91;ReplicationExecutor&amp;#93;&lt;/span&gt; Member localhost:27017 is now in state SECONDARY&lt;br/&gt;
2039-01-15T18:00:00.050-0500 I REPL &lt;span class=&quot;error&quot;&gt;&amp;#91;ReplicationExecutor&amp;#93;&lt;/span&gt; Heartbeats updated catchup target optime to { ts: Timestamp 1535144753000|351, t: 4 }&lt;br/&gt;
2039-01-15T18:00:00.050-0500 I REPL &lt;span class=&quot;error&quot;&gt;&amp;#91;SyncSourceFeedback&amp;#93;&lt;/span&gt; SyncSourceFeedback error sending update to localhost:27018: InvalidSyncSource: Sync source was cleared. Was localhost:27018&lt;br/&gt;
2039-01-15T18:00:00.050-0500 I REPL &lt;span class=&quot;error&quot;&gt;&amp;#91;rsSync&amp;#93;&lt;/span&gt; Caught up to the latest known optime successfully after becoming primary.&lt;br/&gt;
2039-01-15T18:00:00.050-0500 I REPL &lt;span class=&quot;error&quot;&gt;&amp;#91;rsSync&amp;#93;&lt;/span&gt; Exited primary catch-up mode.&lt;br/&gt;
2039-01-15T18:00:00.059-0500 I REPL &lt;span class=&quot;error&quot;&gt;&amp;#91;rsBackgroundSync&amp;#93;&lt;/span&gt; Replication producer stopped after oplog fetcher finished returning a batch from our sync source. Abandoning this batch of oplog entries and re-evaluating our sync source.&lt;br/&gt;
2039-01-15T18:00:01.051-0500 I - &lt;span class=&quot;error&quot;&gt;&amp;#91;rsSync&amp;#93;&lt;/span&gt; Fatal assertion 28560 BadValue: ts secs too high at src/mongo/db/repl/oplog.cpp 168&lt;br/&gt;
2039-01-15T18:00:01.051-0500 I - &lt;span class=&quot;error&quot;&gt;&amp;#91;rsSync&amp;#93;&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;


&lt;p&gt;&#160;This will crash the mongod process. Note that this was done during a test of 2038 compatibility and has not been identified as a critical issue in any actual production deployments.&lt;/p&gt;</description>
                <environment></environment>
        <key id="594238">SERVER-36870</key>
            <summary>Replication fails if server date exceeds January 19th, 2038</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="10038" iconUrl="https://jira.mongodb.org/images/icons/subtask.gif" description="">Backlog</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="backlog-server-repl">Backlog - Replication Team</assignee>
                                    <reporter username="alex.bevilacqua@mongodb.com">Alex Bevilacqua</reporter>
                        <labels>
                    </labels>
                <created>Fri, 24 Aug 2018 21:27:30 +0000</created>
                <updated>Tue, 6 Dec 2022 03:19:38 +0000</updated>
                                                                            <component>Replication</component>
                                        <votes>0</votes>
                                    <watches>18</watches>
                                                                                                                <comments>
                            <comment id="4420898" author="schwerin" created="Fri, 18 Mar 2022 15:22:43 +0000"  >&lt;p&gt;I think we&apos;re still ok. Durable history retention periods are unlikely to be more than hours or days, so they roll over pretty quickly.&lt;/p&gt;</comment>
                            <comment id="4420822" author="redbeard0531" created="Fri, 18 Mar 2022 15:00:48 +0000"  >&lt;blockquote&gt;
&lt;p&gt;Because we don&apos;t store timestamps in the data rows, but only in the oplog, I think a migration today would have pretty manageable upgrade behavior. If we start storing history in the tables, it will become more complicated.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Is this still true now that we have durable history, or are we now in the &quot;more complicated&quot; world?&lt;/p&gt;</comment>
                            <comment id="1987806" author="ramon.fernandez" created="Tue, 28 Aug 2018 16:56:33 +0000"  >&lt;p&gt;Sending this to the Replication team for consideration; some alternatives have already been discussed as part of other projects.&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>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25128"><![CDATA[Replication]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_13552" key="com.go2group.jira.plugin.crm:crm_generic_field">
                        <customfieldname>Case</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[[500A000000bS0fqIAC, 5002K00000rzJO1QAM]]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 27 Aug 2018 02:22:30 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        1 year, 46 weeks, 5 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>false</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>alexander.golin@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            1 year, 46 weeks, 5 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>alex.bevilacqua@mongodb.com</customfieldvalue>
            <customfieldvalue>schwerin@mongodb.com</customfieldvalue>
            <customfieldvalue>backlog-server-repl</customfieldvalue>
            <customfieldvalue>mathias@mongodb.com</customfieldvalue>
            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hu6clj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|htww2v:</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_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;ul&gt;
	&lt;li&gt;setup an Ubuntu 18.04 server VM&lt;/li&gt;
	&lt;li&gt;setup a 3 node replica set using mlaunch (mlaunch --replicaset --nodes 3)&lt;/li&gt;
	&lt;li&gt;access the primary via the mongo shell and enable verbose logging
	&lt;ul&gt;
		&lt;li&gt;db.setLogLevel(1)&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
	&lt;li&gt;start inserting random documents into a collection:
	&lt;ul&gt;
		&lt;li&gt;for (var x = 1; x &amp;lt; 100000; x++) { db.test.insert( 
{ a: x }
&lt;p&gt; ) }&lt;/p&gt;&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
	&lt;li&gt;in another terminal set the system date beyond January 19th, 2038:
	&lt;ul&gt;
		&lt;li&gt;sudo date -s &quot;15 JAN 2039 18:00:00&quot;&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
	&lt;li&gt;crash details should be present in one of the replica set member mongod.log files&lt;/li&gt;
&lt;/ul&gt;
</customfieldvalue>

                        </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|hu5yuv:</customfieldvalue>

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