<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:03: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-43442] Remove blocking call from AsyncWorkScheduler::_targetHostAsync()</title>
                <link>https://jira.mongodb.org/browse/SERVER-43442</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;See &lt;a href=&quot;https://github.com/mongodb/mongo/blob/efcd78019be5803b725fbe84c58d8dba3c860123/src/mongo/db/s/transaction_coordinator_futures_util.cpp#L239&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt; in the transaction_coordinator_futures_util.cpp.&lt;/p&gt;</description>
                <environment></environment>
        <key id="935549">SERVER-43442</key>
            <summary>Remove blocking call from AsyncWorkScheduler::_targetHostAsync()</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="spencer@mongodb.com">Spencer Brody</assignee>
                                    <reporter username="dbeng-pm-bot">PM Bot</reporter>
                        <labels>
                            <label>autogen-todo</label>
                            <label>servicearch-wfbf-day</label>
                    </labels>
                <created>Mon, 23 Sep 2019 16:55:46 +0000</created>
                <updated>Sun, 29 Oct 2023 22:16:59 +0000</updated>
                            <resolved>Thu, 9 Apr 2020 22:21:35 +0000</resolved>
                                                    <fixVersion>4.7.0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="3419715" author="xgen-internal-githook" created="Wed, 30 Sep 2020 22:02:05 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Spencer T Brody&apos;, &apos;email&apos;: &apos;spencer@mongodb.com&apos;, &apos;username&apos;: &apos;stbrody&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-48254&quot; title=&quot;Remove unsafe method Promise::setFrom(SemiFuture)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-48254&quot;&gt;&lt;del&gt;SERVER-48254&lt;/del&gt;&lt;/a&gt;: Revert &quot;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-43442&quot; title=&quot;Remove blocking call from AsyncWorkScheduler::_targetHostAsync()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-43442&quot;&gt;&lt;del&gt;SERVER-43442&lt;/del&gt;&lt;/a&gt; Remove blocking call from AsyncWorkScheduler host targetting&quot;&lt;/p&gt;

&lt;p&gt;This reverts commit 0651f3c7b63130842e85d44fec624b82a33b67a3.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/d4a95bccc5f2e6e66cb13ae40a980706112f6524&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/d4a95bccc5f2e6e66cb13ae40a980706112f6524&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3034300" author="xgen-internal-githook" created="Thu, 9 Apr 2020 22:20:57 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Spencer T Brody&apos;, &apos;email&apos;: &apos;spencer@mongodb.com&apos;, &apos;username&apos;: &apos;stbrody&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-43442&quot; title=&quot;Remove blocking call from AsyncWorkScheduler::_targetHostAsync()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-43442&quot;&gt;&lt;del&gt;SERVER-43442&lt;/del&gt;&lt;/a&gt; Remove blocking call from AsyncWorkScheduler host targetting&lt;/p&gt;

&lt;p&gt;Also updates some places relying on implicit conversion from Status to Future&lt;br/&gt;
to be explicit.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/0651f3c7b63130842e85d44fec624b82a33b67a3&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/0651f3c7b63130842e85d44fec624b82a33b67a3&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3029489" author="ben.caimano" created="Tue, 7 Apr 2020 15:51:32 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=spencer&quot; class=&quot;user-hover&quot; rel=&quot;spencer&quot;&gt;spencer&lt;/a&gt;, admittedly, I just did a skim that probably wouldn&apos;t qualify as fully understanding the code. That said, yeah, the blocking call to &lt;tt&gt;get()&lt;/tt&gt; shouldn&apos;t be happening. There is a wrinkle though: findHostWithMaxWait() returns a SemiFuture because it uses a different underlying executor. Normally, we&apos;d use an ExecutorFuture here to transform from HostAndPort to HostAndShard on the local executor. But we apparently have Futures as the AsyncWorkScheduler public API. We&apos;ve wanted to make &lt;a href=&quot;https://github.com/mongodb/mongo/blob/2f6cac5d4b98969621b48decd2cadaed9e8faf14/src/mongo/util/future.h#L694&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;unsafeToInlineFuture&lt;/a&gt; public for cases like these. I think now is probably the time for this.&lt;/p&gt;</comment>
                            <comment id="3028473" author="spencer" created="Mon, 6 Apr 2020 22:55:36 +0000"  >&lt;p&gt;The title of this ticket suggests that the return type of AsyncWorkScheduler::_targetHostAsync should be changed from Future&amp;lt;AsyncWorkScheduler::HostAndShard&amp;gt; to SemiFuture&amp;lt;AsyncWorkScheduler::HostAndShard&amp;gt;.  My understanding of the difference between Future and SemiFuture, however, is simply that Future allows you to schedule follow-up work on the same Executor, while SemiFuture requires you to specify what Executor you want to run any future work on.   Since _targetHostAsync is private, has only 1 caller, and that 1 caller goes on to schedule further work on the same Executor, I feel like the return type doesn&apos;t actually need to change here.&lt;/p&gt;

&lt;p&gt;I think the real issue is that _targetHostAsync makes a blocking call to select which host within the shard should be targeted, rather than doing that async.  I think that&apos;s the real issue that this ticket is about addressing.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=ben.caimano&quot; class=&quot;user-hover&quot; rel=&quot;ben.caimano&quot;&gt;ben.caimano&lt;/a&gt;, do you agree?  If so I&apos;ll update the ticket title and description accordingly.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10520">
                    <name>Problem/Incident</name>
                                            <outwardlinks description="causes">
                                        <issuelink>
            <issuekey id="1353009">SERVER-48254</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="561658">SERVER-35678</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1496466">SERVER-51247</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>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>14.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, 22 Oct 2019 18:29:35 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        3 years, 19 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_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, 19 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>ben.caimano@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>dbeng-pm-bot</customfieldvalue>
            <customfieldvalue>spencer@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hvrpm7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hvgbvr:</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="3334">Service Arch 2019-10-21</customfieldvalue>
    <customfieldvalue id="3379">Service Arch 2019-11-04</customfieldvalue>
    <customfieldvalue id="3380">Service Arch 2019-11-18</customfieldvalue>
    <customfieldvalue id="3381">Service Arch 2019-12-02</customfieldvalue>
    <customfieldvalue id="3382">Service Arch 2019-12-16</customfieldvalue>
    <customfieldvalue id="3383">Service Arch 2019-12-30</customfieldvalue>
    <customfieldvalue id="3563">Service Arch 2020-01-13</customfieldvalue>
    <customfieldvalue id="3564">Service Arch 2020-01-27</customfieldvalue>
    <customfieldvalue id="3565">Service Arch 2020-02-10</customfieldvalue>
    <customfieldvalue id="3668">Service Arch 2020-02-24</customfieldvalue>
    <customfieldvalue id="3669">Service Arch 2020-03-09</customfieldvalue>
    <customfieldvalue id="3743">Service Arch 2020-03-23</customfieldvalue>
    <customfieldvalue id="3746">Service Arch 2020-04-06</customfieldvalue>
    <customfieldvalue id="3838">Service arch 2020-04-20</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|hvrbvj:</customfieldvalue>

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