<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:01:45 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-42910] Oplog query with higher timestamp but lower term than the sync source shouldn&apos;t time out due to afterClusterTime</title>
                <link>https://jira.mongodb.org/browse/SERVER-42910</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-33812&quot; title=&quot;First initial sync oplog read batch fetched may be empty; do not treat as an error.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-33812&quot;&gt;&lt;del&gt;SERVER-33812&lt;/del&gt;&lt;/a&gt; attach afterClusterTime to all oplog queries. A&#160;node with higher timestamp but lower term than the sync source should roll back due to an empty batch, e.g. the old primary has (ts: 9, term: 1), while the new primary has (ts: 8, term: 2). However, the oplog query failed with MaxTimeMSExpired added in&#160;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-35200&quot; title=&quot;Speed up failure detection in the OplogFetcher during steady state replication&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-35200&quot;&gt;&lt;del&gt;SERVER-35200&lt;/del&gt;&lt;/a&gt;. I believe the query times out while waiting for afterClusterTime. In production, it&apos;s very likely the old primary will roll back when new writes arrive with even higher timestamp, maybe by the periodic no-op writer. However, it is still a liveness issue.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="900630">SERVER-42910</key>
            <summary>Oplog query with higher timestamp but lower term than the sync source shouldn&apos;t time out due to afterClusterTime</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="13201">Fixed</resolution>
                                        <assignee username="siyuan.zhou@mongodb.com">Siyuan Zhou</assignee>
                                    <reporter username="siyuan.zhou@mongodb.com">Siyuan Zhou</reporter>
                        <labels>
                    </labels>
                <created>Tue, 20 Aug 2019 00:29:13 +0000</created>
                <updated>Sun, 29 Oct 2023 22:17:54 +0000</updated>
                            <resolved>Wed, 21 Aug 2019 01:56:32 +0000</resolved>
                                                    <fixVersion>4.0.13</fixVersion>
                    <fixVersion>4.2.1</fixVersion>
                    <fixVersion>4.3.1</fixVersion>
                                    <component>Replication</component>
                                        <votes>0</votes>
                                    <watches>8</watches>
                                                                                                                <comments>
                            <comment id="2434820" author="xgen-internal-githook" created="Thu, 26 Sep 2019 16:34:47 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;visualzhou&apos;, &apos;email&apos;: &apos;siyuan.zhou@mongodb.com&apos;, &apos;name&apos;: &apos;Siyuan Zhou&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-42910&quot; title=&quot;Oplog query with higher timestamp but lower term than the sync source shouldn&amp;#39;t time out due to afterClusterTime&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-42910&quot;&gt;&lt;del&gt;SERVER-42910&lt;/del&gt;&lt;/a&gt; Oplog query with higher timestamp but lower term than the sync source shouldn&apos;t time out due to afterClusterTime.&lt;/p&gt;

&lt;p&gt;(cherry picked from commit f54709196711c63a429b71f47c584661286d675f)&lt;br/&gt;
Branch: v4.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/220255882c3047868b9ecd43a36de09b1ecbb5da&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/220255882c3047868b9ecd43a36de09b1ecbb5da&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2408377" author="xgen-internal-githook" created="Thu, 5 Sep 2019 07:28:32 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;visualzhou&apos;, &apos;email&apos;: &apos;siyuan.zhou@mongodb.com&apos;, &apos;name&apos;: &apos;Siyuan Zhou&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-42910&quot; title=&quot;Oplog query with higher timestamp but lower term than the sync source shouldn&amp;#39;t time out due to afterClusterTime&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-42910&quot;&gt;&lt;del&gt;SERVER-42910&lt;/del&gt;&lt;/a&gt; Oplog query with higher timestamp but lower term than the sync source shouldn&apos;t time out due to afterClusterTime.&lt;/p&gt;

