<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:34:19 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-490] Cursor.Next should call getMore in a loop until a document is available</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-490</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;Fix how tailable cursors work. For context: &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-125&quot; title=&quot;Cursor iteration should complete (abnormally) when another goroutine closes the cursor&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-125&quot;&gt;&lt;del&gt;GODRIVER-125&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;In particular, Cursor.Next should return false iff &lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;an error occurred&lt;/li&gt;
	&lt;li&gt;the cursorId in the response is 0 and there are no documents left in the current batch of results&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Otherwise, it should call the getMore command in a loop until at least one document is returned in the next batch.&lt;/p&gt;

&lt;p&gt;Note: this should be done for all cursors, not just tailable.  There&apos;s nothing in the wire protocol contract that says the server can&apos;t return an empty batch with a non-zero cursorId.&lt;/p&gt;

&lt;p&gt;Also, consider that the initiating command (e.g. find, aggregate) can return an empty first batch.&lt;/p&gt;</description>
                <environment></environment>
        <key id="571304">GODRIVER-490</key>
            <summary>Cursor.Next should call getMore in a loop until a document is available</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="matthew.chiaravalloti@mongodb.com">Matthew Chiaravalloti</assignee>
                                    <reporter username="kris.brandow@mongodb.com">Kristofer Brandow</reporter>
                        <labels>
                            <label>newgrad</label>
                    </labels>
                <created>Fri, 13 Jul 2018 15:12:52 +0000</created>
                <updated>Sat, 28 Oct 2023 11:39:31 +0000</updated>
                            <resolved>Thu, 13 Sep 2018 19:52:17 +0000</resolved>
                                    <version>0.0.9</version>
                                    <fixVersion>0.0.14</fixVersion>
                                    <component>CRUD</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="2002371" author="xgen-internal-githook" created="Thu, 13 Sep 2018 19:52:10 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Matthew Chiaravalloti&apos;, &apos;email&apos;: &apos;matthew.chiaravalloti@mongodb.com&apos;, &apos;username&apos;: &apos;mattChiaravalloti&apos;}
&lt;p&gt;Message: Update Cursor.Next to call getMore in a loop&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-490&quot; title=&quot;Cursor.Next should call getMore in a loop until a document is available&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-490&quot;&gt;&lt;del&gt;GODRIVER-490&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Change-Id: Id6538bb914a7538781c8270d323efd572033ca3f&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/commit/fdda31272cfc5fe2d9cf5d49e4f46d215daf5268&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/commit/fdda31272cfc5fe2d9cf5d49e4f46d215daf5268&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="457279">GODRIVER-125</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="550884">GODRIVER-437</issuekey>
        </issuelink>
                            </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|httb5z:</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>