<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:37:16 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-1849] ErrWaitQueueTimeout should wrap context error</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-1849</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;When a request to acquire a semaphore in a connection pool returns an error, we return ErrWaitQueueTimeout &lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/blob/751a919b969ca11cee98f3ac49b8eac0408167eb/x/mongo/driver/topology/pool.go#L346&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt;. However, this would only happen if the context has timed out or been cancelled, so the final user-facing error should wrap ctx.Err(). This would allow the user to do errors.Is(err, context.DeadlineExceeded) and also allow our mongo.IsTimeout() function to detect this case.&lt;/p&gt;

&lt;p&gt;We can&apos;t do this while also keeping the sentinel ErrWaitQueueTimeout value, but this is private API and users are likely not checking for it directly, so I propose we remove that error and instead introduce a new error type that wraps ctx.Err(), has an Unwrap method, and keeps the same message as ErrWaitQueueTimeout in case users are checking for substrings.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1598022">GODRIVER-1849</key>
            <summary>ErrWaitQueueTimeout should wrap context error</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="benji.rewis@mongodb.com">Benji Rewis</assignee>
                                    <reporter username="divjot.arora@mongodb.com">Divjot Arora</reporter>
                        <labels>
                    </labels>
                <created>Fri, 22 Jan 2021 20:19:32 +0000</created>
                <updated>Sat, 28 Oct 2023 11:37:56 +0000</updated>
                            <resolved>Mon, 1 Feb 2021 19:52:09 +0000</resolved>
                                                    <fixVersion>1.4.6</fixVersion>
                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="3610932" author="kevin.albertson" created="Thu, 11 Feb 2021 04:17:05 +0000"  >&lt;p&gt;Cherry-picked onto release/1.5 with &lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/commit/64d19e6d0fa964062883fa01441237c38ad7bf32&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/commit/64d19e6d0fa964062883fa01441237c38ad7bf32&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3593365" author="xgen-internal-githook" created="Mon, 1 Feb 2021 20:00:01 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Benjamin Rewis&apos;, &apos;email&apos;: &apos;benji.rewis@mongodb.com&apos;, &apos;username&apos;: &apos;benjirewis&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-1849&quot; title=&quot;ErrWaitQueueTimeout should wrap context error&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-1849&quot;&gt;&lt;del&gt;GODRIVER-1849&lt;/del&gt;&lt;/a&gt; Add new WaitQueueTimeoutError to wrap context error (#568)&lt;br/&gt;
Branch: release/1.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/commit/b04775266e304c96a13399e89129edbb15e8edb6&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/commit/b04775266e304c96a13399e89129edbb15e8edb6&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3593329" author="xgen-internal-githook" created="Mon, 1 Feb 2021 19:51:35 +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-1849&quot; title=&quot;ErrWaitQueueTimeout should wrap context error&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-1849&quot;&gt;&lt;del&gt;GODRIVER-1849&lt;/del&gt;&lt;/a&gt; Add new WaitQueueTimeoutError to wrap context error (#568)&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/commit/54681e1af6f3c0ea4761ae8a998034bcbd4e7a43&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/commit/54681e1af6f3c0ea4761ae8a998034bcbd4e7a43&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3587379" author="benji.rewis" created="Thu, 28 Jan 2021 16:03:24 +0000"  >&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/pull/568&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/pull/568&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_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hycjen:</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>