<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:51:04 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-39114] Missing appName info</title>
                <link>https://jira.mongodb.org/browse/SERVER-39114</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Hi there,&lt;/p&gt;

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

&lt;p&gt;We&apos;re using a custom application to collect and store the slow queries on our MongoDB deployments. We&apos;re using the `appName` to identify the applications making slow queries.&lt;/p&gt;

&lt;p&gt;We&apos;re noticing missing `appName` on some queries. We did many tests on our side to isolate and replicate the issue :&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;That&apos;s not query specific : the same query, coming from the same application, can be reported with and without the query&lt;/li&gt;
	&lt;li&gt;On this application, we&apos;re 100% sure the `appName` is set&lt;/li&gt;
	&lt;li&gt;The issue is not coming from our application : the `appName` is missing on the profiler too (I can share the profiler output privately)&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;We didn&apos;t find any related issue on the changelogs.&lt;/p&gt;

&lt;p&gt;We&apos;re noticing the issue from different drivers : `globalsign/mgo`, official NodeJS and official PHP.&lt;/p&gt;

&lt;p&gt;Can you tell us if we&apos;re missing something, or is there an issue on mongod side ? FYI, we noticed the issue only on our sharded clusters. As our replica set are less used, and less slow queries are reported on them, we don&apos;t know if there is a similar problem or not.&lt;/p&gt;

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

&lt;p&gt;Thanks,&lt;/p&gt;

&lt;p&gt;Anthony&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="675819">SERVER-39114</key>
            <summary>Missing appName info</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="1" iconUrl="https://jira.mongodb.org/images/icons/statuses/open.png" description="">Open</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="backlog-server-servicearch">Backlog - Service Architecture</assignee>
                                    <reporter username="anthony@sendinblue.com">Anthony Brodard</reporter>
                        <labels>
                    </labels>
                <created>Tue, 22 Jan 2019 08:29:49 +0000</created>
                <updated>Mon, 8 Jan 2024 15:23:18 +0000</updated>
                                            <version>3.4.17</version>
                    <version>3.4.18</version>
                                                    <component>Diagnostics</component>
                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>18</watches>
                                                                                                                <comments>
                            <comment id="4178455" author="JIRAUSER1262719" created="Tue, 9 Nov 2021 18:43:38 +0000"  >&lt;p&gt;We haven&#8217;t heard back from you for some time, so I&#8217;m going to close this ticket. If this is still an issue for you, please provide additional information and we will reopen the ticket.&lt;/p&gt;</comment>
                            <comment id="2607684" author="jason.carey" created="Fri, 13 Dec 2019 20:05:53 +0000"  >&lt;p&gt;I haven&apos;t been able to discover any codepaths that don&apos;t propagate application name and expect that this problem has been largely solved in later versions of mongos (as we&apos;ve converted larger portions of the sharding codebase to use the same primitives, which do correctly propagate).&lt;/p&gt;

&lt;p&gt;I&apos;ve filed &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-45141&quot; title=&quot;Make a test suite which always provides appName and verifies appname is always present&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-45141&quot;&gt;&lt;del&gt;SERVER-45141&lt;/del&gt;&lt;/a&gt; to investigate spinning up a test suite to verify that, but don&apos;t have any further updates at this time&lt;/p&gt;</comment>
                            <comment id="2525399" author="mark.benvenuto" created="Fri, 8 Nov 2019 16:43:28 +0000"  >&lt;p&gt;I have not been able to find the place in the code where &quot;Application Name&quot; is being lost by MongoS as part remote network request mechanism. I have been doing all my investigation on 4.2 but as someone suggested to me today, this may have gone away.&lt;/p&gt;

