<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 09:01:37 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>[JAVA-4260] AsyncQueryBatchCursor should not try to kill the server cursor if pinned connection is corrupted</title>
                <link>https://jira.mongodb.org/browse/JAVA-4260</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;When working in LB mode, both &lt;tt&gt;QueryBatchCursor&lt;/tt&gt; and &lt;tt&gt;AsyncQueryBatchCursor&lt;/tt&gt; pin a connection and use it for both issuing &lt;tt&gt;getMore&lt;/tt&gt; and &lt;tt&gt;killCursors&lt;/tt&gt; command. If a network error happens while doing &lt;tt&gt;getMore&lt;/tt&gt;, the driver closes the &lt;tt&gt;Stream&lt;/tt&gt; underlying the pinned connection and the connection cannot be used anymore. Thus, the &lt;tt&gt;QueryBatchCursor&lt;/tt&gt;/&lt;tt&gt;AsyncQueryBatchCursor&lt;/tt&gt; should not even try using it. &lt;tt&gt;QueryBatchCursor&lt;/tt&gt; was changed to behave as described when the LB support was implemented, but &lt;tt&gt;AsyncQueryBatchCursor&lt;/tt&gt; was not.&lt;/p&gt;

&lt;p&gt;Note that it may be tempting to release the pinned connection and the connection source when a network error happens, but there is a specification test &lt;a href=&quot;https://github.com/mongodb/specifications/blob/master/source/load-balancers/tests/cursors.json#L379&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&lt;tt&gt;cursors.json: &quot;pinned connections are not returned after an network error during getMore&quot;&lt;/tt&gt;&lt;/a&gt; that unfortunately prevents exactly this. Hopefully it will be gone in the future as a result of &lt;a href=&quot;https://jira.mongodb.org/browse/DRIVERS-1847&quot; title=&quot;Improve guidance around connection pinning on error in cursors&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DRIVERS-1847&quot;&gt;DRIVERS-1847&lt;/a&gt;.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1830096">JAVA-4260</key>
            <summary>AsyncQueryBatchCursor should not try to kill the server cursor if pinned connection is corrupted</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="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="valentin.kovalenko@mongodb.com">Valentin Kavalenka</reporter>
                        <labels>
                    </labels>
                <created>Sat, 24 Jul 2021 03:05:01 +0000</created>
                <updated>Wed, 30 Mar 2022 23:05:00 +0000</updated>
                                            <version>4.3.0</version>
                                                    <component>Connection Management</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                    <issuelinks>
                            <issuelinktype id="10020">
                    <name>Gantt Dependency</name>
                                                                <inwardlinks description="has to be done after">
                                        <issuelink>
            <issuekey id="1830091">JAVA-4259</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10620">
                    <name>Issue split</name>
                                                                <inwardlinks description="split from">
                                        <issuelink>
            <issuekey id="1765140">JAVA-4183</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|hr3mvg:</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>