<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:36: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-1292] ListCollectionNames does not appear to close the cursor it creates</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-1292</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;I might be missing something but it seems that res.Close(context.Background()) should be called within&#160;ListCollectionNames.&#160; &#160;The cursor is not returned to the caller in this case so I think it should be closed internally.&#160;&lt;/p&gt;

&lt;p&gt;If this function does need a cursor Close() call then special attention would need to be made to ensure the cursor is closed if an error is encountered while iterating the results.&#160; Currently, an error while iterating the results causes the function to immediately return the error.&#160;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="915070">GODRIVER-1292</key>
            <summary>ListCollectionNames does not appear to close the cursor it creates</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="alice.thum@mongodb.com">Alice Thum</assignee>
                                    <reporter username="ryan.m.wynn@gmail.com">Ryan Wynn</reporter>
                        <labels>
                    </labels>
                <created>Mon, 2 Sep 2019 20:24:27 +0000</created>
                <updated>Sat, 28 Oct 2023 11:38:35 +0000</updated>
                            <resolved>Wed, 2 Oct 2019 13:23:51 +0000</resolved>
                                    <version>1.1.0</version>
                                    <fixVersion>1.1.2</fixVersion>
                                    <component>CRUD</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="2448370" author="xgen-internal-githook" created="Wed, 2 Oct 2019 19:43:41 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Alice Thum&apos;, &apos;username&apos;: &apos;athum&apos;, &apos;email&apos;: &apos;ayhthum@gmail.com&apos;}
&lt;p&gt;Message: Close cursor in Database.ListCollectionNames.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-1292&quot; title=&quot;ListCollectionNames does not appear to close the cursor it creates&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-1292&quot;&gt;&lt;del&gt;GODRIVER-1292&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Change-Id: I02c8765de132c1e8a8267c473a24fb9784d3e8fd&lt;br/&gt;
Branch: release/1.1&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/commit/51b003868e5751abc69c8b7e874ac92b3271f358&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/commit/51b003868e5751abc69c8b7e874ac92b3271f358&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2447078" author="xgen-internal-githook" created="Wed, 2 Oct 2019 13:23:15 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Alice Thum&apos;, &apos;username&apos;: &apos;athum&apos;, &apos;email&apos;: &apos;ayhthum@gmail.com&apos;}
&lt;p&gt;Message: Close cursor in Database.ListCollectionNames.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-1292&quot; title=&quot;ListCollectionNames does not appear to close the cursor it creates&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-1292&quot;&gt;&lt;del&gt;GODRIVER-1292&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Change-Id: I02c8765de132c1e8a8267c473a24fb9784d3e8fd&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/commit/1def6e6cc7f1473f17383a81316641234913f0a5&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/commit/1def6e6cc7f1473f17383a81316641234913f0a5&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2447077" author="xgen-internal-githook" created="Wed, 2 Oct 2019 13:22:39 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;athum&apos;, &apos;email&apos;: &apos;ayhthum@gmail.com&apos;, &apos;name&apos;: &apos;Alice Thum&apos;}
&lt;p&gt;Message: Close cursor in Database.ListCollectionNames.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-1292&quot; title=&quot;ListCollectionNames does not appear to close the cursor it creates&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-1292&quot;&gt;&lt;del&gt;GODRIVER-1292&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Change-Id: I02c8765de132c1e8a8267c473a24fb9784d3e8fd&lt;br/&gt;
Branch: &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-1292&quot; title=&quot;ListCollectionNames does not appear to close the cursor it creates&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-1292&quot;&gt;&lt;del&gt;GODRIVER-1292&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/commit/e9f12a4efb775d2bd54d86caff5ce2fa656503f3&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/commit/e9f12a4efb775d2bd54d86caff5ce2fa656503f3&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2443580" author="alice.thum" created="Tue, 1 Oct 2019 18:20:20 +0000"  >&lt;p&gt;CR:&#160;&lt;a href=&quot;https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/470059&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/470059&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2404856" author="ryan.m.wynn@gmail.com" created="Mon, 2 Sep 2019 20:32:23 +0000"  >&lt;p&gt;Actually, there is already a context, ctx, passed into the function, so maybe it should be closed as res.Close(ctx).&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <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|hvcyuv:</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>