&lt;p&gt;Now, the remote request handling is tricky (&lt;a href=&quot;https://github.com/mongodb/mongo/blob/master/src/mongo/executor/remote_command_request.h#L70-L77&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/blob/master/src/mongo/executor/remote_command_request.h#L70-L77&lt;/a&gt;) because when I wrote the feature, I did not retrofit the entire product, only the user facing portions (i.e. I skipped internal generated queries by replication and sharding)&lt;/p&gt;

&lt;p&gt;I have a private branch were I instrumented our currentOp code to invariant whenever a query is received without app name but I have not found any cases from a mongos to mongod with our test suites. I found one issue (&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-43576&quot; title=&quot;DBClientRS does not propagate applicationName&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-43576&quot;&gt;&lt;del&gt;SERVER-43576&lt;/del&gt;&lt;/a&gt;) when the shell is initialized with a replica set URI but this is not the original case in this bug.&lt;/p&gt;

&lt;p&gt;Branch:&lt;br/&gt;
&lt;a href=&quot;https://github.com/markbenvenuto/mongo/tree/clientmd_missing_assert&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/markbenvenuto/mongo/tree/clientmd_missing_assert&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I going to assign this to the sharding team to see if they can offer an insight.&lt;/p&gt;</comment>
                            <comment id="2327143" author="samat.yusupov@nordigy.ru" created="Mon, 15 Jul 2019 15:34:39 +0000"  >&lt;p&gt;Hello! Watching the same issue. I&apos;m using mongodb 3.4.17 with replicaSet and nodejs driver.&lt;br/&gt;
Do you have any updates on this?&lt;/p&gt;</comment>
                            <comment id="2124834" author="daniel.hatcher" created="Wed, 23 Jan 2019 22:06:34 +0000"  >&lt;p&gt;Hello Anthony,&lt;/p&gt;

&lt;p&gt;Thank you for the information that you&apos;ve provided thus far. I&apos;ve forwarded this ticket on to the appropriate team to take a look.&lt;/p&gt;

&lt;p&gt;Danny&lt;/p&gt;</comment>
                            <comment id="2123146" author="anthony@sendinblue.com" created="Tue, 22 Jan 2019 19:03:15 +0000"  >&lt;p&gt;We were affected by&#160;&#160;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-34141&quot; title=&quot;Inconsistent appName in Shard&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-34141&quot;&gt;&lt;del&gt;SERVER-34141&lt;/del&gt;&lt;/a&gt; and I confirm this issue have been fixed in version &amp;gt; 3.4.17.&lt;/p&gt;

&lt;p&gt;We are seeing the missing appName on our two clusters, one is running in 3.4.17, the other one in 3.4.18.&lt;/p&gt;

&lt;p&gt;About the drivers, we using&#160;&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;globalsign/mgo - r2018.06.15&lt;/li&gt;
	&lt;li&gt;ext-mongodb - 1.4.*&lt;/li&gt;
	&lt;li&gt;loopback-connector-mongodb - 3.4.3&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="2123124" author="daniel.hatcher" created="Tue, 22 Jan 2019 18:53:50 +0000"  >&lt;p&gt;Hello Anthony,&lt;/p&gt;

&lt;p&gt;It is possible that you experiencing &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-34141&quot; title=&quot;Inconsistent appName in Shard&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-34141&quot;&gt;&lt;del&gt;SERVER-34141&lt;/del&gt;&lt;/a&gt; but that should have been fixed in 3.4.17. In the initial creation of this ticket you set the &quot;Affects Version&quot; field to 3.4.17 and 3.4.18. Can you please confirm what version of MongoDB you are running in this environment as well as the driver(s) you are using to perform the queries that generate these slowOp entries?&lt;/p&gt;

&lt;p&gt;Thank you,&lt;/p&gt;

&lt;p&gt;Danny&lt;/p&gt;</comment>
                            <comment id="2123079" author="anthony@sendinblue.com" created="Tue, 22 Jan 2019 18:29:11 +0000"  >&lt;p&gt;HI Danny&lt;/p&gt;

&lt;p&gt;&amp;gt;&#160;How is your application gathering the appName from slow MongoDB queries?&#160;Are you simply parsing through the&#160;&lt;tt&gt;mongod&lt;/tt&gt;/&lt;tt&gt;mongos&lt;/tt&gt;&#160;log files, the slow query profiler, or are you using another method?&lt;/p&gt;

&lt;p&gt;Our application is only based on the db.currentOp() command output. We used the profiler to isolate the issue, and exclude an error on our application side.&lt;/p&gt;

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

&lt;p&gt;Please find attached the profiler output. There coming from the same process. The appName is defined in &quot;appName.json&quot; (L216), not in &quot;appNameMissing.json&quot;.&lt;/p&gt;

&lt;p&gt;Please let me know if you need more information about our setup.&lt;/p&gt;

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

&lt;p&gt;Regards,&lt;/p&gt;

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

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="2122772" author="daniel.hatcher" created="Tue, 22 Jan 2019 15:50:11 +0000"  >&lt;p&gt;Hello Anthony,&lt;/p&gt;

&lt;p&gt;How is your application gathering the appName from slow MongoDB queries? Are you simply parsing through the &lt;tt&gt;mongod&lt;/tt&gt;/&lt;tt&gt;mongos&lt;/tt&gt; log files, the slow query profiler, or are you using another method? Could you provide an example output of a query that sometimes shows correctly and sometimes does not? I do not believe the actual fields being queried are important so feel free to redact that information.&lt;/p&gt;

&lt;p&gt;Thank you,&lt;/p&gt;

&lt;p&gt;Danny&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="935788">SERVER-43576</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="1052381">SERVER-45141</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1052386">SERVER-45142</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="206865" name="appName.json" size="4248" author="anthony@sendinblue.com" created="Tue, 22 Jan 2019 18:29:43 +0000"/>
                            <attachment id="206866" name="appNameMissing.json" size="4196" author="anthony@sendinblue.com" created="Tue, 22 Jan 2019 18:29:43 +0000"/>
                    </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>15.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25132"><![CDATA[Service Arch]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 22 Jan 2019 15:50:11 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        2 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[<s><a href='https://jira.mongodb.org/browse/SERVER-43576'>SERVER-43576</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_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, 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>anthony@sendinblue.com</customfieldvalue>
            <customfieldvalue>backlog-server-servicearch</customfieldvalue>
            <customfieldvalue>daniel.hatcher@mongodb.com</customfieldvalue>
            <customfieldvalue>lauren.lewis@mongodb.com</customfieldvalue>
            <customfieldvalue>mark.benvenuto@mongodb.com</customfieldvalue>
            <customfieldvalue>mira.carey@mongodb.com</customfieldvalue>
            <customfieldvalue>samat.yusupov@nordigy.ru</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hujvhj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|huka1j:</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="2798">Security 2019-02-11</customfieldvalue>
    <customfieldvalue id="2799">Security 2019-02-25</customfieldvalue>
    <customfieldvalue id="2800">Security 2019-03-11</customfieldvalue>
    <customfieldvalue id="2835">Security 2019-03-25</customfieldvalue>
    <customfieldvalue id="2836">Security 2019-04-08</customfieldvalue>
    <customfieldvalue id="2837">Security 2019-04-22</customfieldvalue>
    <customfieldvalue id="2912">Security 2019-05-06</customfieldvalue>
    <customfieldvalue id="2913">Security 2019-05-20</customfieldvalue>
    <customfieldvalue id="2981">Security 2019-06-03</customfieldvalue>
    <customfieldvalue id="3030">Security 2019-07-01</customfieldvalue>
    <customfieldvalue id="3110">Security 2019-09-09</customfieldvalue>
    <customfieldvalue id="3278">Security 2019-09-23</customfieldvalue>
    <customfieldvalue id="3279">Security 2019-10-07</customfieldvalue>
    <customfieldvalue id="3339">Security 2019-10-21</customfieldvalue>
    <customfieldvalue id="3340">Security 2019-11-04</customfieldvalue>

                        </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|hujhqv:</customfieldvalue>

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