<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:14:32 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>[CDRIVER-2218] Only topology scanner performs MongoDB Handshake</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-2218</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;When using a client pool with a uri that has the ?appName=&amp;lt;something&amp;gt; option specified, none of the clients received from the pool will have the name passed to it. This is caused by the following lines 752-757 of mongoc-client.c, duplicated here:&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;   appname =&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;      mongoc_uri_get_option_as_utf8 (client-&amp;gt;uri, MONGOC_URI_APPNAME, NULL);&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #006699; font-weight: bold; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt; (appname &amp;amp;&amp;amp; client-&amp;gt;topology-&amp;gt;single_threaded) {&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;color: #008200; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;/* the appname should have already been validated */&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;      BSON_ASSERT (mongoc_client_set_appname (client, appname));&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;   }&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;
&lt;p&gt;single_threaded is set to false when using a pool, as set at mongoc-client-pool.c:111.&lt;/p&gt;

&lt;p&gt;This seems like a bug to me, but I could be misunderstanding how pools are meant to interact with the appName. The setting is explicitly excluded for multi-threaded contexts, so maybe this is intended. If it is indeed a bug, it should be fixed.&lt;/p&gt;</description>
                <environment></environment>
        <key id="406211">CDRIVER-2218</key>
            <summary>Only topology scanner performs MongoDB Handshake</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="bjori">Hannes Magnusson</assignee>
                                    <reporter username="patrick.freed@mongodb.com">Patrick Freed</reporter>
                        <labels>
                    </labels>
                <created>Wed, 19 Jul 2017 21:56:49 +0000</created>
                <updated>Sat, 28 Oct 2023 11:30:35 +0000</updated>
                            <resolved>Tue, 8 Aug 2017 16:34:59 +0000</resolved>
                                                    <fixVersion>1.8.0</fixVersion>
                                    <component>libmongoc</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="1643545" author="xgen-internal-githook" created="Tue, 8 Aug 2017 21:06:44 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;bjori&apos;, &apos;email&apos;: &apos;bjori@php.net&apos;, &apos;name&apos;: &apos;Hannes Magnusson&apos;}
&lt;p&gt;Message: Merge branch &apos;&lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2218&quot; title=&quot;Only topology scanner performs MongoDB Handshake&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2218&quot;&gt;&lt;del&gt;CDRIVER-2218&lt;/del&gt;&lt;/a&gt;-appname&apos;&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2218&quot; title=&quot;Only topology scanner performs MongoDB Handshake&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2218&quot;&gt;&lt;del&gt;CDRIVER-2218&lt;/del&gt;&lt;/a&gt;-appname:&lt;br/&gt;
  &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2218&quot; title=&quot;Only topology scanner performs MongoDB Handshake&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2218&quot;&gt;&lt;del&gt;CDRIVER-2218&lt;/del&gt;&lt;/a&gt; Only topology scanner performs MongoDB Handshake&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/7ca6a2eb926808b919f66d80b0a5ac3991389225&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/7ca6a2eb926808b919f66d80b0a5ac3991389225&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="1643544" author="xgen-internal-githook" created="Tue, 8 Aug 2017 21:06:43 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;bjori&apos;, &apos;email&apos;: &apos;bjori@php.net&apos;, &apos;name&apos;: &apos;Hannes Magnusson&apos;}
&lt;p&gt;Message: Merge branch &apos;&lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2218&quot; title=&quot;Only topology scanner performs MongoDB Handshake&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2218&quot;&gt;&lt;del&gt;CDRIVER-2218&lt;/del&gt;&lt;/a&gt;-appname&apos;&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2218&quot; title=&quot;Only topology scanner performs MongoDB Handshake&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2218&quot;&gt;&lt;del&gt;CDRIVER-2218&lt;/del&gt;&lt;/a&gt;-appname:&lt;br/&gt;
  &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2218&quot; title=&quot;Only topology scanner performs MongoDB Handshake&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2218&quot;&gt;&lt;del&gt;CDRIVER-2218&lt;/del&gt;&lt;/a&gt; Only topology scanner performs MongoDB Handshake&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/7ca6a2eb926808b919f66d80b0a5ac3991389225&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/7ca6a2eb926808b919f66d80b0a5ac3991389225&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="1643543" author="xgen-internal-githook" created="Tue, 8 Aug 2017 21:06:42 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;bjori&apos;, &apos;email&apos;: &apos;bjori@php.net&apos;, &apos;name&apos;: &apos;Hannes Magnusson&apos;}
&lt;p&gt;Message: Merge branch &apos;&lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2218&quot; title=&quot;Only topology scanner performs MongoDB Handshake&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2218&quot;&gt;&lt;del&gt;CDRIVER-2218&lt;/del&gt;&lt;/a&gt;-appname&apos;&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2218&quot; title=&quot;Only topology scanner performs MongoDB Handshake&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2218&quot;&gt;&lt;del&gt;CDRIVER-2218&lt;/del&gt;&lt;/a&gt;-appname:&lt;br/&gt;
  &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2218&quot; title=&quot;Only topology scanner performs MongoDB Handshake&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2218&quot;&gt;&lt;del&gt;CDRIVER-2218&lt;/del&gt;&lt;/a&gt; Only topology scanner performs MongoDB Handshake&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/7ca6a2eb926808b919f66d80b0a5ac3991389225&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/7ca6a2eb926808b919f66d80b0a5ac3991389225&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="1643542" author="xgen-internal-githook" created="Tue, 8 Aug 2017 21:06:41 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;bjori&apos;, &apos;email&apos;: &apos;bjori@php.net&apos;, &apos;name&apos;: &apos;Hannes Magnusson&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2218&quot; title=&quot;Only topology scanner performs MongoDB Handshake&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2218&quot;&gt;&lt;del&gt;CDRIVER-2218&lt;/del&gt;&lt;/a&gt; Only topology scanner performs MongoDB Handshake&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/fb1031b76f1e28bdf96bb51cc5e71926b675f222&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/fb1031b76f1e28bdf96bb51cc5e71926b675f222&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1627028" author="jesse" created="Thu, 20 Jul 2017 00:41:40 +0000"  >&lt;p&gt;Good catch. &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=bjori&quot; class=&quot;user-hover&quot; rel=&quot;bjori&quot;&gt;bjori&lt;/a&gt; I think he&apos;s right that it&apos;s a bug. The handshake spec says,&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;The isMaster handshake MUST be performed on every socket to any and all servers upon establishing the connection to MongoDB, including reconnects of dropped connections and newly discovered members of a cluster. It MUST be the first command sent over the respective socket. If the command fails the client MUST disconnect.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Therefore, the cluster handshake from a pooled client should send appName. This will be easy to check with a mock server test.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10020">
                    <name>Gantt Dependency</name>
                                            <outwardlinks description="has to be done before">
                                        <issuelink>
            <issuekey id="383722">CXX-1340</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|ht34y7:</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>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>