<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:35:19 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-55055] Add cumulative metric for the total refreshed connections</title>
                <link>https://jira.mongodb.org/browse/SERVER-55055</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;One of the metrics reported by the &lt;tt&gt;ConnectionPool&lt;/tt&gt;&#160;is &lt;tt&gt;totalRefreshing&lt;/tt&gt;, which refers to the number of connections that are scheduled for a refresh. Connections may get scheduled for a refresh due to hitting a timeout (&lt;a href=&quot;https://github.com/mongodb/mongo/blob/c0d405d22b53a4bdecdfeda449688182a7e7b13a/src/mongo/executor/connection_pool.cpp#L831&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;see here&lt;/a&gt;), or after getting returned to the pool (&lt;a href=&quot;https://github.com/mongodb/mongo/blob/c0d405d22b53a4bdecdfeda449688182a7e7b13a/src/mongo/executor/connection_pool.cpp#L788&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;see here&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;It appears that the connection pool may not accurately report the number of connections scheduled for a refresh. For example, the following shows the increase in the number of &lt;tt&gt;hello&lt;/tt&gt; commands (due to refreshing connections), but does not accurately report &lt;tt&gt;totalRefreshing&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://jira.mongodb.org/secure/attachment/303912/303912_connection-refresh.png&quot; height=&quot;235&quot; width=&quot;650&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;del&gt;This ticket should investigate this possibility and provide fixes if necessary.&lt;/del&gt;&lt;/p&gt;

&lt;p&gt;This ticket should introduce a new, cumulative metric that tracks the total number of refreshed connections (e.g., &lt;tt&gt;totalRefreshed&lt;/tt&gt;).&lt;/p&gt;</description>
                <environment></environment>
        <key id="1644128">SERVER-55055</key>
            <summary>Add cumulative metric for the total refreshed connections</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="daniel.morilha@mongodb.com">Daniel Morilha</assignee>
                                    <reporter username="amirsaman.memaripour@mongodb.com">Amirsaman Memaripour</reporter>
                        <labels>
                            <label>servicearch-wfbf-day</label>
                    </labels>
                <created>Tue, 9 Mar 2021 02:03:51 +0000</created>
                <updated>Sun, 29 Oct 2023 21:56:32 +0000</updated>
                            <resolved>Thu, 13 Jan 2022 15:02:15 +0000</resolved>
                                                    <fixVersion>5.3.0</fixVersion>
                                    <component>Internal Code</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="4290951" author="xgen-internal-githook" created="Thu, 13 Jan 2022 15:47:07 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Daniel Vitor Morilha&apos;, &apos;email&apos;: &apos;daniel.morilha@mongodb.com&apos;, &apos;username&apos;: &apos;daniel-mdb&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-55055&quot; title=&quot;Add cumulative metric for the total refreshed connections&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-55055&quot;&gt;&lt;del&gt;SERVER-55055&lt;/del&gt;&lt;/a&gt; Add cumulative metric for the total refreshed connections&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/facb8a30715fcb91c73a525aa0f6f5c0e1f83aa1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/facb8a30715fcb91c73a525aa0f6f5c0e1f83aa1&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4286891" author="JIRAUSER1263891" created="Tue, 11 Jan 2022 21:18:33 +0000"  >&lt;p&gt;Addressing potential test failure with multiversion variant where the introduced connection pool stats&#160;&lt;em&gt;totalRefereshed&lt;/em&gt;&#160;isn&apos;t present prior to the unreleased version 5.3.&lt;/p&gt;

&lt;p&gt;PR: &lt;a href=&quot;https://github.com/10gen/mongo/pull/2378&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/10gen/mongo/pull/2378&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Evergreen patch:&#160;&lt;a href=&quot;https://spruce.mongodb.com/version/61ddf28832f4170764bce814/tasks?sorts=STATUS%3AASC%3BBASE_STATUS%3ADESC&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://spruce.mongodb.com/version/61ddf28832f4170764bce814/tasks?sorts=STATUS%3AASC%3BBASE_STATUS%3ADESC&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4283375" author="xgen-internal-githook" created="Mon, 10 Jan 2022 16:25:34 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Daniel Vitor Morilha&apos;, &apos;email&apos;: &apos;daniel.morilha@mongodb.com&apos;, &apos;username&apos;: &apos;daniel-mdb&apos;}
&lt;p&gt;Message: Revert &quot;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-55055&quot; title=&quot;Add cumulative metric for the total refreshed connections&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-55055&quot;&gt;&lt;del&gt;SERVER-55055&lt;/del&gt;&lt;/a&gt; Add cumulative metric for the total refreshed connections&quot;&lt;/p&gt;

