<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:29:57 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-53109] Fix tenant_migration_conflicting_donor_start_migration_cmds.js from &quot;FailedToSatisfyReadPreference&quot; failures.</title>
                <link>https://jira.mongodb.org/browse/SERVER-53109</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Once &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-53107&quot; title=&quot;Tenant Migration related jstests should call donorForgetMigration when migration is completed(aborted/committed). &quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-53107&quot;&gt;&lt;del&gt;SERVER-53107&lt;/del&gt;&lt;/a&gt; is fixed, tenant_migration_conflicting_donor_start_migration_cmds.js   can still fail(i.e, hang) &lt;/p&gt;

&lt;p&gt;&quot;Test different cloning read preference&quot;, currently starts &lt;a href=&quot;https://github.com/mongodb/mongo/blob/cca3644a4618b223dd716ef2b98ec856d229a295/jstests/replsets/tenant_migration_conflicting_donor_start_migration_cmds.js#L250&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;2 migration threads concurrently&lt;/a&gt;, one with readPreference &apos;Primary&apos;, and another with readPreference &lt;a href=&quot;https://github.com/mongodb/mongo/blob/cca3644a4618b223dd716ef2b98ec856d229a295/jstests/replsets/tenant_migration_conflicting_donor_start_migration_cmds.js#L245&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&apos;Secondary&apos;&lt;/a&gt;. There are chances the migration with readPreference &apos;Secondary&apos; thread can start first.  If so, the recipient migration fails with &quot;FailedToSatisfyReadPreference  error as donor replica set is a &lt;a href=&quot;https://github.com/mongodb/mongo/blob/cca3644a4618b223dd716ef2b98ec856d229a295/jstests/replsets/tenant_migration_conflicting_donor_start_migration_cmds.js#L44&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;single node replica set&lt;/a&gt;. The test expects one migration thread to pass and another thread to fail due to ConflictingOperationInProgress. But, in this case, one thread will hang (due to recipient migration failure - FailedToSatisfyReadPreference) and another thread will fail due to ConflictingOperationInProgress.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1554587">SERVER-53109</key>
            <summary>Fix tenant_migration_conflicting_donor_start_migration_cmds.js from &quot;FailedToSatisfyReadPreference&quot; failures.</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="13202">Works as Designed</resolution>
                                        <assignee username="lingzhi.deng@mongodb.com">Lingzhi Deng</assignee>
                                    <reporter username="suganthi.mani@mongodb.com">Suganthi Mani</reporter>
                        <labels>
                            <label>pm-1791_milestone-B</label>
                    </labels>
                <created>Mon, 30 Nov 2020 13:34:07 +0000</created>
                <updated>Fri, 27 Oct 2023 13:52:34 +0000</updated>
                            <resolved>Tue, 26 Jan 2021 23:24:10 +0000</resolved>
                                                                    <component>Replication</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="3583979" author="lingzhi.deng" created="Tue, 26 Jan 2021 23:24:10 +0000"  >&lt;blockquote&gt;
&lt;p&gt;There are chances the migration with readPreference &apos;Secondary&apos; thread can start first&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;I don&apos;t think this is possible because the migration with readPreference &apos;Secondary&apos; is run as &lt;a href=&quot;https://github.com/mongodb/mongo/blob/e1b123d6c2da868a9ef7f1468e140dd102a35020/jstests/replsets/tenant_migration_conflicting_donor_start_migration_cmds.js#L257&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&lt;tt&gt;migrationOpts1&lt;/tt&gt;&lt;/a&gt; and we start two migrations synchronously &lt;a href=&quot;https://github.com/mongodb/mongo/blob/e1b123d6c2da868a9ef7f1468e140dd102a35020/jstests/replsets/tenant_migration_conflicting_donor_start_migration_cmds.js#L141-L142&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;in order&lt;/a&gt;. &lt;tt&gt;startMigration&lt;/tt&gt; will &lt;a href=&quot;https://github.com/mongodb/mongo/blob/e1b123d6c2da868a9ef7f1468e140dd102a35020/jstests/replsets/libs/tenant_migration_test.js#L181-L196&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;run &lt;tt&gt;donorStartMigration&lt;/tt&gt; against the donor&lt;/a&gt; and so I think that makes sure the migration with readPreference &apos;Primary&apos; runs first and persists a state doc first. Therefore, I believe the migration with readPreference &apos;Secondary&apos; will always fail due to &lt;tt&gt;ConflictingOperationInProgress&lt;/tt&gt; because there is alway an active migration under the same tenantId.&lt;/p&gt;

&lt;p&gt;And I don&apos;t find any BFs for this test. So I am closing this as &quot;Works as Designed&quot;.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="1554527">SERVER-53107</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.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_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 26 Jan 2021 23:24:10 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        3 years, 2 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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-1791</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>
                            3 years, 2 weeks, 1 day 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>lingzhi.deng@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|hyji2v:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hy5ggf:</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="4622">Repl 2021-02-08</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|hyj4c7:</customfieldvalue>

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