<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:38:52 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-35113] Stable timestamp does not advance if lastApplied does not move forward, but all committed timestamp does, on single node RS</title>
                <link>https://jira.mongodb.org/browse/SERVER-35113</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-34895&quot; title=&quot;Stable timestamp can be set to timestamp not in oplog&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-34895&quot;&gt;&lt;del&gt;SERVER-34895&lt;/del&gt;&lt;/a&gt; made it so that the stable timestamp would never advance ahead of the all committed timestamp, so that single node primaries never storage-commit a wiredTiger transaction behind the stable timestamp. &lt;/p&gt;

&lt;p&gt;Consider 3 operations in flight on a single node replica set, at ts 1, 2, and 3. If 1 commits first, the all committed timestamp and lastApplied and stable timestamp will all be set to 1. If 3 commits next, then the lastApplied will be set to 3, but the all committed timestamp will still be at 1, keeping the stable timestamp at 1. When 2 commits, the all committed timestamp will advance to 3, but the lastApplied will not advance, and so the &lt;a href=&quot;https://github.com/mongodb/mongo/blob/6ab1592260c9b21d802aa65a11d268c0a97b11a7/src/mongo/db/repl/replication_coordinator_impl.cpp#L1043-L1050&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;stable timestamp will not advance either&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;This will lead to majority writes not committing until another write comes in.&lt;/p&gt;</description>
                <environment></environment>
        <key id="547090">SERVER-35113</key>
            <summary>Stable timestamp does not advance if lastApplied does not move forward, but all committed timestamp does, on single node RS</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="judah.schvimer@mongodb.com">Judah Schvimer</assignee>
                                    <reporter username="judah.schvimer@mongodb.com">Judah Schvimer</reporter>
                        <labels>
                            <label>SWNA</label>
                    </labels>
                <created>Mon, 21 May 2018 14:50:56 +0000</created>
                <updated>Sun, 29 Oct 2023 22:31:38 +0000</updated>
                            <resolved>Tue, 22 May 2018 00:37:00 +0000</resolved>
                                                    <fixVersion>3.6.7</fixVersion>
                    <fixVersion>4.0.0-rc0</fixVersion>
                                    <component>Replication</component>
                                        <votes>0</votes>
                                    <watches>8</watches>
                                                                                                                <comments>
                            <comment id="1969124" author="xgen-internal-githook" created="Tue, 7 Aug 2018 15:05:55 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;stbrody&apos;, &apos;name&apos;: &apos;Spencer T Brody&apos;, &apos;email&apos;: &apos;spencer@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-35113&quot; title=&quot;Stable timestamp does not advance if lastApplied does not move forward, but all committed timestamp does, on single node RS&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-35113&quot;&gt;&lt;del&gt;SERVER-35113&lt;/del&gt;&lt;/a&gt; Fix storage_commit_out_of_order.js test to work with auth passthrough suites&lt;/p&gt;

