<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:13:43 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-47267] Exhaust isMaster replies are logged as slow queries</title>
                <link>https://jira.mongodb.org/browse/SERVER-47267</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;With the new streaming isMaster protocol, it seems that isMaster replies are logged as slow queries. Is this intentional or shall we suppress these messages?&lt;/p&gt;</description>
                <environment></environment>
        <key id="1301654">SERVER-47267</key>
            <summary>Exhaust isMaster replies are logged as slow queries</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="jesse@mongodb.com">A. Jesse Jiryu Davis</assignee>
                                    <reporter username="jesse@mongodb.com">A. Jesse Jiryu Davis</reporter>
                        <labels>
                    </labels>
                <created>Thu, 2 Apr 2020 13:49:42 +0000</created>
                <updated>Sun, 29 Oct 2023 22:10:02 +0000</updated>
                            <resolved>Fri, 17 Apr 2020 22:07:47 +0000</resolved>
                                                    <fixVersion>4.4.0-rc4</fixVersion>
                    <fixVersion>4.7.0</fixVersion>
                                    <component>Replication</component>
                                        <votes>0</votes>
                                    <watches>8</watches>
                                                                                                                <comments>
                            <comment id="3065226" author="xgen-internal-githook" created="Fri, 1 May 2020 20:28:49 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;A. Jesse Jiryu Davis&apos;, &apos;email&apos;: &apos;jesse@mongodb.com&apos;, &apos;username&apos;: &apos;ajdavis&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-47267&quot; title=&quot;Exhaust isMaster replies are logged as slow queries&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-47267&quot;&gt;&lt;del&gt;SERVER-47267&lt;/del&gt;&lt;/a&gt; Don&apos;t log awaitable isMaster as slow query&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 7dcdf00a34e6b030d63001c7586cbc161ef5229a)&lt;br/&gt;
Branch: v4.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/3b9eec568a152955bae821a4ff8974891bbb939a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/3b9eec568a152955bae821a4ff8974891bbb939a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3045568" author="xgen-internal-githook" created="Fri, 17 Apr 2020 20:41:53 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;A. Jesse Jiryu Davis&apos;, &apos;email&apos;: &apos;jesse@mongodb.com&apos;, &apos;username&apos;: &apos;ajdavis&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-47267&quot; title=&quot;Exhaust isMaster replies are logged as slow queries&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-47267&quot;&gt;&lt;del&gt;SERVER-47267&lt;/del&gt;&lt;/a&gt; Don&apos;t log awaitable isMaster as slow query&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/7dcdf00a34e6b030d63001c7586cbc161ef5229a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/7dcdf00a34e6b030d63001c7586cbc161ef5229a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3028377" author="jesse" created="Mon, 6 Apr 2020 21:45:51 +0000"  >&lt;p&gt;Waiting for &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-44954&quot; title=&quot;Use tailable awaitable isMaster&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-44954&quot;&gt;&lt;del&gt;SERVER-44954&lt;/del&gt;&lt;/a&gt; so I can use the constant kMaxAwaitTimeMS in the code for this change.&lt;/p&gt;</comment>
                            <comment id="3026261" author="jesse" created="Sat, 4 Apr 2020 15:30:31 +0000"  >&lt;p&gt;There&apos;s no existing mechanism either to set an individual command&apos;s slow query threshold, nor is there one for suppressing slow query logging. Since I have to build something new anyway, I&apos;ll follow the suggestion of specifically logging slow queries for isMaster if it takes 2x the expected max (2 * 10 seconds).&lt;/p&gt;</comment>
                            <comment id="3025860" author="bruce.lucas@10gen.com" created="Fri, 3 Apr 2020 19:39:57 +0000"  >&lt;p&gt;OK, yeah I guess that&apos;s too much.&lt;/p&gt;

&lt;p&gt;Agreed it&apos;s simpler and info would be less useful, but, still, things can go wrong... If there&apos;s a mechanism already in place to set the logging threshold individually for this command then it might be useful to set it to say 2x max expected, i.e. 20 seconds. Otherwise I think it would be reasonable to suppress it - is there a mechanism for suppressing slow query logging for individual commands?&lt;/p&gt;</comment>
                            <comment id="3025846" author="jesse" created="Fri, 3 Apr 2020 19:32:07 +0000"  >&lt;p&gt;Yes, every 10 seconds for every connection. And when there&apos;s a topology change (such as a reconfig or stepdown) then there will be a message for every client monitoring connection that has been waiting longer than the slow query threshold since the last reply, which will be approximately all of them.&lt;/p&gt;

&lt;p&gt;Compared to tailable cursors, there are a much larger number of monitoring connections that are waiting for isMaster replies. I also think performance information about isMaster is much less useful compared to performance information about tailable cursors - isMaster is much simpler and doesn&apos;t involve the query or storage systems.&lt;/p&gt;</comment>
                            <comment id="3025814" author="bruce.lucas@10gen.com" created="Fri, 3 Apr 2020 19:11:38 +0000"  >&lt;p&gt;I believe tailable cursors, e.g. changestreams, do log the wait time, and this has I believe been useful information.&lt;/p&gt;

&lt;p&gt;In this case I think it could also be useful - for example, suppose something goes wrong and the isMaster reply takes 20 seconds instead of 10 - that I think would be useful information.&lt;/p&gt;

&lt;p&gt;However I do see the point about a large number of them - will this be every 10 seconds for every connection, or something else?&lt;/p&gt;</comment>
                            <comment id="3025704" author="jesse" created="Fri, 3 Apr 2020 18:42:23 +0000"  >&lt;p&gt;Right, it&apos;s the time the server waited before replying to the client&apos;s isMaster request. I think it shouldn&apos;t be logged as a slow query, however. The server is &lt;b&gt;supposed&lt;/b&gt; to wait up to 10 seconds before replying, if there has been no topology change in the meantime, so the long duration doesn&apos;t indicate a problem.  This will produce a large number of log messages which I don&apos;t think are useful to anyone.&lt;/p&gt;

&lt;p&gt;Do tailable cursors (capped collections or change streams) write slow query messages if they wait for new documents for longer than the slow query threshold?&lt;/p&gt;</comment>
                            <comment id="3025687" author="bruce.lucas@10gen.com" created="Fri, 3 Apr 2020 18:34:17 +0000"  >&lt;p&gt;What does the time reported represent? If it&apos;s duration between some request from a client and a response, i.e. this is a delay that would be experienced by a client, then they would seem to be appropriate.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="1037084">SERVER-44954</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="1341213">SERVER-47971</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="1437762">SERVER-50242</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1361740">SERVER-48393</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="1557628">SERVER-53197</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>9.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>
    
                        </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[[5002K00000tTguYQAS]]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 3 Apr 2020 18:34:17 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        3 years, 40 weeks, 5 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[<s><a href='https://jira.mongodb.org/browse/SERVER-44954'>SERVER-44954</a></s>]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_17050" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Downstream Team Attention</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16941"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            3 years, 40 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>jesse@mongodb.com</customfieldvalue>
            <customfieldvalue>bruce.lucas@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|hxd1if:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hx0obb:</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="3769">Repl 2020-04-20</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

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

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