<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:10: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-46255] establishCursors/AsyncRequestsSender can leave dangling request if interrupted</title>
                <link>https://jira.mongodb.org/browse/SERVER-46255</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;If the AsyncRequestsSender is interrupted after sending one or more requests, it may not be able to gracefully cancel that request.&#160;&lt;a href=&quot;https://github.com/mongodb/mongo/blob/379f283cf4e16d84c8d58f702b7b590b50e5a383/src/mongo/s/query/establish_cursors.cpp#L116-L143&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&lt;tt&gt;establishCursors()&lt;/tt&gt; has some cleanup logic to mitigate this&lt;/a&gt;, but I&apos;m pretty sure that if we&apos;re interrupted then &lt;a href=&quot;https://github.com/mongodb/mongo/blob/379f283cf4e16d84c8d58f702b7b590b50e5a383/src/mongo/s/query/establish_cursors.cpp#L125&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;this line&lt;/a&gt; will also throw the interrupted error, and we won&apos;t be able to clean up our cursors.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1162368">SERVER-46255</key>
            <summary>establishCursors/AsyncRequestsSender can leave dangling request if interrupted</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="nicholas.zolnierz@mongodb.com">Nicholas Zolnierz</assignee>
                                    <reporter username="charlie.swanson@mongodb.com">Charlie Swanson</reporter>
                        <labels>
                    </labels>
                <created>Wed, 19 Feb 2020 18:53:15 +0000</created>
                <updated>Mon, 8 Jan 2024 15:22:58 +0000</updated>
                            <resolved>Tue, 28 Apr 2020 19:37:12 +0000</resolved>
                                                    <fixVersion>4.4.0-rc4</fixVersion>
                    <fixVersion>4.7.0</fixVersion>
                                    <component>Networking</component>
                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="3071802" author="xgen-internal-githook" created="Wed, 6 May 2020 14:38:50 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Nick Zolnierz&apos;, &apos;email&apos;: &apos;nicholas.zolnierz@mongodb.com&apos;, &apos;username&apos;: &apos;nzolnierzmdb&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-46255&quot; title=&quot;establishCursors/AsyncRequestsSender can leave dangling request if interrupted&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-46255&quot;&gt;&lt;del&gt;SERVER-46255&lt;/del&gt;&lt;/a&gt; Use killOperations to cleanup dangling remote requests&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 93476f545de27ee61fd69eeab23adbff7f57b932)&lt;br/&gt;
Branch: v4.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/cd42cb1a51f1e2a6c02759ad5fa1523b5b65faa9&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/cd42cb1a51f1e2a6c02759ad5fa1523b5b65faa9&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3059212" author="xgen-internal-githook" created="Tue, 28 Apr 2020 18:40:57 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Nick Zolnierz&apos;, &apos;email&apos;: &apos;nicholas.zolnierz@mongodb.com&apos;, &apos;username&apos;: &apos;nzolnierzmdb&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-46255&quot; title=&quot;establishCursors/AsyncRequestsSender can leave dangling request if interrupted&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-46255&quot;&gt;&lt;del&gt;SERVER-46255&lt;/del&gt;&lt;/a&gt; Use killOperations to cleanup dangling remote requests&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/93476f545de27ee61fd69eeab23adbff7f57b932&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/93476f545de27ee61fd69eeab23adbff7f57b932&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3058996" author="xgen-internal-githook" created="Tue, 28 Apr 2020 17:12:48 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Nick Zolnierz&apos;, &apos;email&apos;: &apos;nicholas.zolnierz@mongodb.com&apos;, &apos;username&apos;: &apos;nzolnierzmdb&apos;}
&lt;p&gt;Message: Revert &quot;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-46255&quot; title=&quot;establishCursors/AsyncRequestsSender can leave dangling request if interrupted&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-46255&quot;&gt;&lt;del&gt;SERVER-46255&lt;/del&gt;&lt;/a&gt; Use killOperations to cleanup dangling remote requests&quot;&lt;/p&gt;

