<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:38:15 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>[GODRIVER-2292] Update load balancer tests to support dedicated load balancer port</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-2292</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;This ticket was split from &lt;tt&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/DRIVERS-1983&quot; title=&quot;Update load balancer tests to support dedicated load balancer port&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DRIVERS-1983&quot;&gt;DRIVERS-1983&lt;/a&gt;&lt;/tt&gt;, please see that ticket for a detailed description. &lt;/p&gt;</description>
                <environment></environment>
        <key id="1974587">GODRIVER-2292</key>
            <summary>Update load balancer tests to support dedicated load balancer port</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="9">Done</resolution>
                                        <assignee username="matt.dale@mongodb.com">Matt Dale</assignee>
                                    <reporter username="dbeng-pm-bot">PM Bot</reporter>
                        <labels>
                            <label>greenerbuild</label>
                    </labels>
                <created>Mon, 31 Jan 2022 23:19:52 +0000</created>
                <updated>Wed, 13 Apr 2022 01:03:31 +0000</updated>
                            <resolved>Thu, 17 Feb 2022 23:51:45 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="4384318" author="xgen-internal-githook" created="Tue, 1 Mar 2022 18:51:41 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Matt Dale&apos;, &apos;email&apos;: &apos;9760375+matthewdale@users.noreply.github.com&apos;, &apos;username&apos;: &apos;matthewdale&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-2292&quot; title=&quot;Update load balancer tests to support dedicated load balancer port&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-2292&quot;&gt;&lt;del&gt;GODRIVER-2292&lt;/del&gt;&lt;/a&gt; Support dedicated load balancer port in tests. (#852)&lt;br/&gt;
