<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:36:38 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-1547] BatchCursor panic on clearBatch and Close</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-1547</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;Trace in dev comment&lt;/p&gt;

&lt;p&gt;First panic is in &lt;tt&gt;(*BatchCursor).clearBatch(...) (inlined)&lt;/tt&gt;&lt;br/&gt;
Second is after we panic there and in a defer try to close the cursor &lt;tt&gt;(*BatchCursor).Close&lt;/tt&gt; at &lt;tt&gt;bc.currentBatch.Data = nil&lt;/tt&gt;&lt;br/&gt;
Seems like &lt;tt&gt;currentBatch&lt;/tt&gt; somehow became nil and panicked twice accessing it&lt;/p&gt;

&lt;p&gt;I&apos;m thinking there&apos;s some condition where &lt;tt&gt;(cs *ChangeStream) executeOperation(&lt;/tt&gt; calls &lt;tt&gt;NewBatchCursor&lt;/tt&gt; but there&apos;s no error which puts it in a bad state for the next &lt;tt&gt;Next/TryNext&lt;/tt&gt;.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1292936">GODRIVER-1547</key>
            <summary>BatchCursor panic on clearBatch and 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="13203">Gone away</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="eric.daniels@mongodb.com">Eric Daniels</reporter>
                        <labels>
                    </labels>
                <created>Thu, 26 Mar 2020 20:39:30 +0000</created>
                <updated>Fri, 27 Oct 2023 20:01:20 +0000</updated>
                            <resolved>Mon, 23 May 2022 19:46:27 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                    <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </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_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i0dz80:</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>