<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:46:31 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>[CSHARP-3862] .NET 6.0 RC1: Resume of change stream was not possible, as the resume point may no longer be in the oplog..</title>
                <link>https://jira.mongodb.org/browse/CSHARP-3862</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;Driver version 2.13.1 works just fine on .NET 5.0 but as soon as I ported everything over to .NET 6.0 RC1 which dropped on Tuesday and the change streams can no longer resume from the change stream from the tokens.&#160; I reverted back to .NET 5.0 just to verify that the tokens were in fact still in the oplog and it starts back up without any issues so clearly something changed in .NET internals as to how change streams are picked back up.&lt;/p&gt;

&lt;p&gt;Problem occurs in both Windows and Linux so it isn&apos;t OS specific.&lt;/p&gt;

&lt;p&gt;Here is the full stacktrace&lt;/p&gt;

&lt;p&gt;MongoDB.Driver.MongoCommandException: Command aggregate failed: Resume of change stream was not possible, as the resume point may no longer be in the oplog..&lt;br/&gt;
 at MongoDB.Driver.Core.WireProtocol.CommandUsingCommandMessageWireProtocol`1.ProcessResponse(ConnectionId connectionId, CommandMessage responseMessage)&lt;br/&gt;
 at MongoDB.Driver.Core.WireProtocol.CommandUsingCommandMessageWireProtocol`1.ExecuteAsync(IConnection connection, CancellationToken cancellationToken)&lt;br/&gt;
 at MongoDB.Driver.Core.Servers.Server.ServerChannel.ExecuteProtocolAsync&lt;span class=&quot;error&quot;&gt;&amp;#91;TResult&amp;#93;&lt;/span&gt;(IWireProtocol`1 protocol, ICoreSession session, CancellationToken cancellationToken)&lt;br/&gt;
 at MongoDB.Driver.Core.Operations.RetryableReadOperationExecutor.ExecuteAsync&lt;span class=&quot;error&quot;&gt;&amp;#91;TResult&amp;#93;&lt;/span&gt;(IRetryableReadOperation`1 operation, RetryableReadContext context, CancellationToken cancellationToken)&lt;br/&gt;
 at MongoDB.Driver.Core.Operations.ReadCommandOperation`1.ExecuteAsync(RetryableReadContext context, CancellationToken cancellationToken)&lt;br/&gt;
 at MongoDB.Driver.Core.Operations.AggregateOperation`1.ExecuteAsync(RetryableReadContext context, CancellationToken cancellationToken)&lt;br/&gt;
 at MongoDB.Driver.Core.Operations.ChangeStreamOperation`1.ExecuteAsync(IReadBinding binding, CancellationToken cancellationToken)&lt;br/&gt;
 at MongoDB.Driver.OperationExecutor.ExecuteReadOperationAsync&lt;span class=&quot;error&quot;&gt;&amp;#91;TResult&amp;#93;&lt;/span&gt;(IReadBinding binding, IReadOperation`1 operation, CancellationToken cancellationToken)&lt;br/&gt;
 at MongoDB.Driver.MongoDatabaseImpl.ExecuteReadOperationAsync&lt;span class=&quot;error&quot;&gt;&amp;#91;T&amp;#93;&lt;/span&gt;(IClientSessionHandle session, IReadOperation`1 operation, ReadPreference readPreference, CancellationToken cancellationToken)&lt;br/&gt;
 at MongoDB.Driver.MongoDatabaseImpl.UsingImplicitSessionAsync&lt;span class=&quot;error&quot;&gt;&amp;#91;TResult&amp;#93;&lt;/span&gt;(Func`2 funcAsync, CancellationToken cancellationToken)&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Let me know if you need any additional information/code.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1876233">CSHARP-3862</key>
            <summary>.NET 6.0 RC1: Resume of change stream was not possible, as the resume point may no longer be in the oplog..</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="9">Done</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="buvy@assurely.com">Brian Buvinghausen</reporter>
                        <labels>
                    </labels>
                <created>Thu, 16 Sep 2021 16:47:44 +0000</created>
                <updated>Mon, 20 Sep 2021 12:51:00 +0000</updated>
                            <resolved>Mon, 20 Sep 2021 12:51:00 +0000</resolved>
                                                                    <component>Read Operations</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="4071131" author="jeff.yemin" created="Mon, 20 Sep 2021 12:50:41 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=buvy%40assurely.com&quot; class=&quot;user-hover&quot; rel=&quot;buvy@assurely.com&quot;&gt;buvy@assurely.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Thanks for updating us.  I&apos;m going to close this out but please comment back if you have further issues.&lt;/p&gt;</comment>
                            <comment id="4066559" author="buvy@assurely.com" created="Thu, 16 Sep 2021 17:34:24 +0000"  >&lt;p&gt;Follow on comment.&lt;/p&gt;

&lt;p&gt;When I archived the resume tokens generated from .NET 5 I was able to start the process up.&#160; The resume tokens generated by .NET 6.0 RC1 are capable of being resumed going forwards so I will just be careful shutting down the queue workers and then archiving the tokens and spinning the services back online so ultimately I am not blocked which is the key thing.&lt;/p&gt;</comment>
                    </comments>
                    <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|hzlt1r:</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>