<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:34:58 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-791] Panic on cursor Close with a dead server</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-791</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;Received the following panic when doing some negative testing.&#160; This seems to have occurred when Close() was called on a cursor after Next() returned false.&#160;&lt;/p&gt;

&lt;p&gt;I started a long running query with MongoDB running and brought mongod down in the middle of it returning results.&#160; &#160;So mongod was down at the time of the Close call.&#160;&#160;&lt;/p&gt;

&lt;p&gt;panic: runtime error: invalid memory address or nil pointer dereference &lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;signal SIGSEGV: segmentation violation code=0x1 addr=0x4 pc=0x743edc&amp;#93;&lt;/span&gt; &lt;br/&gt;
goroutine 59 &lt;span class=&quot;error&quot;&gt;&amp;#91;running&amp;#93;&lt;/span&gt;:&lt;br/&gt;
 github.com/mongodb/mongo-go-driver/x/mongo/driver/topology.(*cursor).legacy(...)&lt;br/&gt;
 /home/vagrant/go/pkg/mod/github.com/mongodb/mongo-go-driver@v0.2.0/x/mongo/driver/topology/cursor.go:142&lt;br/&gt;
github.com/mongodb/mongo-go-driver/x/mongo/driver/topology.(*cursor).Close(0xc00007ab40, 0x9ab240, 0xc0000140b0, 0x0, 0x0)&lt;br/&gt;
 /home/vagrant/go/pkg/mod/github.com/mongodb/mongo-go-driver@v0.2.0/x/mongo/driver/topology/cursor.go:207 +0x16c&lt;/p&gt;</description>
                <environment>Linux</environment>
        <key id="679733">GODRIVER-791</key>
            <summary>Panic on cursor Close with a dead server</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="kris.brandow@mongodb.com">Kristofer Brandow</assignee>
                                    <reporter username="ryan.m.wynn@gmail.com">Ryan Wynn</reporter>
                        <labels>
                    </labels>
                <created>Tue, 29 Jan 2019 18:16:57 +0000</created>
                <updated>Sat, 28 Oct 2023 11:39:09 +0000</updated>
                            <resolved>Fri, 1 Feb 2019 17:00:41 +0000</resolved>
                                    <version>0.0.2</version>
                                    <fixVersion>0.3.0</fixVersion>
                                    <component>Error Handling</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="2134947" author="xgen-internal-githook" created="Fri, 1 Feb 2019 16:33:14 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Kris Brandow&apos;, &apos;email&apos;: &apos;kris@mongodb.com&apos;, &apos;username&apos;: &apos;skriptble&apos;}
&lt;p&gt;Message: Fix cursor types and implement BatchCursor&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-3&quot; title=&quot;Change driver.Cursor to be a batch cursor&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-3&quot;&gt;&lt;del&gt;GODRIVER-3&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-759&quot; title=&quot;Make Cursor a struct and make changeStream public&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-759&quot;&gt;&lt;del&gt;GODRIVER-759&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-791&quot; title=&quot;Panic on cursor Close with a dead server&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-791&quot;&gt;&lt;del&gt;GODRIVER-791&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Change-Id: I7d4121e7fffcfadd7427a6fc64d97d4c131acbbe&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/commit/d23c3a5ccaad4abaa2056f0ba9d174f0b06ccddf&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/commit/d23c3a5ccaad4abaa2056f0ba9d174f0b06ccddf&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2131027" author="ryan.m.wynn@gmail.com" created="Tue, 29 Jan 2019 19:28:13 +0000"  >&lt;p&gt;Also, when the heartbeat fails to get server info, it still returns server info that is truncated to the basics.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/blob/master/x/mongo/driver/topology/server.go#L437&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/blob/master/x/mongo/driver/topology/server.go#L437&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;But I think that will cause problems because that basic info doesn&apos;t include a bunch of things like the wire version...&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/blob/master/x/network/description/server.go#L30&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/blob/master/x/network/description/server.go#L30&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="2131009" author="ryan.m.wynn@gmail.com" created="Tue, 29 Jan 2019 19:19:11 +0000"  >&lt;p&gt;I think maybe the description updates should all be guarded by nil checks&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/blob/master/x/mongo/driver/topology/server.go#L333&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/blob/master/x/mongo/driver/topology/server.go#L333&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Some of the updateDescription calls in this file check for nil before setting, but others do not.&#160;&#160;&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|huafhb:</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>