&lt;p&gt;This reverts commit aa2e0ee6d817951a29f2fec33d374d13d8f46802.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/49159e1cf859d21c767f6b582dd6e6b2d675808d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/49159e1cf859d21c767f6b582dd6e6b2d675808d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3058289" author="xgen-internal-githook" created="Tue, 28 Apr 2020 13:34:48 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Nick Zolnierz&apos;, &apos;email&apos;: &apos;nicholas.zolnierz@mongodb.com&apos;, &apos;username&apos;: &apos;nzolnierzmdb&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-46255&quot; title=&quot;establishCursors/AsyncRequestsSender can leave dangling request if interrupted&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-46255&quot;&gt;&lt;del&gt;SERVER-46255&lt;/del&gt;&lt;/a&gt; Use killOperations to cleanup dangling remote requests&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/aa2e0ee6d817951a29f2fec33d374d13d8f46802&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/aa2e0ee6d817951a29f2fec33d374d13d8f46802&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2946598" author="nicholas.zolnierz" created="Thu, 5 Mar 2020 20:13:22 +0000"  >&lt;p&gt;I&apos;ve spent some time on this and haven&apos;t reached a fully robust solution, but some thoughts so far:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;I&apos;m able to generate and propagate a unique opKey for sub-operations. If the cursor establishment is interrupted, its definitely possible to use this opKey in a _killOperations command.&lt;/li&gt;
	&lt;li&gt;When the ARS is interrupted, there are several possible states for the remote requests:&lt;br/&gt;
(1) The remote node is processing the command but has not yet established a cursor&lt;br/&gt;
(2) The cursor has been established on the remote node and the response is in flight&lt;br/&gt;
(3) The request hasn&apos;t reached the remote node yet&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;From my understanding, the opKey/killOperations fix will handle (1) but not the other 2 scenarios. In fact, from testing, the likelihood of sending a killOperations command while the remote node is still processing the original request is far less than the (2) and (3). I&apos;m looking into a potential workaround by extending killOperations to also lookup any cursors with the same opKey. &lt;/p&gt;</comment>
                            <comment id="2885380" author="jason.carey" created="Wed, 19 Feb 2020 19:55:18 +0000"  >&lt;p&gt;See &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-44167&quot; title=&quot;Add OperationKey to OperationContext and allow &amp;quot;clientOperationKey&amp;quot; field with commands&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-44167&quot;&gt;&lt;del&gt;SERVER-44167&lt;/del&gt;&lt;/a&gt; for more details on operation keys&lt;/p&gt;</comment>
                            <comment id="2885243" author="charlie.swanson" created="Wed, 19 Feb 2020 19:00:12 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=mira.carey%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;mira.carey@mongodb.com&quot;&gt;mira.carey@mongodb.com&lt;/a&gt; suggests that there is a new (or coming soon?) thing called OperationKey and killOperations that can help us here.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="1259614">SERVER-46767</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="2019315">SERVER-65329</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1233235">SERVER-46648</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1255304">SERVER-46740</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1965785">SERVER-62710</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1441869">SERVER-50308</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1300930">SERVER-47261</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="1356516">SERVER-48308</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1088745">SERVER-45541</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="976708">SERVER-44167</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>7.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>5.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="18953"><![CDATA[v4.4]]></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, 19 Feb 2020 19:55:18 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        3 years, 40 weeks ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[<s><a href='https://jira.mongodb.org/browse/SERVER-46767'>SERVER-46767</a></s>]]></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>
                            3 years, 40 weeks 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>charlie.swanson@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>mira.carey@mongodb.com</customfieldvalue>
            <customfieldvalue>nicholas.zolnierz@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hws007:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr5p47:</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="3494">Query 2020-03-09</customfieldvalue>
    <customfieldvalue id="3496">Query 2020-03-23</customfieldvalue>
    <customfieldvalue id="3497">Query 2020-04-06</customfieldvalue>
    <customfieldvalue id="3498">Query 2020-04-20</customfieldvalue>
    <customfieldvalue id="3499">Query 2020-05-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|hwrm9j:</customfieldvalue>

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