<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:38:17 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-2305] Empty readPreferenceTags Connection Failure</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-2305</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;h4&gt;&lt;a name=&quot;Summary&quot;&gt;&lt;/a&gt;Summary&lt;/h4&gt;

&lt;p&gt;&lt;em&gt;Per docs (&lt;a href=&quot;https://docs.mongodb.com/manual/core/read-preference-tags&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://docs.mongodb.com/manual/core/read-preference-tags&lt;/a&gt;), an empty tag can be used as a &quot;fail-safe&quot; mechanism&#160; to connect to any node regardless of tag:&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&quot;To avoid an error if no members match any of the tag specifications, you can add an empty document&#160;{{{ }}}&#160;as the last element of the tag set to read from any eligible member.&quot;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;However, when using &quot;readPreferenceTag=&quot; as the last tag set in the connection URI the driver fails to send an empty document in the tag array.&#160; I found a commit (&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/commit/bfd961abf162856d6dc7c6d97ec627c18e1ceed0)&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/commit/bfd961abf162856d6dc7c6d97ec627c18e1ceed0)&lt;/a&gt;&#160;that seems to simply break instead of treating as an empty document.&lt;/em&gt;&lt;/p&gt;
&lt;h4&gt;&lt;a name=&quot;HowtoReproduce&quot;&gt;&lt;/a&gt;How to Reproduce&lt;/h4&gt;
&lt;ol&gt;
	&lt;li&gt;&lt;em&gt;Standup replica set and provide any tag (ex: {dc: dev} )&lt;/em&gt;&lt;/li&gt;
	&lt;li&gt;&lt;em&gt;Try to connect with URI containing mismatched tag, but with empty tag as a &quot;fail-safe&quot; (ex: ?readPreferenceTag=dc:prod&amp;amp;readPreferenceTag=)&lt;/em&gt;&lt;/li&gt;
	&lt;li&gt;&lt;em&gt;Connection will fail&lt;/em&gt;&lt;/li&gt;
&lt;/ol&gt;
</description>
                <environment></environment>
        <key id="1981644">GODRIVER-2305</key>
            <summary>Empty readPreferenceTags Connection Failure</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="benji.rewis@mongodb.com">Benji Rewis</assignee>
                                    <reporter username="john08burke">John Burke</reporter>
                        <labels>
                    </labels>
                <created>Thu, 10 Feb 2022 22:38:18 +0000</created>
                <updated>Sat, 28 Oct 2023 11:37:39 +0000</updated>
                            <resolved>Thu, 17 Feb 2022 15:39:52 +0000</resolved>
                                                    <fixVersion>1.8.4</fixVersion>
                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="4361604" author="xgen-internal-githook" created="Thu, 17 Feb 2022 15:49:19 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Benjamin Rewis&apos;, &apos;email&apos;: &apos;32186188+benjirewis@users.noreply.github.com&apos;, &apos;username&apos;: &apos;benjirewis&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-2305&quot; title=&quot;Empty readPreferenceTags Connection Failure&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-2305&quot;&gt;&lt;del&gt;GODRIVER-2305&lt;/del&gt;&lt;/a&gt; Correctly append empty tagset from URI (#853)&lt;br/&gt;
Branch: release/1.8&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/commit/c5019a7c61ef0020205500c140de3d19e5ae3607&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/commit/c5019a7c61ef0020205500c140de3d19e5ae3607&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4361566" author="benji.rewis" created="Thu, 17 Feb 2022 15:39:52 +0000"  >&lt;p&gt;This fix should be available in the next patch release of the Go driver, &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=john08burke&quot; class=&quot;user-hover&quot; rel=&quot;john08burke&quot;&gt;john08burke&lt;/a&gt;&#160;(1.8.4).&lt;/p&gt;</comment>
                            <comment id="4361563" author="xgen-internal-githook" created="Thu, 17 Feb 2022 15:39:23 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Benjamin Rewis&apos;, &apos;email&apos;: &apos;32186188+benjirewis@users.noreply.github.com&apos;, &apos;username&apos;: &apos;benjirewis&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-2305&quot; title=&quot;Empty readPreferenceTags Connection Failure&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-2305&quot;&gt;&lt;del&gt;GODRIVER-2305&lt;/del&gt;&lt;/a&gt; Correctly append empty tagset from URI (#853)&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/commit/ee152313663401cd53369440bf015b27e375fd5e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/commit/ee152313663401cd53369440bf015b27e375fd5e&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4359720" author="john08burke" created="Wed, 16 Feb 2022 19:34:38 +0000"  >&lt;p&gt;Great, thanks for the quick fix!&lt;/p&gt;</comment>
                            <comment id="4359704" author="benji.rewis" created="Wed, 16 Feb 2022 19:27:53 +0000"  >&lt;p&gt;Thanks again for your report,&#160;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=john08burke&quot; class=&quot;user-hover&quot; rel=&quot;john08burke&quot;&gt;john08burke&lt;/a&gt;. Looks like this is a bug introduced by a previous &quot;fix&quot; &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-1078&quot; title=&quot;Allow specifying empty value for connection URI readPreferenceTags option&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-1078&quot;&gt;&lt;del&gt;GODRIVER-1078&lt;/del&gt;&lt;/a&gt;. We should indeed be treating &lt;tt&gt;readPreferenceTags=&lt;/tt&gt; as a wild-card for server selection when provided in the URI. Here&apos;s a fix:&#160;&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/pull/853&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/pull/853&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4359518" author="benji.rewis" created="Wed, 16 Feb 2022 18:28:04 +0000"  >&lt;p&gt;Thanks for your bug report, &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=john08burke&quot; class=&quot;user-hover&quot; rel=&quot;john08burke&quot;&gt;john08burke&lt;/a&gt;! We&apos;re taking a look now.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="1908532">GODRIVER-2205</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </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_10257" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Documentation Changes</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="11861"><![CDATA[Not Needed]]></customfieldvalue>

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