<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:17:53 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-48709] signing key generator thread on config server not waken up as expected</title>
                <link>https://jira.mongodb.org/browse/SERVER-48709</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;hello,&lt;/p&gt;

&lt;p&gt;we have encountered the issue&#160;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-47553&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;SERVER-47553&lt;/a&gt; in Alibaba Cloud hosted mongodb instances, we notice that the mongos crash issue has been fixed, which was caused by throwing exception in destructor function when use&#160;ON_BLOCK_EXIT to call&#160;appendRequiredFieldsToResponse, and that will cause mongos to call std::terminate().&lt;/p&gt;

&lt;p&gt;however, the fix about &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-47553&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;SERVER-47553&lt;/a&gt;&#160; just avoid mongos to crash, but the root issue looks unresolved. because after we apply this patch, it seems mongos can&apos;t connect mongod server nodes yet,&#160; so we dig out this problem.&#160; seems like there is a bug in&#160;monitoring-keys-for-HMAC thread on the primary node of config server, would cause signing keys not generated&#160; by the KeysRotationIntervalSec interval, and when mongos call KeysCollectionManager::refreshNow to ask config server for new signing keys, it will fail with a timeout exception, which cause this problem to happen.&lt;/p&gt;

&lt;p&gt;I am sure the root cause is a bug in &quot;howMuchSleepNeedFor&quot; function, which caculate the wake-up interval for&#160;monitoring-keys-for-HMAC thread on the primary node of config server:&lt;/p&gt;

&lt;p&gt;auto millisBeforeExpire = 1000 * (expiredSecs - currentSecs);&lt;/p&gt;

&lt;p&gt;here&#160;expiredSecs and&#160;currentSecs are type of unsigned int, and the default wake-up interval is 90days(7776000 seconds), after a unit conversion to mills, it will be&#160;7776000000, which will be an overflow value since the max is&#160;4294967295&lt;/p&gt;

&lt;p&gt;this will cause a serious problem, because mongos can&apos;t reconnect mongod server nodes even if after restart many times,&#160; a&#160;feasible resolution is to restart config server nodes and this will trigger&#160;monitoring-keys-for-HMAC thread to generate new signing keys, and mongos can reconnect successfully after that.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="1377926">SERVER-48709</key>
            <summary>signing key generator thread on config server not waken up as expected</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="13201">Fixed</resolution>
                                        <assignee username="jack.mulrow@mongodb.com">Jack Mulrow</assignee>
                                    <reporter username="jcli.china@gmail.com">Jingcheng Li</reporter>
                        <labels>
                    </labels>
                <created>Thu, 11 Jun 2020 07:04:05 +0000</created>
                <updated>Sun, 29 Oct 2023 22:07:12 +0000</updated>
                            <resolved>Tue, 21 Jul 2020 20:29:19 +0000</resolved>
                                                    <fixVersion>4.4.1</fixVersion>
                    <fixVersion>3.6.20</fixVersion>
                    <fixVersion>4.7.0</fixVersion>
                    <fixVersion>4.2.10</fixVersion>
                    <fixVersion>4.0.21</fixVersion>
                                                        <votes>1</votes>
                                    <watches>14</watches>
                                                                                                                <comments>
                            <comment id="3482973" author="JIRAUSER1253295" created="Tue, 10 Nov 2020 08:34:54 +0000"  >&lt;p&gt;OK, I had reopen a new ticket &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-52654&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;SERVER-52654&lt;/a&gt;, Thanks !&lt;/p&gt;</comment>
                            <comment id="3479483" author="garaudy.etienne" created="Fri, 6 Nov 2020 14:55:56 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=jcli.china%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;jcli.china@gmail.com&quot;&gt;jcli.china@gmail.com&lt;/a&gt;&#160;can you reopen the ticket or file a new ticket mentioning the lingering issue you&apos;re observing please?&lt;/p&gt;</comment>
                            <comment id="3477173" author="JIRAUSER1253295" created="Thu, 5 Nov 2020 11:13:39 +0000"  >&lt;p&gt;hello  @Carl Champain,&lt;/p&gt;

&lt;p&gt;I see the overflow issue is fixed,  but the problem already happens after we upgraded the config server to  a version of 4.2.10,  new signing keys not generated by the monitoring-keys-for-HMAC thread, and mongos can&apos;t reconnect mongod server nodes. I think the root cause of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-47553&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;SERVER-47553&lt;/a&gt; and this issue is the same, but it have not been digged out, as this issue may cause unexpected downtime  for our service, it&apos;s a very serious problem, wish it can be fixed ASAP, Thanks!&lt;/p&gt;</comment>
                            <comment id="3335144" author="xgen-internal-githook" created="Wed, 12 Aug 2020 18:30:48 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Jack Mulrow&apos;, &apos;email&apos;: &apos;jack.mulrow@mongodb.com&apos;, &apos;username&apos;: &apos;jsmulrow&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-48709&quot; title=&quot;signing key generator thread on config server not waken up as expected&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-48709&quot;&gt;&lt;del&gt;SERVER-48709&lt;/del&gt;&lt;/a&gt; Fix overflow in key manager wake up calculation&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 0cb70e9577c46257798d0385b15ec6bff8dbd28d)&lt;br/&gt;
