<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 09:06:16 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-395] Fix custom Delete write model strategy support</title>
                <link>https://jira.mongodb.org/browse/KAFKA-395</link>
                <project id="16285" key="KAFKA">Kafka Connector</project>
                    <description>&lt;p&gt;Hello team,&lt;/p&gt;

&lt;p&gt;we are configuring a mongo sink connector using confluent.&lt;/p&gt;

&lt;p&gt;My settings were perfect as written in the docs, but only Insert and Update worked, but Delete did not work.&lt;/p&gt;

&lt;p&gt;To create the DeleteOneWrite model,&lt;/p&gt;

&lt;p&gt;&quot;document.id.strategy&quot; was set to PartialKeyStrategy and allowlist.&lt;/p&gt;

&lt;p&gt;Of course &quot;delete.on.null.values&quot; : true ;&lt;br/&gt;
&#160;&quot;delete.writemodel.strategy&quot; is the default value, DeleteOneDefaultStrategy&lt;br/&gt;
But it failed to handle the tombstone event and I found the following bug in MongoSinkTopicConfig:&lt;/p&gt;

&lt;p&gt;As mentioned in the docs, with the id strategy to create DeleteOneModel&lt;/p&gt;

&lt;p&gt;FullKeyStrategy, PartialKeyStrategy, ProvidedInKeyStrategy&lt;/p&gt;

&lt;p&gt;You must create a DeleteOneDefaultStrategy object in one of three ways, but&lt;br/&gt;
We discovered something impossible during the current validation process.&lt;/p&gt;

&lt;p&gt;Below is the code.&lt;/p&gt;

&lt;p&gt;1. DELETE_WRITEMODEL_STRATEGY_CONFIG must be empty to create with 3 id strategies&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://jira.mongodb.org/secure/attachment/501250/501250_image-2024-01-07-02-27-12-883.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/p&gt;

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

&lt;p&gt;2. Could not input &quot;&quot; because of Validators.matching(FULLY_QUALIFIED_CLASS_NAME)&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://jira.mongodb.org/secure/attachment/501249/501249_image-2024-01-07-02-28-56-180.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/p&gt;

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

&lt;p&gt;3. DELETE_WRITEMODEL_STRATEGY_CONFIG cannot be empty because a default value exists.&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://jira.mongodb.org/secure/attachment/501248/501248_image-2024-01-07-02-30-57-665.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/p&gt;

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

&lt;p&gt;Thank you.&lt;/p&gt;</description>
                <environment></environment>
        <key id="2538828">KAFKA-395</key>
            <summary>Fix custom Delete write model strategy support</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="tlsdnwn55@naver.com">WooJoo Shin</reporter>
                        <labels>
                            <label>Bug</label>
                    </labels>
                <created>Sat, 6 Jan 2024 17:36:40 +0000</created>
                <updated>Wed, 7 Feb 2024 15:59:03 +0000</updated>
                            <resolved>Tue, 16 Jan 2024 17:49:34 +0000</resolved>
                                    <version>1.11.1</version>
                                    <fixVersion>1.11.2</fixVersion>
                                    <component>Configuration</component>
                    <component>Sink</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="6014628" author="xgen-internal-githook" created="Tue, 16 Jan 2024 17:49:14 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;tlsdnwn55&apos;, &apos;email&apos;: &apos;tlsdnwn55@naver.com&apos;, &apos;username&apos;: &apos;tlsdnwn55&apos;}
&lt;p&gt;Message: Fix custom Delete write model strategy support&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/KAFKA-395&quot; title=&quot;Fix custom Delete write model strategy support&quot; class=&quot;issue-link&quot; data-issue-key=&quot;KAFKA-395&quot;&gt;&lt;del&gt;KAFKA-395&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Co-authored-by: Ross Lawley &amp;lt;ross@mongodb.com&amp;gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-kafka/commit/b2e00f4a9d59b069bb436449ce2d35cdb30c2c91&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-kafka/commit/b2e00f4a9d59b069bb436449ce2d35cdb30c2c91&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5992011" author="JIRAUSER1276775" created="Sun, 7 Jan 2024 06:21:28 +0000"  >&lt;p&gt;I wrote a PR about this. &lt;a href=&quot;https://github.com/mongodb/mongo-kafka/pull/149&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;link KAFKA-395&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5991643" author="dbeng-pm-bot" created="Sat, 6 Jan 2024 17:36:43 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=tlsdnwn55%40naver.com&quot; class=&quot;user-hover&quot; rel=&quot;tlsdnwn55@naver.com&quot;&gt;tlsdnwn55@naver.com&lt;/a&gt;, thank you for reporting this issue! The team will look into it and get back to you soon. &lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="2094202">KAFKA-320</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="501250" name="image-2024-01-07-02-27-12-883.png" size="112866" author="tlsdnwn55@naver.com" created="Sat, 6 Jan 2024 17:27:14 +0000"/>
                            <attachment id="501249" name="image-2024-01-07-02-28-56-180.png" size="35861" author="tlsdnwn55@naver.com" created="Sat, 6 Jan 2024 17:28:57 +0000"/>
                            <attachment id="501248" name="image-2024-01-07-02-30-57-665.png" size="12494" author="tlsdnwn55@naver.com" created="Sat, 6 Jan 2024 17:30:58 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                        <customfield id="customfield_23812" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Assigned Team</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="26447"><![CDATA[Java Drivers]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10257" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Documentation Changes</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="11861"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i2or78:</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>