&lt;p&gt;(cherry picked from commit abb1b353648260175c3dfe02ac8ae54c083956f7)&lt;br/&gt;
Branch: v3.6&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/8c8148e4ed16436c2a41ab9df53ecf39be7fc8a5&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/8c8148e4ed16436c2a41ab9df53ecf39be7fc8a5&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1969122" author="xgen-internal-githook" created="Tue, 7 Aug 2018 15:05:52 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;judahschvimer&apos;, &apos;name&apos;: &apos;Judah Schvimer&apos;, &apos;email&apos;: &apos;judah@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-35113&quot; title=&quot;Stable timestamp does not advance if lastApplied does not move forward, but all committed timestamp does, on single node RS&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-35113&quot;&gt;&lt;del&gt;SERVER-35113&lt;/del&gt;&lt;/a&gt; Allow single voting primaries to advance stable timestamp even when last applied does not advance&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 4cee07d8a97bb0663e7bfbc3f2e1fbf539140adf)&lt;br/&gt;
Branch: v3.6&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/57c6f90c4422ec911a4b3b038bd5338b769454aa&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/57c6f90c4422ec911a4b3b038bd5338b769454aa&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1898466" author="xgen-internal-githook" created="Tue, 22 May 2018 16:54:50 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;stbrody&apos;, &apos;name&apos;: &apos;Spencer T Brody&apos;, &apos;email&apos;: &apos;spencer@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-35113&quot; title=&quot;Stable timestamp does not advance if lastApplied does not move forward, but all committed timestamp does, on single node RS&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-35113&quot;&gt;&lt;del&gt;SERVER-35113&lt;/del&gt;&lt;/a&gt; Fix storage_commit_out_of_order.js test to work with auth passthrough suites&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/abb1b353648260175c3dfe02ac8ae54c083956f7&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/abb1b353648260175c3dfe02ac8ae54c083956f7&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1897775" author="xgen-internal-githook" created="Mon, 21 May 2018 22:56:50 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;judahschvimer&apos;, &apos;name&apos;: &apos;Judah Schvimer&apos;, &apos;email&apos;: &apos;judah@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-35113&quot; title=&quot;Stable timestamp does not advance if lastApplied does not move forward, but all committed timestamp does, on single node RS&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-35113&quot;&gt;&lt;del&gt;SERVER-35113&lt;/del&gt;&lt;/a&gt; Allow single voting primaries to advance stable timestamp even when last applied does not advance&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/4cee07d8a97bb0663e7bfbc3f2e1fbf539140adf&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/4cee07d8a97bb0663e7bfbc3f2e1fbf539140adf&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1897095" author="judah.schvimer" created="Mon, 21 May 2018 15:41:37 +0000"  >&lt;p&gt;lastApplied does not advance when 2 commits because it&apos;s already at 3, so there&apos;s nothing to advance to. It&apos;s currently acceptable for lastApplied to be ahead of uncommitted transactions, we could change that and claw lastApplied back to the all committed timestamp, but insert the actual applied optime into the stable timestamp candidates list. I&apos;d have to think more about what potential consequences that would have. &lt;/p&gt;

&lt;p&gt;Alternatively, we could always check if the stable timestamp can advance when we apply an operation. This would create a potential performance regression. We could track the all committed timestamp so that we only do this when necessary, or limit this to when the majority vote count is 1. This bug can only manifest on a single voting primary as far as I can tell because otherwise secondaries sending progress will advance the stable timestamp rather than the primary last applied moving forward.&lt;/p&gt;</comment>
                            <comment id="1897054" author="milkie" created="Mon, 21 May 2018 15:26:48 +0000"  >&lt;p&gt;Alternatively, is it a bug that lastApplied is set to an invisible operation, when 3 commits?&lt;/p&gt;</comment>
                            <comment id="1897049" author="milkie" created="Mon, 21 May 2018 15:25:27 +0000"  >&lt;p&gt;In your scenario, isn&apos;t it a bug that lastApplied does not advance when 2 commits?&lt;/p&gt;</comment>
                            <comment id="1896974" author="judah.schvimer" created="Mon, 21 May 2018 14:52:37 +0000"  >&lt;p&gt;Repro attached, applies on commit 6ab1592260c9b21d802aa65a11d268c0a97b11a7.  &lt;span class=&quot;nobr&quot;&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/attachment/187266/187266_SERVER-35113.diff&quot; title=&quot;SERVER-35113.diff attached to SERVER-35113&quot;&gt;SERVER-35113.diff&lt;sup&gt;&lt;img class=&quot;rendericon&quot; src=&quot;https://jira.mongodb.org/images/icons/link_attachment_7.gif&quot; height=&quot;7&quot; width=&quot;7&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/sup&gt;&lt;/a&gt;&lt;/span&gt; &lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10520">
                    <name>Problem/Incident</name>
                                            <outwardlinks description="causes">
                                        <issuelink>
            <issuekey id="1448653">SERVER-50443</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is caused by">
                                        <issuelink>
            <issuekey id="541051">SERVER-34895</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                                        </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="547631">SERVER-35154</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="187266" name="SERVER-35113.diff" size="2384" author="judah.schvimer@mongodb.com" created="Mon, 21 May 2018 14:52:32 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>8.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="15141"><![CDATA[v3.6]]></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>Mon, 21 May 2018 15:25:27 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        5 years, 27 weeks, 1 day 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>
                            5 years, 27 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_16465" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Linked BF Score</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>65.0</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>milkie@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>judah.schvimer@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|htylmf:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|htplqv:</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="2296">Repl 2018-06-04</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|hty7vr:</customfieldvalue>

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