<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:11:59 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-46625] Improve diagnostics when mongocryptd requests are sent to non-mongocryptd daemon</title>
                <link>https://jira.mongodb.org/browse/SERVER-46625</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;The default port of mongocryptd is 27020. The default port of mongod is 27017. There is precedent (for example, mlaunch does this, as well as drivers&apos; test suites in evergreen) to start launching mongod/mongos on 27017 and go up in port numbers until the required number of daemons is provisioned.&lt;/p&gt;

&lt;p&gt;Following the described port allocation for mongod/mongos processes, eventually there is going to be a mongod or mongos on port 27020. When this happens, operations fail with the following cryptic error:&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;&amp;nbsp;&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;     Mongo::Error::OperationFailure:&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 field &apos;insert.jsonSchema&apos; is an unknown field. (40415) (on localhost:27019, on localhost:14220, modern retry, attempt 1) (on localhost:27019, on localhost:14220, modern retry, attempt 1)&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;Shared Example Group: &quot;a functioning encrypter&quot; called from ./spec/integration/client_side_encryption/corpus_spec.rb:210&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;Note that the above exception is referencing localhost:27019.&lt;/p&gt;

&lt;p&gt;Here is what happened:&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;I have a sharded cluster deployment that starts on the default port 27017 for the mongos. This is used for testing srv monitoring by the driver.&lt;/li&gt;
	&lt;li&gt;As part of this deployment, there is a 2-node replica set for one of the shards occupying ports 27019 and 27020.&lt;/li&gt;
	&lt;li&gt;Right now 27019 is the primary and 27020 is the secondary.&lt;/li&gt;
	&lt;li&gt;When running client side encryption tests, the driver assumes mongocryptd exists on port 27020 and tries to connect there.&lt;/li&gt;
	&lt;li&gt;The driver performs normal SDAM discovery, detects the topology as a replica set, finds the primary on 27019, and sends the command intended for mongocryptd to the primary on 27019.&lt;/li&gt;
	&lt;li&gt;The command fails because it is received by a mongod rather than mongocryptd &lt;b&gt;but does not give this as the reason for failure&lt;/b&gt;.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Expected behavior:&lt;/p&gt;

&lt;p&gt;As a user of the driver, when the driver sends a command intended for mongocryptd to a mongod/mongos I want to be informed that the command was received by the wrong process, so that I can immediately take corrective action (reconfigure the driver and/or my deployments).&lt;/p&gt;

&lt;p&gt;Actual behavior:&lt;/p&gt;

&lt;p&gt;The error message produced does not indicate the root cause of the problem (command received by wrong daemon).&lt;/p&gt;</description>
                <environment></environment>
        <key id="1227451">SERVER-46625</key>
            <summary>Improve diagnostics when mongocryptd requests are sent to non-mongocryptd daemon</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="katherine.wu@mongodb.com">Katherine Wu</assignee>
                                    <reporter username="oleg.pudeyev@mongodb.com">Oleg Pudeyev</reporter>
                        <labels>
                            <label>qopt-team</label>
                    </labels>
                <created>Wed, 4 Mar 2020 21:56:14 +0000</created>
                <updated>Sun, 29 Oct 2023 22:11:16 +0000</updated>
                            <resolved>Tue, 2 Jun 2020 21:47:12 +0000</resolved>
                                    <version>4.2.1</version>
                                    <fixVersion>4.7.0</fixVersion>
                    <fixVersion>4.4.2</fixVersion>
                    <fixVersion>4.2.11</fixVersion>
                                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="3418704" author="xgen-internal-githook" created="Wed, 30 Sep 2020 15:19:36 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Katherine Wu&apos;, &apos;email&apos;: &apos;katherine.wu@mongodb.com&apos;, &apos;username&apos;: &apos;kaywux&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-46625&quot; title=&quot;Improve diagnostics when mongocryptd requests are sent to non-mongocryptd daemon&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-46625&quot;&gt;&lt;del&gt;SERVER-46625&lt;/del&gt;&lt;/a&gt; Improve diagnostics when mongocryptd requests are sent to non-mongocryptd daemon&lt;/p&gt;

&lt;p&gt;(cherry picked from commit becc8e5ecca4260e844725fa71f4ed1164647e4a)&lt;br/&gt;
(cherry picked from commit 77154fe6e600510d06d2e44015668aedfd8d2c97)&lt;br/&gt;
Branch: v4.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/e8b6b2815cdce52f980ccaf03d9753b377c1dd61&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/e8b6b2815cdce52f980ccaf03d9753b377c1dd61&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3389042" author="xgen-internal-githook" created="Fri, 11 Sep 2020 20:39:17 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Katherine Wu&apos;, &apos;email&apos;: &apos;katherine.wu@mongodb.com&apos;, &apos;username&apos;: &apos;kaywux&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-46625&quot; title=&quot;Improve diagnostics when mongocryptd requests are sent to non-mongocryptd daemon&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-46625&quot;&gt;&lt;del&gt;SERVER-46625&lt;/del&gt;&lt;/a&gt; Improve diagnostics when mongocryptd requests are sent to non-mongocryptd daemon&lt;/p&gt;

