<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:41:13 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-57195] Convert resharding document deletion to use PersistentTaskStore instead of creating a WriteUnitOfWork</title>
                <link>https://jira.mongodb.org/browse/SERVER-57195</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;We changed the document deletion to use a manual WriteUnitOfWork, since we needed to leverage the onCommit handler to fulfill the completion promise. This was a temporary solution to &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-54460&quot; title=&quot;Resharding may delete the state document before fully completing&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-54460&quot;&gt;&lt;del&gt;SERVER-54460&lt;/del&gt;&lt;/a&gt;. However, &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-54460&quot; title=&quot;Resharding may delete the state document before fully completing&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-54460&quot;&gt;&lt;del&gt;SERVER-54460&lt;/del&gt;&lt;/a&gt; has been solved by instead adding &lt;tt&gt;setAlwaysInterruptAtStepDownOrUp&lt;/tt&gt; to relevant opCtxs. We no longer need to onCommit handler.&lt;/p&gt;

&lt;p&gt;As code cleanup we can convert resharding document deletion back to using the PersistentTaskStore, which uses fewer lines of code.&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="1756770">SERVER-57195</key>
            <summary>Convert resharding document deletion to use PersistentTaskStore instead of creating a WriteUnitOfWork</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="12300">Won&apos;t Do</resolution>
                                        <assignee username="junhson.jean-baptiste@mongodb.com">Junhson Jean-Baptiste</assignee>
                                    <reporter username="blake.oler@mongodb.com">Blake Oler</reporter>
                        <labels>
                            <label>PM-234-M3</label>
                            <label>PM-234-T-autocommits</label>
                            <label>neweng</label>
                    </labels>
                <created>Tue, 25 May 2021 20:44:40 +0000</created>
                <updated>Wed, 9 Jun 2021 19:37:33 +0000</updated>
                            <resolved>Wed, 9 Jun 2021 19:09:58 +0000</resolved>
                                                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="3869394" author="janna.golden" created="Wed, 9 Jun 2021 19:09:58 +0000"  >&lt;p&gt;Closing in favor of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-54610&quot; title=&quot;Resharding writes to donor documents should take exclusive locks&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-54610&quot;&gt;&lt;del&gt;SERVER-54610&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="3869168" author="haley.connelly" created="Wed, 9 Jun 2021 17:47:00 +0000"  >&lt;p&gt;After chatting with &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=max.hirschhorn&quot; class=&quot;user-hover&quot; rel=&quot;max.hirschhorn&quot;&gt;max.hirschhorn&lt;/a&gt;&#160;about &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-54610&quot; title=&quot;Resharding writes to donor documents should take exclusive locks&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-54610&quot;&gt;&lt;del&gt;SERVER-54610&lt;/del&gt;&lt;/a&gt;, we decided that we take the MODE_X (&lt;a href=&quot;https://github.com/mongodb/mongo/blob/9c3588341bde307f0e65effd50ea6a7558044ae1/src/mongo/db/s/resharding/resharding_donor_service.cpp#L878&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;instead of MODE_IX&lt;/a&gt;) collection lock for deleting the donor document. If the pin is set and resharding has to abort, deleting the donor document could also mean &lt;a href=&quot;https://github.com/mongodb/mongo/blob/9c3588341bde307f0e65effd50ea6a7558044ae1/src/mongo/db/s/resharding/resharding_op_observer.cpp#L242&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;unsetting the pin&lt;/a&gt;&#160; (which requires the MODE_X lock to prevent write skew).&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="1620172">SERVER-54460</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1627521">SERVER-54610</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1514410">SERVER-51606</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1658356">SERVER-55511</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>2.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>Wed, 9 Jun 2021 17:47:00 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        2 years, 35 weeks 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-234</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>max.hirschhorn@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            2 years, 35 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>blake.oler@mongodb.com</customfieldvalue>
            <customfieldvalue>haley.connelly@mongodb.com</customfieldvalue>
            <customfieldvalue>janna.golden@mongodb.com</customfieldvalue>
            <customfieldvalue>junhson.jean-baptiste@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzhop3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hz2d5z:</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="4519">Sharding 2021-06-14</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10555" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Story Points</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</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|hzhay7:</customfieldvalue>

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