Branch: v4.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/86d5aa1f6e698d7b89a614cce25479e20cc6ae6c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/86d5aa1f6e698d7b89a614cce25479e20cc6ae6c&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3335124" author="xgen-internal-githook" created="Wed, 12 Aug 2020 18:26:32 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Jack Mulrow&apos;, &apos;email&apos;: &apos;jack.mulrow@mongodb.com&apos;, &apos;username&apos;: &apos;jsmulrow&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-48709&quot; title=&quot;signing key generator thread on config server not waken up as expected&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-48709&quot;&gt;&lt;del&gt;SERVER-48709&lt;/del&gt;&lt;/a&gt; Fix overflow in key manager wake up calculation&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 0cb70e9577c46257798d0385b15ec6bff8dbd28d)&lt;br/&gt;
Branch: v3.6&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/bdc96c3cab7889f4f3ba7adb20527a4d68445288&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/bdc96c3cab7889f4f3ba7adb20527a4d68445288&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3334486" author="xgen-internal-githook" created="Wed, 12 Aug 2020 13:49:18 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Jack Mulrow&apos;, &apos;email&apos;: &apos;jack.mulrow@mongodb.com&apos;, &apos;username&apos;: &apos;jsmulrow&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-48709&quot; title=&quot;signing key generator thread on config server not waken up as expected&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-48709&quot;&gt;&lt;del&gt;SERVER-48709&lt;/del&gt;&lt;/a&gt; Fix overflow in key manager wake up calculation&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 0cb70e9577c46257798d0385b15ec6bff8dbd28d)&lt;br/&gt;
Branch: v4.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/7a2af2b1a2f63fea3c66ce5d5c52dc11ad02a903&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/7a2af2b1a2f63fea3c66ce5d5c52dc11ad02a903&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3334466" author="xgen-internal-githook" created="Wed, 12 Aug 2020 13:36:24 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Jack Mulrow&apos;, &apos;email&apos;: &apos;jack.mulrow@mongodb.com&apos;, &apos;username&apos;: &apos;jsmulrow&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-48709&quot; title=&quot;signing key generator thread on config server not waken up as expected&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-48709&quot;&gt;&lt;del&gt;SERVER-48709&lt;/del&gt;&lt;/a&gt; Fix overflow in key manager wake up calculation&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 0cb70e9577c46257798d0385b15ec6bff8dbd28d)&lt;br/&gt;
Branch: v4.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/b732c725b34f0d582c69ada999864618b7ff7eb1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/b732c725b34f0d582c69ada999864618b7ff7eb1&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3294980" author="xgen-internal-githook" created="Tue, 21 Jul 2020 17:39:56 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Jack Mulrow&apos;, &apos;email&apos;: &apos;jack.mulrow@mongodb.com&apos;, &apos;username&apos;: &apos;jsmulrow&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-48709&quot; title=&quot;signing key generator thread on config server not waken up as expected&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-48709&quot;&gt;&lt;del&gt;SERVER-48709&lt;/del&gt;&lt;/a&gt; Fix overflow in key manager wake up calculation&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/0cb70e9577c46257798d0385b15ec6bff8dbd28d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/0cb70e9577c46257798d0385b15ec6bff8dbd28d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3208760" author="carl.champain" created="Mon, 15 Jun 2020 19:59:39 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=jcli.china%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;jcli.china@gmail.com&quot;&gt;jcli.china@gmail.com&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thanks for the report.&lt;br/&gt;
We are passing this ticket along to the appropriate team for further investigation. Updates will be posted on this ticket as they happen.&lt;/p&gt;

&lt;p&gt;Kind regards,&lt;br/&gt;
Carl&lt;/p&gt;</comment>
                            <comment id="3204582" author="JIRAUSER1253295" created="Thu, 11 Jun 2020 07:13:54 +0000"  >&lt;p&gt;Change the type of &quot;millisBeforeExpire&quot; to unsigned long long should fix it.&lt;/p&gt;

&lt;p&gt;And our instances are MongoDB 4.2.1 community edition.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Look forward for your feedback. thanks!&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="1535407">SERVER-52654</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>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_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="18953"><![CDATA[v4.4]]></customfieldvalue>
    <customfieldvalue key="16775"><![CDATA[v4.2]]></customfieldvalue>
    <customfieldvalue key="15640"><![CDATA[v4.0]]></customfieldvalue>
    <customfieldvalue key="15141"><![CDATA[v3.6]]></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_13552" key="com.go2group.jira.plugin.crm:crm_generic_field">
                        <customfieldname>Case</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[[5002K00000r3HtmQAE, 5002K00000tTOIJQA4]]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 15 Jun 2020 19:59:39 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        3 years, 13 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_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-1771</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, 13 weeks, 1 day 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>carl.champain@mongodb.com</customfieldvalue>
            <customfieldvalue>garaudy.etienne@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>jack.mulrow@mongodb.com</customfieldvalue>
            <customfieldvalue>jcli.china@gmail.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hxpgvj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hxcju7:</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="4135">Sharding 2020-07-27</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|hxp34v:</customfieldvalue>

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