<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:16: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-3032] Audit how options are applied in cursor returning functions</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-3032</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;Public functions that create a cursor (like &lt;a href=&quot;http://mongoc.org/libmongoc/current/mongoc_collection_find_with_opts.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;mongoc_collection_find_with_opts&lt;/a&gt;) have one way to specify options, through a &lt;tt&gt;bson_t&lt;/tt&gt; opts.&lt;/p&gt;

&lt;p&gt;There are multiple ways bson options are handled when a cursor is returned:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;driver specific options, like &quot;serverId&quot; never get sent to the server&lt;/li&gt;
	&lt;li&gt;options specific to the initial command (e.g. &quot;bypassDocumentValidation&quot;) apply to the initial command, but not to getMore&lt;/li&gt;
	&lt;li&gt;options like &quot;batchSize&quot; apply to both the initial command and the getMore&lt;/li&gt;
	&lt;li&gt;options like &quot;maxAwaitTimeMS&quot; may trigger &quot;maxTimeMS&quot; being set on the getMore&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;We&apos;ve gotten this wrong before. See &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-3031&quot; title=&quot;Support options from mongoc_query_flags_t in aggregate helpers&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-3031&quot;&gt;CDRIVER-3031&lt;/a&gt;. And I suspect there may be other cases we aren&apos;t handling quite right. Let&apos;s exhaustively audit functions that return a cursor and make it clear how we&apos;re handling options, and use the IDL where possible to have consistent behavior.&lt;/p&gt;</description>
                <environment></environment>
        <key id="719895">CDRIVER-3032</key>
            <summary>Audit how options are applied in cursor returning functions</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="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, 20 Mar 2019 14:26:02 +0000</created>
                <updated>Fri, 10 Feb 2023 16:25:51 +0000</updated>
                                                                            <component>libmongoc</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                    <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="719890">CDRIVER-3031</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="687708">CDRIVER-2960</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="719881">CDRIVER-3030</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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>CDRIVER-4577</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|htrnjj:</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>