<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 09:05:34 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>[KAFKA-95] &quot;Unrecognized field: startAfter&quot; with Source connector</title>
                <link>https://jira.mongodb.org/browse/KAFKA-95</link>
                <project id="16285" key="KAFKA">Kafka Connector</project>
                    <description>&lt;p&gt;I am trying to configure a Source connector. Here are the steps&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;configure and create source connector - worked fine&lt;/li&gt;
	&lt;li&gt;create a document in mongodb - worked fine. Confirmed that the document was pushed in the target Kafka topic&lt;/li&gt;
	&lt;li&gt;restart Kafka connect - I see this error&lt;/li&gt;
&lt;/ol&gt;


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

&lt;p&gt;&lt;em&gt;INFO Resuming the change stream after the previous offset (com.mongodb.kafka.connect.source.MongoSourceTask:234)&lt;/em&gt;&lt;br/&gt;
&lt;em&gt;INFO Failed to resume change stream: Unrecognized field: startAfter 9 (com.mongodb.kafka.connect.source.MongoSourceTask:253)&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;I am using MongoDB 3.6 and I see that startAfter is supported for 4.2 and above (&lt;a href=&quot;https://docs.mongodb.com/manual/changeStreams/#startafter-for-change-streams&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://docs.mongodb.com/manual/changeStreams/#startafter-for-change-streams&lt;/a&gt;). I &lt;a href=&quot;http://example.com&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;checked the code&lt;/a&gt;[https://github.com/mongodb/mongo-kafka/blob/d89f0c0ba0b8a365fbcc0536dfa93d1728e4d933/src/main/java/com/mongodb/kafka/connect/source/MongoSourceTask.java#L253] but it&apos;s difficult to figure out since all the exception handling is based on error codes.&#160;&lt;/p&gt;

&lt;p&gt;Not sure why startAfter is coming into picture in this case&lt;/p&gt;</description>
                <environment>MongoDB 3.6&lt;br/&gt;
Kafka 2.3.0</environment>
        <key id="1306081">KAFKA-95</key>
            <summary>&quot;Unrecognized field: startAfter&quot; with Source connector</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="ross@mongodb.com">Ross Lawley</assignee>
                                    <reporter username="abhirockzz@gmail.com">Abhishek Gupta</reporter>
                        <labels>
                    </labels>
                <created>Mon, 6 Apr 2020 19:42:18 +0000</created>
                <updated>Sat, 28 Oct 2023 10:46:25 +0000</updated>
                            <resolved>Wed, 8 Apr 2020 10:42:40 +0000</resolved>
                                    <version>1.0.1</version>
                                    <fixVersion>1.1</fixVersion>
                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="3036118" author="abhirockzz@gmail.com" created="Sun, 12 Apr 2020 17:42:46 +0000"  >&lt;p&gt;Thank you! Good to see its included in 1.1 release. Out of curiosity, when is the 1.1 release going out?&#160;&lt;/p&gt;</comment>
                            <comment id="3030753" author="ross@10gen.com" created="Wed, 8 Apr 2020 10:42:40 +0000"  >&lt;p&gt;I&apos;ve added an extra check for errorCode 9 - Unrecognized field. This should ensure that resumeAfter is used instead.&lt;/p&gt;</comment>
                            <comment id="3030750" author="xgen-internal-githook" created="Wed, 8 Apr 2020 10:40:47 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Ross Lawley&apos;, &apos;email&apos;: &apos;ross.lawley@gmail.com&apos;, &apos;username&apos;: &apos;rozza&apos;}
&lt;p&gt;Message: Updated startAfter support check&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/KAFKA-95&quot; title=&quot;&amp;quot;Unrecognized field: startAfter&amp;quot; with Source connector&quot; class=&quot;issue-link&quot; data-issue-key=&quot;KAFKA-95&quot;&gt;&lt;del&gt;KAFKA-95&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-kafka/commit/3e324722f403e4f4106ca13ae8019fe59c7f6b1d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-kafka/commit/3e324722f403e4f4106ca13ae8019fe59c7f6b1d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3028916" author="ross@10gen.com" created="Tue, 7 Apr 2020 12:37:33 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=abhirockzz%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;abhirockzz@gmail.com&quot;&gt;abhirockzz@gmail.com&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;I&apos;ve tested on  both 3.6.10 and 3.6.17 and I don&apos;t the &quot;Unrecognized field: startAfter 9 &quot; error.  Please could you confirm the exact version of MongoDB you are using?&lt;/p&gt;

&lt;p&gt;Kind Regards,&lt;/p&gt;

&lt;p&gt;Ross&lt;/p&gt;</comment>
                            <comment id="3028760" author="ross@10gen.com" created="Tue, 7 Apr 2020 08:48:19 +0000"  >&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;Apologies, that is definitely a bug with the handling of resuming a changestream.  Restarting the connector will attempt to restart from the last seen offset.  However, MongoDB 3.6 handles the startAfter field differently than expected - a fix will be issued in the next release.&lt;/p&gt;

&lt;p&gt;Ross&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|hx1div:</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>