<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 06:41:05 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-79483] Investigate if tests should check operationTime being identical for retryable write responses</title>
                <link>https://jira.mongodb.org/browse/SERVER-79483</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;In &quot;store_retryable_find_and_modify_images_in_side_collection.js&quot; we check that retrying a write command that already succeeded returns the &lt;a href=&quot;https://github.com/mongodb/mongo/blob/a68d74d6c936d4318b3703c90713eb397bbea1e7/jstests/noPassthrough/store_retryable_find_and_modify_images_in_side_collection.js#L286-L288&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;same response&lt;/a&gt;, including the &lt;a href=&quot;https://github.com/mongodb/mongo/blob/a68d74d6c936d4318b3703c90713eb397bbea1e7/jstests/noPassthrough/store_retryable_find_and_modify_images_in_side_collection.js#L48-L56&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&apos;operationTime&apos;&lt;/a&gt; field.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-78115&quot; title=&quot;Shard primaries must commit a majority write before using new routing information from the config server&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-78115&quot;&gt;&lt;del&gt;SERVER-78115&lt;/del&gt;&lt;/a&gt; (&lt;a href=&quot;https://github.com/mongodb/mongo/commit/e80686185de1633cc657ea2c00e842dc4b402470&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;e806861&lt;/a&gt;) made a change such that retrying a succeeded write command may still advance the operationTime since it introduces a noop write in some cases. This commit caused above test to fail frequently.&lt;/p&gt;

&lt;p&gt;While &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-78115&quot; title=&quot;Shard primaries must commit a majority write before using new routing information from the config server&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-78115&quot;&gt;&lt;del&gt;SERVER-78115&lt;/del&gt;&lt;/a&gt; is being reverted, there is a question that if the test should check &apos;operationTime&apos; being identical for retryable writes.&lt;/p&gt;

&lt;p&gt;From &lt;a href=&quot;https://www.mongodb.com/docs/manual/reference/method/db.runCommand/#response&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;this doc&lt;/a&gt;, it seems that the &apos;operationTime&apos; returned from a operation that doesn&apos;t write oplog (e.g. retry of a succeed write)&#160; can be &lt;b&gt;arbitrary&lt;/b&gt; if any other clients or background writers advances the oplog, since in this case the returned &apos;operationTime&apos; is just the top of the majority committed oplog. That seems to suggest that the &apos;operationTime&apos; in a retry attempt of a succeeded write is not guaranteed to be same as the original one.&lt;br/&gt;
&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="2404250">SERVER-79483</key>
            <summary>Investigate if tests should check operationTime being identical for retryable write responses</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="9">Done</resolution>
                                        <assignee username="allison.easton@mongodb.com">Allison Easton</assignee>
                                    <reporter username="wenbin.zhu@mongodb.com">Wenbin Zhu</reporter>
                        <labels>
                    </labels>
                <created>Fri, 28 Jul 2023 19:12:14 +0000</created>
                <updated>Thu, 17 Aug 2023 08:07:01 +0000</updated>
                            <resolved>Thu, 17 Aug 2023 08:07:01 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="5639675" author="allison.easton" created="Thu, 17 Aug 2023 08:06:39 +0000"  >&lt;p&gt;Great, thank you both! I have opened &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-80183&quot; title=&quot;Remove operationTime check from store_retryable_find_and_modify_images_in_side_collection.js&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-80183&quot;&gt;&lt;del&gt;SERVER-80183&lt;/del&gt;&lt;/a&gt; to update the test.&lt;/p&gt;</comment>
                            <comment id="5639243" author="jason.chan" created="Wed, 16 Aug 2023 22:09:47 +0000"  >&lt;p&gt;Thanks for thinking about this &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=allison.easton%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;allison.easton@mongodb.com&quot;&gt;allison.easton@mongodb.com&lt;/a&gt;, I think you&apos;re right that it should be safe to change the test to omit checking opTime. I think the only thing we care about in regards to findAndModify is that the timestamp field in the imageEntry itself consistently matches the timestamp component of the lastWriteOpTime field for the sessions transactions entry in the config.transactions table. Basically, I don&apos;t think there&apos;s anything specific about retryable findAndModify&apos;s that would make it have different semantics around the response operationTime from other retryable operations.&lt;/p&gt;

&lt;p&gt;The test was probably passing simply because we weren&apos;t expecting to do any background writes to the database and that seems to have changed lately.&lt;/p&gt;</comment>
                            <comment id="5639117" author="JIRAUSER1258790" created="Wed, 16 Aug 2023 21:18:01 +0000"  >&lt;p&gt;I� think that makes sense to me, but I&apos;d like to double check with &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=jason.chan%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;jason.chan@mongodb.com&quot;&gt;jason.chan@mongodb.com&lt;/a&gt;.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="2419706">SERVER-80183</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="2368831">SERVER-78115</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>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_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>Wed, 16 Aug 2023 11:34:33 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        24 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>allison.easton@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            24 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_16465" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Linked BF Score</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>152.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>allison.easton@mongodb.com</customfieldvalue>
            <customfieldvalue>jason.chan@mongodb.com</customfieldvalue>
            <customfieldvalue>wenbin.zhu@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i2k1j3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i2257s:</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_22250" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Special Downgrade Instructions Required</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="23343"><![CDATA[Not Needed]]></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|i2jnof:</customfieldvalue>

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