<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 06:28:59 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-74966] Improve serverless lock/access blocker acquire/release semantics</title>
                <link>https://jira.mongodb.org/browse/SERVER-74966</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;In this ticket we aim to improve the acquire/release semantics of the serverless locks and the tenant access blockers. There are two main issues to address :&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;The rollback handler for MTAB and serverless lock is only registered on primaries. This is a bug as there might be a write conflict exception on secondaries that would cause them to retry the write (and reacquire mtab/serverless lock).&lt;/li&gt;
	&lt;li&gt;The rollback handler is registered some time after acquiring the serverless lock (&lt;a href=&quot;https://github.com/10gen/mongo/blob/347fcaa2fc3b26441f622cddae8ea06553cb7786/src/mongo/db/repl/tenant_migration_donor_op_observer.cpp#L70).&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/10gen/mongo/blob/347fcaa2fc3b26441f622cddae8ea06553cb7786/src/mongo/db/repl/tenant_migration_donor_op_observer.cpp#L70).&lt;/a&gt; If there is an error thrown inbetween, we might retry the operation without releasing the lock.&lt;/li&gt;
&lt;/ul&gt;


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

&lt;p&gt;The fixes :&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Remove `if (onPrimary)` conditions.&lt;/li&gt;
	&lt;li&gt;Move `rollback` handler as close to acquire serverless lock and mtab (and decouple the handlers).&lt;/li&gt;
	&lt;li&gt;Review all places we use `acquireLock` to ensure correct behavior.&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
        <key id="2290563">SERVER-74966</key>
            <summary>Improve serverless lock/access blocker acquire/release semantics</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="13201">Fixed</resolution>
                                        <assignee username="didier.nadeau@mongodb.com">Didier Nadeau</assignee>
                                    <reporter username="didier.nadeau@mongodb.com">Didier Nadeau</reporter>
                        <labels>
                    </labels>
                <created>Thu, 16 Mar 2023 21:59:09 +0000</created>
                <updated>Sun, 29 Oct 2023 21:24:45 +0000</updated>
                            <resolved>Wed, 29 Mar 2023 13:25:10 +0000</resolved>
                                                    <fixVersion>7.0.0-rc0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="5307896" author="xgen-internal-githook" created="Wed, 29 Mar 2023 00:10:11 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Didier Nadeau&apos;, &apos;email&apos;: &apos;didier.nadeau@mongodb.com&apos;, &apos;username&apos;: &apos;nadeaudi&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-74966&quot; title=&quot;Improve serverless lock/access blocker acquire/release semantics&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-74966&quot;&gt;&lt;del&gt;SERVER-74966&lt;/del&gt;&lt;/a&gt; Improve serverless lock/mtab acquire/release semantics&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/01cfe19591f6bb10032981386b8bf2340222e20b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/01cfe19591f6bb10032981386b8bf2340222e20b&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5285587" author="suganthi.mani" created="Mon, 20 Mar 2023 17:03:06 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=didier.nadeau%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;didier.nadeau@mongodb.com&quot;&gt;didier.nadeau@mongodb.com&lt;/a&gt;&#160; In today&apos;s triage, I was talking about the related ticket &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-72370&quot; title=&quot;Update in-memory serverless locks transactionally for tenant migration recipient&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-72370&quot;&gt;&lt;del&gt;SERVER-72370&lt;/del&gt;&lt;/a&gt;&#160; which doesn&apos;t update Serverless lock transactionally for MTM protocol on recipient side.&#160;&lt;/p&gt;

&lt;p&gt;Re-reading the description of this ticket, I agree, that this a problem for split, merge and MTM protocol. And,&#160;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-73397&quot; title=&quot;Create separate POS instance for shard merge recipient service.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-73397&quot;&gt;&lt;del&gt;SERVER-73397&lt;/del&gt;&lt;/a&gt; (New shard merge recipient POS instance) has not addressed this issue on the  &lt;a href=&quot;https://github.com/mongodb/mongo/blob/7851666e2c8aed098bf31e353400ddcc3ebb7526/src/mongo/db/repl/shard_merge_recipient_op_observer.cpp#L65-L80&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;shard merge recipient side&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="5285258" author="JIRAUSER1262830" created="Mon, 20 Mar 2023 15:51:10 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=didier.nadeau%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;didier.nadeau@mongodb.com&quot;&gt;didier.nadeau@mongodb.com&lt;/a&gt; check if there are duplicated tickets.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="2292982">SERVER-75069</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="2292982">SERVER-75069</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="2217915">SERVER-72370</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_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.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>Mon, 20 Mar 2023 17:03:06 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        45 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_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>
                            45 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>didier.nadeau@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</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|i20kmv:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i1iy00:</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_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="7088">Server Serverless 2023-04-03</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|i206s7:</customfieldvalue>

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