<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:11: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>[CDRIVER-1234] Inconsistent error reporting when advancing completed OP_QUERY and command cursor</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-1234</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;While revising older PHPC tests to account for proper behavior noted in &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-1221&quot; title=&quot;mongoc_cursor_is_alive() returns false for live cursor from find command&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-1221&quot;&gt;&lt;del&gt;CDRIVER-1221&lt;/del&gt;&lt;/a&gt;, I realized another inconsistency between legacy and command cursor iteration.&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;_mongoc_cursor_next()&lt;/tt&gt; and &lt;tt&gt;_mongoc_cursor_cursorid_next()&lt;/tt&gt; are used for OP_QUERY and command cursor iteration, respectively. Both return true or false depending on whether a BSON document has been read (i.e. &lt;tt&gt;*bson&lt;/tt&gt; is checked), although they differ in how &lt;tt&gt;cursor-&amp;gt;done&lt;/tt&gt; is calculated.&lt;/p&gt;

&lt;p&gt;An superfluous call to &lt;tt&gt;_mongoc_cursor_next()&lt;/tt&gt; results in a cursor error being set (&quot;Cannot advance a completed or failed cursor.&quot;); however, a superfluous call to &lt;tt&gt;_mongoc_cursor_cursorid_next()&lt;/tt&gt; raise no such error. In PHPC, this means that extra iteration on a complete cursor may or may not throw an exception, depending on the underlying protocol.&lt;/p&gt;

&lt;p&gt;Is it feasible to make these two methods consistent, either by having &lt;tt&gt;_mongoc_cursor_cursorid_next()&lt;/tt&gt; set an error or removing the exception error from &lt;tt&gt;_mongoc_cursor_next()&lt;/tt&gt;?&lt;/p&gt;</description>
                <environment></environment>
        <key id="287342">CDRIVER-1234</key>
            <summary>Inconsistent error reporting when advancing completed OP_QUERY and command cursor</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="9">Done</resolution>
                                        <assignee username="jesse@mongodb.com">A. Jesse Jiryu Davis</assignee>
                                    <reporter username="jmikola@mongodb.com">Jeremy Mikola</reporter>
                        <labels>
                    </labels>
                <created>Tue, 17 May 2016 19:04:43 +0000</created>
                <updated>Wed, 10 Aug 2016 22:10:47 +0000</updated>
                            <resolved>Tue, 24 May 2016 13:24:04 +0000</resolved>
                                    <version>1.4.0</version>
                                    <fixVersion>1.4.0</fixVersion>
                                    <component>libmongoc</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1285006" author="xgen-internal-githook" created="Mon, 6 Jun 2016 14:30:04 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;jmikola&apos;, u&apos;name&apos;: u&apos;Jeremy Mikola&apos;, u&apos;email&apos;: u&apos;jmikola@gmail.com&apos;}
&lt;p&gt;Message: Test cursor iteration beyond last document for &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-1234&quot; title=&quot;Inconsistent error reporting when advancing completed OP_QUERY and command cursor&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-1234&quot;&gt;&lt;del&gt;CDRIVER-1234&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-php-driver/commit/ee751dc027c485d79aefed5d6f37aaed96c6f9bb&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-php-driver/commit/ee751dc027c485d79aefed5d6f37aaed96c6f9bb&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1273313" author="xgen-internal-githook" created="Tue, 24 May 2016 13:23:57 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ajdavis&apos;, u&apos;name&apos;: u&apos;A. Jesse Jiryu Davis&apos;, u&apos;email&apos;: u&apos;jesse@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-1234&quot; title=&quot;Inconsistent error reporting when advancing completed OP_QUERY and command cursor&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-1234&quot;&gt;&lt;del&gt;CDRIVER-1234&lt;/del&gt;&lt;/a&gt; always an err to iterate done cursor&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/c03fde8afdae869a982bd9f0120ebf3cee302fc5&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/c03fde8afdae869a982bd9f0120ebf3cee302fc5&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1266815" author="jmikola@gmail.com" created="Tue, 17 May 2016 19:56:43 +0000"  >&lt;p&gt;Current PHPC tests: &lt;a href=&quot;https://github.com/mongodb/mongo-php-driver/pull/327&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-php-driver/pull/327&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="279810">PHPC-673</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="284823">CDRIVER-1221</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|hslj6v:</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>