<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:17:43 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-3329] Driver still tries to resume change streams after encountering NonResumableChangeStreamError</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-3329</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;I noticed while running &lt;a href=&quot;https://github.com/mongodb/specifications/commit/64c5cddb5cb1d23137b60b18f0bcb8de1a21bedc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;the test&lt;/a&gt; added via SPEC-1214 that mongoc seemed to still attempt resuming - using command monitoring I saw the following order of events:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;successful aggregate&lt;/li&gt;
	&lt;li&gt;a successful insert&lt;/li&gt;
	&lt;li&gt;a failed getMore&lt;/li&gt;
	&lt;li&gt;a successful killCursors&lt;/li&gt;
	&lt;li&gt;a failed aggregate&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Looking at mongoc-change-stream.c, I believe this is because the code &lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/blob/06f1fb80d3db6cf24df79b3e124e3ea68e6ad2f1/src/libmongoc/src/mongoc/mongoc-change-stream.c#L49&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt; checks for &quot;NonRetryableChangeStreamError&quot; rather than &quot;NonResumableChangeStreamError&quot;.&lt;/p&gt;

&lt;p&gt;I think this mistake occurred because the original commit for SPEC-1214 wrongly used &quot;retryable&quot; in the .rst file. This was corrected in a subsequent commit under the same ticket number.&lt;/p&gt;</description>
                <environment></environment>
        <key id="903192">CDRIVER-3329</key>
            <summary>Driver still tries to resume change streams after encountering NonResumableChangeStreamError</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="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="kevin.albertson@mongodb.com">Kevin Albertson</assignee>
                                    <reporter username="kaitlin.mahar@mongodb.com">Kaitlin Mahar</reporter>
                        <labels>
                    </labels>
                <created>Wed, 21 Aug 2019 20:17:31 +0000</created>
                <updated>Sat, 28 Oct 2023 11:29:08 +0000</updated>
                            <resolved>Fri, 23 Aug 2019 02:27:42 +0000</resolved>
                                                    <fixVersion>1.15.1</fixVersion>
                                    <component>libmongoc</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="2383664" author="xgen-internal-githook" created="Fri, 23 Aug 2019 02:28:25 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Kevin Albertson&apos;, &apos;email&apos;: &apos;kevin.albertson@mongodb.com&apos;, &apos;username&apos;: &apos;kevinAlbs&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-3329&quot; title=&quot;Driver still tries to resume change streams after encountering NonResumableChangeStreamError&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-3329&quot;&gt;&lt;del&gt;CDRIVER-3329&lt;/del&gt;&lt;/a&gt; fix error label check&lt;br/&gt;
Branch: r1.15&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/59742684040c89708bfe7ed857efb38c65f30d98&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/59742684040c89708bfe7ed857efb38c65f30d98&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2383663" author="xgen-internal-githook" created="Fri, 23 Aug 2019 02:27:31 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Kevin Albertson&apos;, &apos;email&apos;: &apos;kevin.albertson@mongodb.com&apos;, &apos;username&apos;: &apos;kevinAlbs&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-3329&quot; title=&quot;Driver still tries to resume change streams after encountering NonResumableChangeStreamError&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-3329&quot;&gt;&lt;del&gt;CDRIVER-3329&lt;/del&gt;&lt;/a&gt; fix error label check&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/10f6ee9458449790125410a6293433a39aa9e9c1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/10f6ee9458449790125410a6293433a39aa9e9c1&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2382415" author="kevin.albertson" created="Thu, 22 Aug 2019 12:59:49 +0000"  >&lt;p&gt;Oh good catch. I think when I implemented this I incorrectly assumed that the JSON spec tests that referred to &quot;NonResumableChangeStreamError&quot; were exercising this. As part of this fix, we&apos;ll add tests for errors with &quot;NonResumableChangeStreamError&quot; label.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10520">
                    <name>Problem/Incident</name>
                                                                <inwardlinks description="is caused by">
                                                        </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|hvb0tj:</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>