<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:18: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-49107] Add async command API</title>
                <link>https://jira.mongodb.org/browse/SERVER-49107</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;For certain &lt;tt&gt;Command&lt;/tt&gt; implementations, notably awaitable isMaster, there is the potential to join an asynchronous queue. We should add some new functions to the &lt;tt&gt;Command*&lt;/tt&gt; API. To allow for asynchronous functions to activate hooks, we need a new helper ala &lt;tt&gt;CommandHelpers::runCommand()&lt;/tt&gt; and a new version of &lt;tt&gt;CommandInvocation::run()&lt;/tt&gt;. The async &lt;tt&gt;CommandInvocation::run()&lt;/tt&gt; should default to running the sync implementation on some persistent executor. There is some real work here in terms of designing a reliable API.&lt;/p&gt;

&lt;p&gt;This ticket also involves attaching this API to the command path.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1392358">SERVER-49107</key>
            <summary>Add async command API</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</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="amirsaman.memaripour@mongodb.com">Amirsaman Memaripour</assignee>
                                    <reporter username="ben.caimano@mongodb.com">Benjamin Caimano</reporter>
                        <labels>
                    </labels>
                <created>Thu, 25 Jun 2020 17:46:55 +0000</created>
                <updated>Sun, 29 Oct 2023 22:06:29 +0000</updated>
                            <resolved>Fri, 6 Nov 2020 21:26:02 +0000</resolved>
                                                    <fixVersion>4.9.0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="3515090" author="xgen-internal-githook" created="Thu, 3 Dec 2020 20:34:36 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Amirsaman Memaripour&apos;, &apos;email&apos;: &apos;amirsaman.memaripour@mongodb.com&apos;, &apos;username&apos;: &apos;samanca&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-49107&quot; title=&quot;Add async command API&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-49107&quot;&gt;&lt;del&gt;SERVER-49107&lt;/del&gt;&lt;/a&gt; Allow binding clients to executor threads&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/215c7b76ddb273627414edce75bea35acd1c0edd&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/215c7b76ddb273627414edce75bea35acd1c0edd&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3478865" author="xgen-internal-githook" created="Fri, 6 Nov 2020 04:34:00 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Amirsaman Memaripour&apos;, &apos;email&apos;: &apos;amirsaman.memaripour@mongodb.com&apos;, &apos;username&apos;: &apos;samanca&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-49107&quot; title=&quot;Add async command API&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-49107&quot;&gt;&lt;del&gt;SERVER-49107&lt;/del&gt;&lt;/a&gt; Add support for async execution to MongoD command path&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/a0fce10bb34cb04455f02948352f5eb37b38ad75&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/a0fce10bb34cb04455f02948352f5eb37b38ad75&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3454141" author="xgen-internal-githook" created="Tue, 20 Oct 2020 15:17:47 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Amirsaman Memaripour&apos;, &apos;email&apos;: &apos;amirsaman.memaripour@mongodb.com&apos;, &apos;username&apos;: &apos;samanca&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-49107&quot; title=&quot;Add async command API&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-49107&quot;&gt;&lt;del&gt;SERVER-49107&lt;/del&gt;&lt;/a&gt; Futurize migrationConflictHandler and runCommandInvocation&lt;br/&gt;