&lt;p&gt;This reverts commit 4ae8b3f29485b8a25877b8fd7e67787e9b3996de.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/14a754e2511ff668b4d61e7598ec3ce088cdcc9a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/14a754e2511ff668b4d61e7598ec3ce088cdcc9a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4278948" author="xgen-internal-githook" created="Thu, 6 Jan 2022 17:43:59 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Daniel Vitor Morilha&apos;, &apos;email&apos;: &apos;daniel.morilha@mongodb.com&apos;, &apos;username&apos;: &apos;daniel-mdb&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-55055&quot; title=&quot;Add cumulative metric for the total refreshed connections&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-55055&quot;&gt;&lt;del&gt;SERVER-55055&lt;/del&gt;&lt;/a&gt; Add cumulative metric for the total refreshed connections&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/4ae8b3f29485b8a25877b8fd7e67787e9b3996de&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/4ae8b3f29485b8a25877b8fd7e67787e9b3996de&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4271152" author="JIRAUSER1263891" created="Thu, 30 Dec 2021 16:32:02 +0000"  >&lt;p&gt;GH PR :&#160;&lt;a href=&quot;https://github.com/10gen/mongo/pull/2378&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;SERVER-55055 Add cumulative metric for the total refreshed connections by daniel-mdb &#183; Pull Request #2378 &#183; 10gen/mongo (github.com)&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3658345" author="amirsaman.memaripour" created="Thu, 11 Mar 2021 03:01:06 +0000"  >&lt;p&gt;I wasn&apos;t able to find any inconsistencies in values reported by &lt;tt&gt;totalRefreshing&lt;/tt&gt; during my investigations. To address possible sampling issues for values reported for connections pending a refresh, my recommendation is to add a new, cumulative metric to connection pools that tracks the total number of refreshed connections (&lt;tt&gt;totalRefreshed&lt;/tt&gt;).&lt;/p&gt;</comment>
                            <comment id="3655443" author="bruce.lucas@10gen.com" created="Tue, 9 Mar 2021 20:09:01 +0000"  >&lt;p&gt;It might be useful to add a &quot;totalRefreshed&quot; metric as you did in the associated HELP ticket. Generally cumulative metrics are more useful for performance investigations than instantaneous metrics because they&apos;re less subject to sampling error.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10520">
                    <name>Problem/Incident</name>
                                            <outwardlinks description="causes">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                                        </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="304105" name="always-refresh-after-timeout.png" size="208600" author="amirsaman.memaripour@mongodb.com" created="Wed, 10 Mar 2021 00:33:50 +0000"/>
                            <attachment id="304366" name="checkout-delay-1.png" size="117663" author="amirsaman.memaripour@mongodb.com" created="Thu, 11 Mar 2021 02:41:07 +0000"/>
                            <attachment id="304367" name="checkout-delay-2.png" size="115651" author="amirsaman.memaripour@mongodb.com" created="Thu, 11 Mar 2021 02:43:29 +0000"/>
                            <attachment id="304368" name="checkout-delay-3.png" size="107943" author="amirsaman.memaripour@mongodb.com" created="Thu, 11 Mar 2021 02:45:31 +0000"/>
                            <attachment id="303912" name="connection-refresh.png" size="100792" author="amirsaman.memaripour@mongodb.com" created="Tue, 9 Mar 2021 02:02:06 +0000"/>
                            <attachment id="304106" name="no-refresh-for-active.png" size="290429" author="amirsaman.memaripour@mongodb.com" created="Wed, 10 Mar 2021 00:34:43 +0000"/>
                            <attachment id="304369" name="pending-refresh.png" size="202624" author="amirsaman.memaripour@mongodb.com" created="Thu, 11 Mar 2021 02:53:05 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>7.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>8.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 9 Mar 2021 20:09:01 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        2 years, 3 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_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>
                            2 years, 3 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_16465" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Linked BF Score</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>173.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>amirsaman.memaripour@mongodb.com</customfieldvalue>
            <customfieldvalue>bruce.lucas@mongodb.com</customfieldvalue>
            <customfieldvalue>daniel.morilha@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|hyynpz:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr4bvz:</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="4503">Service Arch 2021-03-22</customfieldvalue>
    <customfieldvalue id="4504">Service Arch 2021-04-05</customfieldvalue>
    <customfieldvalue id="4685">Service Arch 2021-04-19</customfieldvalue>
    <customfieldvalue id="5076">Service Arch 2021-06-14</customfieldvalue>
    <customfieldvalue id="5127">Service Arch 2021-06-28</customfieldvalue>
    <customfieldvalue id="5184">Service Arch 2021-07-12</customfieldvalue>
    <customfieldvalue id="5301">Service Arch 2022-1-10</customfieldvalue>
    <customfieldvalue id="5678">Service Arch 2022-1-24</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10555" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Story Points</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</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|hyy9z3:</customfieldvalue>

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