<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:34:05 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-378] Unconnected Client should return a mongo level error, not topology level error</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-378</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;Currently when a user attempts to use a newly instantiated &lt;tt&gt;Client&lt;/tt&gt;, they currently receive &lt;tt&gt;topology.ErrTopologyClosed&lt;/tt&gt; error. This is confusing for users of the high level API since they don&apos;t have in-depth knowledge of a topology. We can solve this in one of two ways:&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;Check for ErrTopologyClosed and transform it into a ErrClientDisconnected error&lt;/li&gt;
	&lt;li&gt;&lt;del&gt;Add a connection state to &lt;tt&gt;Client&lt;/tt&gt; and check if the &lt;tt&gt;Client&lt;/tt&gt; is connected before performing an operation.&lt;/del&gt;&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;&lt;del&gt;While the second option provides a faster path to failure and is less invasive, it introduces a race condition, where users that call Disconnect might still see a &lt;tt&gt;topology.ErrTopologyClosed&lt;/tt&gt; error. Eventually, we&apos;ll need to wrap most of the core API packages&apos; errors, so starting with &lt;tt&gt;ErrTopologyClosed&lt;/tt&gt; seems like a sensible thing to do.&lt;/del&gt;&lt;/p&gt;

&lt;p&gt;A general error handling function can be created in the mongo package or attached to the &lt;tt&gt;*mongo.Collection&lt;/tt&gt; type to handle the transformation.&lt;/p&gt;</description>
                <environment></environment>
        <key id="532592">GODRIVER-378</key>
            <summary>Unconnected Client should return a mongo level error, not topology level error</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="isabella.siu@mongodb.com">Isabella Siu</assignee>
                                    <reporter username="kris.brandow@mongodb.com">Kristofer Brandow</reporter>
                        <labels>
                            <label>neweng</label>
                            <label>newgrad</label>
                    </labels>
                <created>Mon, 23 Apr 2018 16:09:20 +0000</created>
                <updated>Sat, 28 Oct 2023 11:39:38 +0000</updated>
                            <resolved>Thu, 15 Nov 2018 19:17:07 +0000</resolved>
                                                    <fixVersion>0.0.18</fixVersion>
                                    <component>Error Handling</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="2063586" author="xgen-internal-githook" created="Thu, 15 Nov 2018 19:15:54 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Isabella Siu&apos;, &apos;email&apos;: &apos;isabella.siu@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-378&quot; title=&quot;Unconnected Client should return a mongo level error, not topology level error&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-378&quot;&gt;&lt;del&gt;GODRIVER-378&lt;/del&gt;&lt;/a&gt; Unconnected Client returns mongo.ErrClientDisconnected&lt;/p&gt;

&lt;p&gt;Change-Id: I7391f8f56521b09cec4203082ce57c44d49b87fb&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/commit/e2d5932c4128d954de6d6ed202b120b5f7069989&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/commit/e2d5932c4128d954de6d6ed202b120b5f7069989&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>GODRIVER-114</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr9mwv:</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>