Branch: fixed_thread_pool_handshaking&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/18f1d000290ef77758455bbbe9c5de174614c3e7&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/18f1d000290ef77758455bbbe9c5de174614c3e7&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3445194" author="xgen-internal-githook" created="Wed, 14 Oct 2020 21:19:58 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Amirsaman Memaripour&apos;, &apos;email&apos;: &apos;amirsaman.memaripour@mongodb.com&apos;, &apos;username&apos;: &apos;samanca&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-49107&quot; title=&quot;Add async command API&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-49107&quot;&gt;&lt;del&gt;SERVER-49107&lt;/del&gt;&lt;/a&gt; Futurize and refactor command invocation&lt;br/&gt;
Branch: fixed_thread_pool_handshaking&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/b03c93d55baefc8a70a6ee790f1d497fd1ff8b70&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/b03c93d55baefc8a70a6ee790f1d497fd1ff8b70&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3444579" author="xgen-internal-githook" created="Wed, 14 Oct 2020 17:17:43 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Amirsaman Memaripour&apos;, &apos;email&apos;: &apos;amirsaman.memaripour@mongodb.com&apos;, &apos;username&apos;: &apos;samanca&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-49107&quot; title=&quot;Add async command API&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-49107&quot;&gt;&lt;del&gt;SERVER-49107&lt;/del&gt;&lt;/a&gt; Futurize and refactor runCommandImpl()&lt;br/&gt;
Branch: fixed_thread_pool_handshaking&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/1d6af89487957dfa75835b60f4c09e8c3cdf5cd5&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/1d6af89487957dfa75835b60f4c09e8c3cdf5cd5&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3412882" author="xgen-internal-githook" created="Sat, 26 Sep 2020 03:07:27 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Amirsaman Memaripour&apos;, &apos;email&apos;: &apos;amirsaman.memaripour@mongodb.com&apos;, &apos;username&apos;: &apos;samanca&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-49107&quot; title=&quot;Add async command API&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-49107&quot;&gt;&lt;del&gt;SERVER-49107&lt;/del&gt;&lt;/a&gt; Futurize and refactor execCommandDatabase()&lt;br/&gt;
Branch: fixed_thread_pool_handshaking&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/38f350478add12941539ec6f44034d5ba4443265&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/38f350478add12941539ec6f44034d5ba4443265&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3412544" author="xgen-internal-githook" created="Fri, 25 Sep 2020 20:05:16 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Amirsaman Memaripour&apos;, &apos;email&apos;: &apos;amirsaman.memaripour@mongodb.com&apos;, &apos;username&apos;: &apos;samanca&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-49107&quot; title=&quot;Add async command API&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-49107&quot;&gt;&lt;del&gt;SERVER-49107&lt;/del&gt;&lt;/a&gt; Futurize and refactor receivedCommands()&lt;br/&gt;
Branch: fixed_thread_pool_handshaking&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/4c283d5c34ba9a9ba2ede5fa066dcdd9ab337651&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/4c283d5c34ba9a9ba2ede5fa066dcdd9ab337651&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3400221" author="xgen-internal-githook" created="Fri, 18 Sep 2020 00:18:44 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Amirsaman Memaripour&apos;, &apos;email&apos;: &apos;amirsaman.memaripour@mongodb.com&apos;, &apos;username&apos;: &apos;samanca&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-49107&quot; title=&quot;Add async command API&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-49107&quot;&gt;&lt;del&gt;SERVER-49107&lt;/del&gt;&lt;/a&gt; Add support for async execution to handleRequest&lt;/p&gt;

&lt;p&gt;This patch extends handleRequest to capture context for out-of-line&lt;br/&gt;
execution and makes ServiceStateMachine own the opCtx used for&lt;br/&gt;
command execution.&lt;br/&gt;
Branch: fixed_thread_pool_handshaking&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/66b412e1658a3db4935385147b0048a37b39193e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/66b412e1658a3db4935385147b0048a37b39193e&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3393557" author="xgen-internal-githook" created="Mon, 14 Sep 2020 22:01:28 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Amirsaman Memaripour&apos;, &apos;email&apos;: &apos;amirsaman.memaripour@mongodb.com&apos;, &apos;username&apos;: &apos;samanca&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-49107&quot; title=&quot;Add async command API&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-49107&quot;&gt;&lt;del&gt;SERVER-49107&lt;/del&gt;&lt;/a&gt; Allow binding clients to executor threads&lt;br/&gt;
Branch: fixed_thread_pool_handshaking&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/dabf0e0842dcedad2485cc19e65db262bb3172f6&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/dabf0e0842dcedad2485cc19e65db262bb3172f6&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="1233301">SERVER-46653</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="1392359">SERVER-49108</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10020">
                    <name>Gantt Dependency</name>
                                                                <inwardlinks description="has to be done after">
                                        <issuelink>
            <issuekey id="1444927">SERVER-50346</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10520">
                    <name>Problem/Incident</name>
                                            <outwardlinks description="causes">
                                        <issuelink>
            <issuekey id="1537244">SERVER-52714</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="1535951">SERVER-52663</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>9.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>8.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>Tue, 21 Jul 2020 16:50:57 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        3 years, 9 weeks, 6 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[<a href='https://jira.mongodb.org/browse/SERVER-46653'>SERVER-46653</a>]]></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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-1704</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, 9 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>0.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>amirsaman.memaripour@mongodb.com</customfieldvalue>
            <customfieldvalue>ben.caimano@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hxrxi7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hxyean:</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="3953">Service arch 2020-07-13</customfieldvalue>
    <customfieldvalue id="4132">Service Arch 2020-07-27</customfieldvalue>
    <customfieldvalue id="4133">Service Arch 2020-08-10</customfieldvalue>
    <customfieldvalue id="4134">Service Arch 2020-08-24</customfieldvalue>
    <customfieldvalue id="4266">Service arch 2020-09-07</customfieldvalue>
    <customfieldvalue id="4268">Service arch 2020-10-05</customfieldvalue>
    <customfieldvalue id="4270">Service arch 2020-11-02</customfieldvalue>
    <customfieldvalue id="4271">Service arch 2020-11-16</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|hxrjrj:</customfieldvalue>

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