<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:18: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-3770] Extra getMore is sent when a tailable cursor receives an empty initial batch</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-3770</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;Discovered in &lt;a href=&quot;https://jira.mongodb.org/browse/PHPC-1409&quot; title=&quot;Rewinding cursor should never invoke getMore&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PHPC-1409&quot;&gt;PHPC-1409&lt;/a&gt;. I was able to reproduce this behavior with a test program.&lt;/p&gt;

&lt;p&gt;1. Create a capped collection in the shell and insert a document. (Note, creating a tailable/awaitData to an empty capped collection appears to always return a closed &lt;tt&gt;id=0&lt;/tt&gt;&#160;cursor)&lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;db.createCollection(&quot;capped&quot;, {capped: true, size: 10000})&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;db.capped.insert({x:1})&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;
&lt;p&gt;2. Create a tailable/awaitData cursor in libmongoc with a filter matching nothing in the capped collection.&lt;br/&gt;
 3. Iterate once with &lt;tt&gt;mongoc_cursor_next&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;APM events show the extra getMore.&lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;2020/08/05 13:24:12.0356: [64909]:    DEBUG:       mongoc: begin: first call to mongoc_cursor_next&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;2020/08/05 13:24:12.0359: [64909]:    DEBUG:       mongoc: command_started: { &quot;find&quot; : &quot;capped&quot;, &quot;filter&quot; : { &quot;match_nothing&quot; : { &quot;$numberInt&quot; : &quot;1&quot; } }, &quot;tailable&quot; : true, &quot;awaitData&quot; : true, &quot;$db&quot; : &quot;test&quot;, &quot;$readPreference&quot; : { &quot;mode&quot; : &quot;primaryPreferred&quot; }, &quot;lsid&quot; : { &quot;id&quot; : { &quot;$binary&quot; : { &quot;base64&quot;: &quot;ha69vxrBQfqNXR6p70xcYA==&quot;, &quot;subType&quot; : &quot;04&quot; } } }, &quot;$clusterTime&quot; : { &quot;clusterTime&quot; : { &quot;$timestamp&quot; : { &quot;t&quot; : 1596648251, &quot;i&quot; : 1 } }, &quot;signature&quot; : { &quot;hash&quot; : { &quot;$binary&quot; : { &quot;base64&quot;: &quot;AAAAAAAAAAAAAAAAAAAAAAAAAAA=&quot;, &quot;subType&quot; : &quot;00&quot; } }, &quot;keyId&quot; : { &quot;$numberLong&quot; : &quot;0&quot;} } } }&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;2020/08/05 13:24:12.0360: [64909]:    DEBUG:       mongoc: command_succeeded: { &quot;cursor&quot; : { &quot;firstBatch&quot; : [  ], &quot;id&quot; : { &quot;$numberLong&quot; : &quot;171857474237404106&quot;}, &quot;ns&quot; : &quot;test.capped&quot; }, &quot;ok&quot; : { &quot;$numberDouble&quot; : &quot;1.0&quot; }, &quot;$clusterTime&quot; : { &quot;clusterTime&quot; : { &quot;$timestamp&quot; : { &quot;t&quot; : 1596648251, &quot;i&quot; : 1 } }, &quot;signature&quot; : { &quot;hash&quot; : { &quot;$binary&quot; : { &quot;base64&quot;: &quot;AAAAAAAAAAAAAAAAAAAAAAAAAAA=&quot;, &quot;subType&quot; : &quot;00&quot; } }, &quot;keyId&quot; : { &quot;$numberLong&quot; : &quot;0&quot;} } }, &quot;operationTime&quot; : { &quot;$timestamp&quot; : { &quot;t&quot; : 1596648251, &quot;i&quot; : 1 } } }&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;2020/08/05 13:24:12.0449: [64909]:    DEBUG:       mongoc: command_started: { &quot;getMore&quot; : { &quot;$numberLong&quot; : &quot;171857474237404106&quot;}, &quot;collection&quot; : &quot;capped&quot;, &quot;$db&quot; : &quot;test&quot;, &quot;$readPreference&quot; : { &quot;mode&quot; : &quot;primaryPreferred&quot; }, &quot;lsid&quot; : { &quot;id&quot; : { &quot;$binary&quot; : { &quot;base64&quot;: &quot;ha69vxrBQfqNXR6p70xcYA==&quot;, &quot;subType&quot; : &quot;04&quot; } } }, &quot;$clusterTime&quot; : { &quot;clusterTime&quot; : { &quot;$timestamp&quot; : { &quot;t&quot; : 1596648251, &quot;i&quot; : 1 } }, &quot;signature&quot; : { &quot;hash&quot; : { &quot;$binary&quot; : { &quot;base64&quot;: &quot;AAAAAAAAAAAAAAAAAAAAAAAAAAA=&quot;, &quot;subType&quot; : &quot;00&quot; } }, &quot;keyId&quot; : { &quot;$numberLong&quot; : &quot;0&quot;} } } }&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;2020/08/05 13:24:13.0454: [64909]:    DEBUG:       mongoc: command_succeeded: { &quot;cursor&quot; : { &quot;nextBatch&quot; : [  ], &quot;id&quot; : { &quot;$numberLong&quot; : &quot;171857474237404106&quot;}, &quot;ns&quot; : &quot;test.capped&quot; }, &quot;ok&quot; : { &quot;$numberDouble&quot; : &quot;1.0&quot; }, &quot;$clusterTime&quot; : { &quot;clusterTime&quot; : { &quot;$timestamp&quot; : { &quot;t&quot; : 1596648251, &quot;i&quot; : 1 } }, &quot;signature&quot; : { &quot;hash&quot; : { &quot;$binary&quot; : { &quot;base64&quot;: &quot;AAAAAAAAAAAAAAAAAAAAAAAAAAA=&quot;, &quot;subType&quot; : &quot;00&quot; } }, &quot;keyId&quot; : { &quot;$numberLong&quot; : &quot;0&quot;} } }, &quot;operationTime&quot; : { &quot;$timestamp&quot; : { &quot;t&quot; : 1596648251, &quot;i&quot; : 1 } } }&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;2020/08/05 13:24:13.0454: [64909]:    DEBUG:       mongoc: end: first call to mongoc_cursor_next&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;</description>
                <environment></environment>
        <key id="1431065">CDRIVER-3770</key>
            <summary>Extra getMore is sent when a tailable cursor receives an empty initial batch</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="10038" iconUrl="https://jira.mongodb.org/images/icons/subtask.gif" description="">Backlog</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="kevin.albertson@mongodb.com">Kevin Albertson</reporter>
                        <labels>
                    </labels>
                <created>Wed, 5 Aug 2020 17:29:14 +0000</created>
                <updated>Fri, 15 Apr 2022 18:35:09 +0000</updated>
                                                                                                <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                    <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="828329">PHPC-1409</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|hr6jke:</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>