<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:53:27 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-20187] drain mode must wait for synctail to unblock from blockingPeek call</title>
                <link>https://jira.mongodb.org/browse/SERVER-20187</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;The server does not exit drain mode until the timeout on the condvar waiting for more ops in the queue.  This can delay stepping up to primary for up to one second.&lt;/p&gt;</description>
                <environment></environment>
        <key id="227582">SERVER-20187</key>
            <summary>drain mode must wait for synctail to unblock from blockingPeek call</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="9">Done</resolution>
                                        <assignee username="benety.goh@mongodb.com">Benety Goh</assignee>
                                    <reporter username="milkie@mongodb.com">Eric Milkie</reporter>
                        <labels>
                    </labels>
                <created>Fri, 28 Aug 2015 19:35:39 +0000</created>
                <updated>Wed, 25 Jan 2017 22:00:11 +0000</updated>
                            <resolved>Thu, 3 Sep 2015 14:48:35 +0000</resolved>
                                                    <fixVersion>3.1.8</fixVersion>
                                    <component>Replication</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1021638" author="xgen-internal-githook" created="Thu, 3 Sep 2015 15:10:39 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;milkie&apos;, u&apos;name&apos;: u&apos;Eric Milkie&apos;, u&apos;email&apos;: u&apos;milkie@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-20187&quot; title=&quot;drain mode must wait for synctail to unblock from blockingPeek call&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-20187&quot;&gt;&lt;del&gt;SERVER-20187&lt;/del&gt;&lt;/a&gt; wake up from blockingPeek when entering drain mode&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/20e7c1c9e1c138e37b8c3c3009bcdd9c69d92667&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/20e7c1c9e1c138e37b8c3c3009bcdd9c69d92667&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1021533" author="xgen-internal-githook" created="Thu, 3 Sep 2015 14:04:38 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;benety&apos;, u&apos;name&apos;: u&apos;Benety Goh&apos;, u&apos;email&apos;: u&apos;benety@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-20187&quot; title=&quot;drain mode must wait for synctail to unblock from blockingPeek call&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-20187&quot;&gt;&lt;del&gt;SERVER-20187&lt;/del&gt;&lt;/a&gt; removed task executor argument from ReplicationCoordinatorExternalState::startThreads&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/84a461126d2286d34414bc01b5272791ee37de18&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/84a461126d2286d34414bc01b5272791ee37de18&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1021532" author="xgen-internal-githook" created="Thu, 3 Sep 2015 14:04:37 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;benety&apos;, u&apos;name&apos;: u&apos;Benety Goh&apos;, u&apos;email&apos;: u&apos;benety@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-20187&quot; title=&quot;drain mode must wait for synctail to unblock from blockingPeek call&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-20187&quot;&gt;&lt;del&gt;SERVER-20187&lt;/del&gt;&lt;/a&gt; BackgroundSync::producerThread does not need external task executor&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/0ebf28b05cdea6c8b2599ec80594d63ac4a3f9be&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/0ebf28b05cdea6c8b2599ec80594d63ac4a3f9be&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1021531" author="xgen-internal-githook" created="Thu, 3 Sep 2015 14:04:36 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;benety&apos;, u&apos;name&apos;: u&apos;Benety Goh&apos;, u&apos;email&apos;: u&apos;benety@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-20187&quot; title=&quot;drain mode must wait for synctail to unblock from blockingPeek call&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-20187&quot;&gt;&lt;del&gt;SERVER-20187&lt;/del&gt;&lt;/a&gt; BackgroundSync::cancelFetcher() aborts existing find/getMore commands using NetworkInterface::cancelAllCommands()&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/d7f02c9c1a6bb0271b1eaa571178c43ec2c57d34&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/d7f02c9c1a6bb0271b1eaa571178c43ec2c57d34&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1021530" author="xgen-internal-githook" created="Thu, 3 Sep 2015 14:04:34 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;benety&apos;, u&apos;name&apos;: u&apos;Benety Goh&apos;, u&apos;email&apos;: u&apos;benety@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-20187&quot; title=&quot;drain mode must wait for synctail to unblock from blockingPeek call&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-20187&quot;&gt;&lt;del&gt;SERVER-20187&lt;/del&gt;&lt;/a&gt; added ReplicationCoordinatorExternalState::signalApplierToCancelFetcher()&lt;/p&gt;

