<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:23:59 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[SERVER-30484] make _configsvrSetFeatureCompatibilityVersion foward remaining maxTimeMS to shards</title>
                <link>https://jira.mongodb.org/browse/SERVER-30484</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Since the default maxTimeMS is infinite, the config server should forward maxTimeMS (if one was specified in the requst) in its setFCV requests to shards.&lt;/p&gt;</description>
                <environment></environment>
        <key id="411778">SERVER-30484</key>
            <summary>make _configsvrSetFeatureCompatibilityVersion foward remaining maxTimeMS to shards</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="13203">Gone away</resolution>
                                        <assignee username="dianna.hohensee@mongodb.com">Dianna Hohensee</assignee>
                                    <reporter username="esha.maharishi@mongodb.com">Esha Maharishi</reporter>
                        <labels>
                    </labels>
                <created>Wed, 2 Aug 2017 20:08:37 +0000</created>
                <updated>Fri, 27 Oct 2023 20:43:58 +0000</updated>
                            <resolved>Tue, 26 Sep 2017 18:17:21 +0000</resolved>
                                    <version>3.5.10</version>
                                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="1682317" author="dianna.hohensee" created="Tue, 26 Sep 2017 18:16:43 +0000"  >&lt;p&gt;So the &lt;a href=&quot;https://github.com/mongodb/mongo/blob/726e5544108d7ef417de351d103f52c028feae3b/src/mongo/s/commands/cluster_set_feature_compatibility_version_cmd.cpp#L98&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;cluster (router/mongos) setFeatureCompatibilityVersion command&lt;/a&gt; and the &lt;a href=&quot;https://github.com/mongodb/mongo/blob/726e5544108d7ef417de351d103f52c028feae3b/src/mongo/s/catalog/sharding_catalog_manager.cpp#L330&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;config server setFeatureCompatibilityVersion command&lt;/a&gt; both use &lt;a href=&quot;https://github.com/mongodb/mongo/blob/726e5544108d7ef417de351d103f52c028feae3b/src/mongo/s/client/shard.cpp#L148&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Shard:: runCommandWithFixedRetryAttempts&lt;/a&gt;, which sets a &lt;a href=&quot;https://github.com/mongodb/mongo/blob/726e5544108d7ef417de351d103f52c028feae3b/src/mongo/s/client/shard.cpp#L155&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Milliseconds::max()&lt;/a&gt; timeout (effectively infinity, see &lt;a href=&quot;https://github.com/mongodb/mongo/blob/726e5544108d7ef417de351d103f52c028feae3b/src/mongo/util/duration.h#L52&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt;,&lt;br/&gt;
 &lt;a href=&quot;https://github.com/mongodb/mongo/blob/726e5544108d7ef417de351d103f52c028feae3b/src/mongo/util/duration.h#L209-L211&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt;, &lt;a href=&quot;http://en.cppreference.com/w/cpp/types/numeric_limits/max&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt;) default and then passes the parameters into &lt;a href=&quot;https://github.com/mongodb/mongo/blob/726e5544108d7ef417de351d103f52c028feae3b/src/mongo/s/client/shard.cpp#L171&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;ShardRemote::_runCommand&lt;/a&gt;. ShardRemote::_runCommand then uses the &lt;a href=&quot;https://github.com/mongodb/mongo/blob/5589e9d545c5774fcf0463ce6088148f64664878/src/mongo/s/client/shard_remote.cpp#L181-L182&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;min timeout&lt;/a&gt; of the the max time millis passed in and the max time millis set on the opCtx. So the default is already infinity if maxTimeMillis is unset.&lt;/p&gt;

&lt;p&gt;The user&apos;s maxTimeMillis, if specified, therefore depends on the common high level mongos/mongod command code to set it appropriately on the opCtx for every incoming command in order for it to correctly propagate across servers. The mongod command parses and sets it &lt;a href=&quot;https://github.com/mongodb/mongo/blob/e90f530a1f03490743bb66481e0011c72adaab53/src/mongo/db/service_entry_point_mongod.cpp#L657-L669&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt; before calling the particular command code, so the mongod is safe. The mongos common command code calls into the legacy strategy.h/cpp code &lt;a href=&quot;https://github.com/mongodb/mongo/blob/e90f530a1f03490743bb66481e0011c72adaab53/src/mongo/s/service_entry_point_mongos.cpp#L114-L137&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt;. strategy.h/cpp then &lt;a href=&quot;https://github.com/mongodb/mongo/blob/master/src/mongo/s/commands/strategy.cpp#L242-L252&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;parses maxTimeMS and sets it on the opCtx&lt;/a&gt; similarly.&lt;/p&gt;

&lt;p&gt;Confirmed that this is already implemented, so closing.&lt;/p&gt;</comment>
                            <comment id="1673980" author="esha.maharishi@10gen.com" created="Fri, 15 Sep 2017 15:23:40 +0000"  >&lt;p&gt;also check what maxTimeMS mongos sends to the config server for _configsvrSetFeatureCompatibilityVersion (make sure it&apos;s not the 30 sec default; if it&apos;s infinite it&apos;s fine)&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>2.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>Fri, 22 Sep 2017 16:07:55 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        6 years, 20 weeks, 1 day ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-698</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>
                            6 years, 20 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>dianna.hohensee@mongodb.com</customfieldvalue>
            <customfieldvalue>esha.maharishi@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|htc7db:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|ht3nxz:</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="1891">Sharding 2017-10-02</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|htbtfz:</customfieldvalue>

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