&lt;p&gt;(cherry picked from commit f54709196711c63a429b71f47c584661286d675f)&lt;br/&gt;
Branch: v4.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/b198f2b3b2502a92f76ea491254b9b6f10dd38ff&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/b198f2b3b2502a92f76ea491254b9b6f10dd38ff&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2385254" author="siyuan.zhou@10gen.com" created="Fri, 23 Aug 2019 23:14:46 +0000"  >&lt;p&gt;We need to backport this to 4.2 since&#160;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-42219&quot; title=&quot;Oplog buffer not always empty when primary exits drain mode&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-42219&quot;&gt;&lt;del&gt;SERVER-42219&lt;/del&gt;&lt;/a&gt; needs to be backported and&#160;will uncover this issue.&lt;/p&gt;</comment>
                            <comment id="2380108" author="xgen-internal-githook" created="Wed, 21 Aug 2019 01:55:01 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Siyuan Zhou&apos;, &apos;email&apos;: &apos;siyuan.zhou@mongodb.com&apos;, &apos;username&apos;: &apos;visualzhou&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-42910&quot; title=&quot;Oplog query with higher timestamp but lower term than the sync source shouldn&amp;#39;t time out due to afterClusterTime&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-42910&quot;&gt;&lt;del&gt;SERVER-42910&lt;/del&gt;&lt;/a&gt; Oplog query with higher timestamp but lower term than the sync source shouldn&apos;t time out due to afterClusterTime.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/f54709196711c63a429b71f47c584661286d675f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/f54709196711c63a429b71f47c584661286d675f&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2379896" author="siyuan.zhou@10gen.com" created="Tue, 20 Aug 2019 21:41:15 +0000"  >&lt;p&gt;Good point! Agreed that we don&apos;t need to backport this liveness fix.&lt;/p&gt;</comment>
                            <comment id="2379704" author="milkie" created="Tue, 20 Aug 2019 20:06:19 +0000"  >&lt;p&gt;I&apos;m not sure it&apos;s necessary?  I thought the effect of this problem was simply that choosing a sync source for just the old primary might be delayed until a write happens, and for such nodes that experience this delay, they are destined to roll back anyway.&lt;/p&gt;</comment>
                            <comment id="2379689" author="siyuan.zhou@10gen.com" created="Tue, 20 Aug 2019 20:00:49 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=milkie&quot; class=&quot;user-hover&quot; rel=&quot;milkie&quot;&gt;milkie&lt;/a&gt;, I think we should backport this everywhere&#160;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-33812&quot; title=&quot;First initial sync oplog read batch fetched may be empty; do not treat as an error.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-33812&quot;&gt;&lt;del&gt;SERVER-33812&lt;/del&gt;&lt;/a&gt; has backported - up to 3.6.&lt;/p&gt;</comment>
                            <comment id="2379539" author="milkie" created="Tue, 20 Aug 2019 18:50:27 +0000"  >&lt;p&gt;Definitely possible; the old primary can continue to accept writes in the old term for quite a while before it finally notices the term has changed.&lt;/p&gt;</comment>
                            <comment id="2379527" author="suganthi.mani" created="Tue, 20 Aug 2019 18:45:18 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=siyuan.zhou&quot; class=&quot;user-hover&quot; rel=&quot;siyuan.zhou&quot;&gt;siyuan.zhou&lt;/a&gt;&#160;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;the old primary has (ts: 9, term: 1), while the new primary has (ts: 8, term: 2).&#160;&#160;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Is this even possible ? Or it&apos;s possible during primary drain mode?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="509689">SERVER-33812</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="548699">SERVER-35200</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="855998">SERVER-42219</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16775"><![CDATA[v4.2]]></customfieldvalue>
    <customfieldvalue key="15640"><![CDATA[v4.0]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 20 Aug 2019 18:45:18 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        4 years, 19 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_17050" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Downstream Team Attention</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16941"><![CDATA[Not Needed]]></customfieldvalue>

                        </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>
                            4 years, 19 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>milkie@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>siyuan.zhou@mongodb.com</customfieldvalue>
            <customfieldvalue>suganthi.mani@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hvls33:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hvaln3:</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_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="3200">Repl 2019-08-26</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_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|hvlecf:</customfieldvalue>

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