&lt;p&gt;(cherry picked from commit becc8e5ecca4260e844725fa71f4ed1164647e4a)&lt;br/&gt;
Branch: v4.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/77154fe6e600510d06d2e44015668aedfd8d2c97&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/77154fe6e600510d06d2e44015668aedfd8d2c97&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3185565" author="xgen-internal-githook" created="Tue, 2 Jun 2020 20:08:58 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Katherine Wu&apos;, &apos;email&apos;: &apos;katherine.wu@mongodb.com&apos;, &apos;username&apos;: &apos;kaywux&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-46625&quot; title=&quot;Improve diagnostics when mongocryptd requests are sent to non-mongocryptd daemon&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-46625&quot;&gt;&lt;del&gt;SERVER-46625&lt;/del&gt;&lt;/a&gt; Improve diagnostics when mongocryptd requests are sent to non-mongocryptd daemon&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/becc8e5ecca4260e844725fa71f4ed1164647e4a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/becc8e5ecca4260e844725fa71f4ed1164647e4a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3157487" author="xgen-internal-githook" created="Mon, 1 Jun 2020 21:32:21 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Katherine Wu&apos;, &apos;email&apos;: &apos;katherine.wu@mongodb.com&apos;, &apos;username&apos;: &apos;kaywux&apos;}
&lt;p&gt;Message: Revert &quot;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-46625&quot; title=&quot;Improve diagnostics when mongocryptd requests are sent to non-mongocryptd daemon&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-46625&quot;&gt;&lt;del&gt;SERVER-46625&lt;/del&gt;&lt;/a&gt; Improve diagnostics when mongocryptd requests are sent to non-mongocryptd daemon&quot;&lt;/p&gt;

&lt;p&gt;This reverts commit 60124ec2ef0acf2e6747d620779cc40c9376c9b6.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/d4db7598e6c5df02c2bd0778ee1a779f281cba0d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/d4db7598e6c5df02c2bd0778ee1a779f281cba0d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3151267" author="xgen-internal-githook" created="Mon, 1 Jun 2020 18:22:54 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Katherine Wu&apos;, &apos;email&apos;: &apos;katherine.wu@mongodb.com&apos;, &apos;username&apos;: &apos;kaywux&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-46625&quot; title=&quot;Improve diagnostics when mongocryptd requests are sent to non-mongocryptd daemon&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-46625&quot;&gt;&lt;del&gt;SERVER-46625&lt;/del&gt;&lt;/a&gt; Improve diagnostics when mongocryptd requests are sent to non-mongocryptd daemon&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/60124ec2ef0acf2e6747d620779cc40c9376c9b6&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/60124ec2ef0acf2e6747d620779cc40c9376c9b6&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2992212" author="david.storch" created="Mon, 23 Mar 2020 16:10:51 +0000"  >&lt;p&gt;Sending to the QO team for triage.&lt;/p&gt;</comment>
                            <comment id="2990860" author="mark.benvenuto" created="Fri, 20 Mar 2020 21:34:15 +0000"  >&lt;p&gt;Assigning to query team to investigate since this error is coming when a user does an insert. While the IDL parser is the one throwing this error, we could build a special case into IDL for this field in this case.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="1369717">PYTHON-2270</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1480101">SERVER-51044</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>7.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>5.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="18953"><![CDATA[v4.4]]></customfieldvalue>
    <customfieldvalue key="16775"><![CDATA[v4.2]]></customfieldvalue>
    
                        </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>Fri, 20 Mar 2020 21:34:15 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        3 years, 19 weeks 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>
                            3 years, 19 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>david.storch@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>katherine.wu@mongodb.com</customfieldvalue>
            <customfieldvalue>mark.benvenuto@mongodb.com</customfieldvalue>
            <customfieldvalue>oleg.pudeyev@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hx0r1r:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr5oe7:</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="3498">Query 2020-04-20</customfieldvalue>
    <customfieldvalue id="3499">Query 2020-05-04</customfieldvalue>
    <customfieldvalue id="3500">Query 2020-05-18</customfieldvalue>
    <customfieldvalue id="3501">Query 2020-06-01</customfieldvalue>
    <customfieldvalue id="3607">Query 2020-06-15</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|hx0db3:</customfieldvalue>

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