Branch: cloud-1.7.1&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/commit/e4487b407af5980c5f49cd288b3bb70d060b21d6&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/commit/e4487b407af5980c5f49cd288b3bb70d060b21d6&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4384196" author="xgen-internal-githook" created="Tue, 1 Mar 2022 18:24:55 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Matt Dale&apos;, &apos;email&apos;: &apos;9760375+matthewdale@users.noreply.github.com&apos;, &apos;username&apos;: &apos;matthewdale&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-2292&quot; title=&quot;Update load balancer tests to support dedicated load balancer port&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-2292&quot;&gt;&lt;del&gt;GODRIVER-2292&lt;/del&gt;&lt;/a&gt; Support dedicated load balancer port in tests. (#852)&lt;br/&gt;
Branch: release/1.8&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/commit/744f96b9409e226d66222a3fa65e1d04273fec5d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/commit/744f96b9409e226d66222a3fa65e1d04273fec5d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4363025" author="JIRAUSER1259527" created="Thu, 17 Feb 2022 23:50:28 +0000"  >&lt;p&gt;Fixing these tests actually required fixing:&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;The Go driver config and code: &lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/pull/852&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/pull/852&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;The mongo-orchestration scripts: &lt;a href=&quot;https://github.com/mongodb-labs/drivers-evergreen-tools/pull/186&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb-labs/drivers-evergreen-tools/pull/186&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;The DNS SRV records for the initial DNS seedlist spec tests (in-progress): &lt;a href=&quot;https://jira.mongodb.org/browse/BUILD-14668&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/BUILD-14668&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;The initial DNS seedlist spec tests (in-progress): &lt;a href=&quot;https://github.com/mongodb/specifications/pull/1148&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/specifications/pull/1148&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;The load balancer tests pass now (tests impacted by in-progress DNS/spec updates are currently skipped and will be fixed with &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-2312&quot; title=&quot;Unskip &amp;quot;initial-dns-seedlist-discovery&amp;quot; spec tests after load balancer SRV record update&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-2312&quot;&gt;&lt;del&gt;GODRIVER-2312&lt;/del&gt;&lt;/a&gt;), so I&apos;m calling this done.&lt;/p&gt;</comment>
                            <comment id="4362623" author="xgen-internal-githook" created="Thu, 17 Feb 2022 20:54:26 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Matt Dale&apos;, &apos;email&apos;: &apos;9760375+matthewdale@users.noreply.github.com&apos;, &apos;username&apos;: &apos;matthewdale&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-2292&quot; title=&quot;Update load balancer tests to support dedicated load balancer port&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-2292&quot;&gt;&lt;del&gt;GODRIVER-2292&lt;/del&gt;&lt;/a&gt; Support dedicated load balancer port in tests. (#852)&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/commit/a2556956b42eca51370000e1fd94f77a8a5de0c8&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/commit/a2556956b42eca51370000e1fd94f77a8a5de0c8&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4355123" author="JIRAUSER1259527" created="Tue, 15 Feb 2022 02:46:17 +0000"  >&lt;p&gt;The requirement&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Drivers must remove the use of service ID mocking (e.g. FAKE_MONGODB_SERVICE_ID) in their code.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;seems incompatible with the current setup of the &lt;tt&gt;initial-dns-seedlist-discovery&lt;/tt&gt; spec tests.&lt;/p&gt;

&lt;p&gt;The &lt;tt&gt;initial-dns-seedlist-discovery&lt;/tt&gt; spec tests currently require resolving a &lt;tt&gt;mongodb+srv://&lt;/tt&gt; scheme URI to a list of hostports, all of which point directly to a local &lt;em&gt;mongos&lt;/em&gt; instance (localhost:27017 or localhost:27018). However, to get the new behavior behavior where the server returns a &lt;tt&gt;serviceID&lt;/tt&gt;, the driver needs to connect to the HAProxy hostport (localhost:8000 or localhost:8001 if using &lt;tt&gt;run-load-balancer.sh&lt;/tt&gt; from &lt;tt&gt;drivers-evergreen-tools&lt;/tt&gt;). As a result, the &lt;tt&gt;initial-dns-seedlist-discovery&lt;/tt&gt; spec tests fail because the server doesn&apos;t return a &lt;tt&gt;seriviceID&lt;/tt&gt; in the &quot;hello&quot; response description, leading to driver errors because the server doesn&apos;t appear to be load-balanced but the driver is configured in load-balancer mode.&lt;/p&gt;

&lt;p&gt;Previously the Go driver &quot;mocked&quot; the service ID when running a test with &quot;?loadBalanced=true&quot; in the URI. Now that the &quot;mocking&quot; is removed, the tests fail because the server doesn&apos;t return a &lt;tt&gt;serviceID&lt;/tt&gt; in &quot;hello&quot; responses if you connect directly to the &lt;em&gt;mongos&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;Possible fixes:&lt;br/&gt;
1. Mock serviceID only for &lt;tt&gt;initial-dns-seedlist-discovery&lt;/tt&gt; tests.&lt;br/&gt;
2. Update &lt;tt&gt;run-load-balancer.sh&lt;/tt&gt; and &lt;tt&gt;run-orchestration.sh&lt;/tt&gt; configurations to make HAProxy listen on port 27017 or 27018 and &lt;em&gt;mongos&lt;/em&gt; listen on different ports.&lt;br/&gt;
3. Update the DNS entries that are used for the load-balanced &lt;tt&gt;initial-dns-seedlist-discovery&lt;/tt&gt; spec tests to return SRV records pointing to ports 8000,8001 instead of 27017,27018.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="1967872">GODRIVER-2276</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10620">
                    <name>Issue split</name>
                                                                <inwardlinks description="split from">
                                        <issuelink>
            <issuekey id="1922691">DRIVERS-1983</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="1993191">DRIVERS-2224</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1984425">GODRIVER-2312</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_21553" key="com.atlassian.jira.plugin.system.customfieldtypes:labels">
                        <customfieldname>Quarter</customfieldname>
                        <customfieldvalues>
                                        <label>FY23Q1</label>
    
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i01s0n:</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_11150" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>SERVER fixVersion</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="21983"><![CDATA[5.3 Required]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_22279" key="com.atlassian.jira.plugin.system.customfieldtypes:labels">
                        <customfieldname>Server Compat</customfieldname>
                        <customfieldvalues>
                                        <label>5.0</label>
            <label>5.2</label>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_21457" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Upstream Changes Summary</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/DRIVERS-1983&quot; title=&quot;Update load balancer tests to support dedicated load balancer port&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DRIVERS-1983&quot;&gt;DRIVERS-1983&lt;/a&gt;:&lt;br/&gt;
Implementation notes for drivers:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Drivers must update their load balancer test runs in Evergreen to run on &quot;latest&quot;, and then may choose to use 5.2.0 GA and higher for the runs when available.&lt;/li&gt;
	&lt;li&gt;Drivers must remove the use of&#160;service ID mocking (e.g. &lt;tt&gt;FAKE_MONGODB_SERVICE_ID&lt;/tt&gt;)&#160;in their code.&lt;/li&gt;
	&lt;li&gt;Drivers must set the&#160;&lt;tt&gt;LOAD_BALANCER&lt;/tt&gt;&#160;environment variable to &quot;true&quot; in their load balancer test runs and pass the environment variable when invoking &lt;tt&gt;run-orchestration.sh&lt;/tt&gt;.&lt;/li&gt;
	&lt;li&gt;Drivers may need to make changes to their test runners if they had direct connections to the mongos in their tests with the &quot;loadBalanced=true&quot; URI option set. (Such as utility clients - they must go through the load balancer now in these cases.)&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;See:&#160;&lt;a href=&quot;https://github.com/mongodb-labs/drivers-evergreen-tools/pull/183&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb-labs/drivers-evergreen-tools/pull/183&lt;/a&gt;&lt;br/&gt;
See:&#160;&lt;a href=&quot;https://github.com/mongodb/node-mongodb-native/pull/3089&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/node-mongodb-native/pull/3089&lt;/a&gt;&lt;/p&gt;</customfieldvalue>

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