<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:35:29 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-1017] Find method doesn&apos;t defer a session close.</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-1017</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;Implicit session is not defer closed in the Find method:&lt;/p&gt;

&lt;p&gt;Find.go&#160;&lt;/p&gt;

&lt;p&gt;line 66&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;defer cmd.Session.EndSession()&lt;/p&gt;

&lt;p&gt;There are various return points within the method.&#160; Will not return the session,&lt;/p&gt;

&lt;p&gt;There is a explicitly coded close at the end.&lt;/p&gt;

&lt;p&gt;if err != nil &lt;/p&gt;
{
 closeImplicitSession(cmd.Session)
 return nil, err
}

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="757471">GODRIVER-1017</key>
            <summary>Find method doesn&apos;t defer a session close.</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="2">Won&apos;t Fix</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="samlotti">Sam Lotti</reporter>
                        <labels>
                    </labels>
                <created>Fri, 3 May 2019 12:11:12 +0000</created>
                <updated>Tue, 7 May 2019 21:30:34 +0000</updated>
                            <resolved>Tue, 7 May 2019 21:30:34 +0000</resolved>
                                    <version>1.0.1</version>
                                                    <component>Error Handling</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="2237877" author="divjot.arora" created="Tue, 7 May 2019 21:30:28 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=samlotti&quot; class=&quot;user-hover&quot; rel=&quot;samlotti&quot;&gt;samlotti&lt;/a&gt; We should be closing implicit sessions in the case of an error when appending the options (explicit sessions are kept open because the cursor uses them). However, we&apos;re in the process of removing all of the code in the driverlegacy package as part of &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-617&quot; title=&quot;Improved Driver Library&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-617&quot;&gt;&lt;del&gt;GODRIVER-617&lt;/del&gt;&lt;/a&gt; so we will not be fixing this in driverleagcy and will instead incorporate this into the new driver package.&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|hun587:</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>