&lt;p&gt;This function notifies the BackgroundSync thread to cancel find/getMore commands that are&lt;br/&gt;
currently blocking on the sync source.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/f64df733c36f2e1b3336e6f6ae2f8553a5d3b5a4&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/f64df733c36f2e1b3336e6f6ae2f8553a5d3b5a4&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1021529" author="xgen-internal-githook" created="Thu, 3 Sep 2015 14:04:33 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;benety&apos;, u&apos;name&apos;: u&apos;Benety Goh&apos;, u&apos;email&apos;: u&apos;benety@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-20187&quot; title=&quot;drain mode must wait for synctail to unblock from blockingPeek call&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-20187&quot;&gt;&lt;del&gt;SERVER-20187&lt;/del&gt;&lt;/a&gt; added ThreadPoolTaskExecutor::cancelAllCommands() to cancel active commands on the network interface&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/34d2549b34620768d85bbf8cb7c2a364db8cc1dc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/34d2549b34620768d85bbf8cb7c2a364db8cc1dc&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1021047" author="xgen-internal-githook" created="Wed, 2 Sep 2015 20:30:49 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;benety&apos;, u&apos;name&apos;: u&apos;Benety Goh&apos;, u&apos;email&apos;: u&apos;benety@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-20187&quot; title=&quot;drain mode must wait for synctail to unblock from blockingPeek call&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-20187&quot;&gt;&lt;del&gt;SERVER-20187&lt;/del&gt;&lt;/a&gt; added cancelAllCommands to ASIO network interface&lt;/p&gt;

&lt;p&gt;Not implemented for NetworkInterfaceImpl or NetworkInterfaceMock&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/5fa5befcc722efc4420b8d82b15200787260dd00&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/5fa5befcc722efc4420b8d82b15200787260dd00&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1020905" author="milkie" created="Wed, 2 Sep 2015 18:05:36 +0000"  >&lt;p&gt;We&apos;re going to use the Network ASIO functionality to cancel the outstanding network call.  We can make a passthrough function in bgsync to call cancel on either the task executor or the network interface, whichever is more appropriate.&lt;/p&gt;</comment>
                            <comment id="1017481" author="milkie" created="Fri, 28 Aug 2015 21:36:04 +0000"  >&lt;p&gt;In order to wake it up early, we need to make the NetworkInterface close the socket associated with a task when cancel is called.  This will wake up the Fetcher.&lt;/p&gt;</comment>
                            <comment id="1017429" author="milkie" created="Fri, 28 Aug 2015 20:49:40 +0000"  >&lt;p&gt;In addition, the bgsync thread blocks waiting for getMore to return; we need to wake it up early when transitioning to primary and entering drain mode.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>10.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>Wed, 2 Sep 2015 18:22:43 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        8 years, 23 weeks, 6 days 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_14262" key="com.atlassian.jira.plugin.system.customfieldtypes:datepicker">
                        <customfieldname>End date</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 3 Sep 2015 23:59:59 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-56</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>crystal.horn@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            8 years, 23 weeks, 6 days 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>benety.goh@mongodb.com</customfieldvalue>
            <customfieldvalue>milkie@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|hrkw13:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsctdb:</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="666">RPL 9 (09/18/15)</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_14261" key="com.atlassian.jira.plugin.system.customfieldtypes:datepicker">
                        <customfieldname>Start date</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 28 Aug 2015 00:00:00 +0000</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_11861" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>User Summary</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="11856"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hsfpjj:</customfieldvalue>

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