<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:16:19 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-2782] Fake an {ok: 1} reply for unacknowledged writes with OP_MSG</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-2782</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;While working on implementing the command monitoring spec tests in C++, &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=spencer.mckenney&quot; class=&quot;user-hover&quot; rel=&quot;spencer.mckenney&quot;&gt;spencer.mckenney&lt;/a&gt; found one test that was failing: &lt;a href=&quot;https://github.com/mongodb/specifications/blob/master/source/command-monitoring/tests/unacknowledgedBulkWrite.yml&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;unacknowledgedBulkWrite.json&lt;/a&gt; It fails because the reply in the command succeeded event is an empty document, but the spec tests expect a reply of &lt;tt&gt;ok:1&lt;/tt&gt;. According &lt;a href=&quot;https://github.com/mongodb/specifications/blob/master/source/command-monitoring/command-monitoring.rst#unacknowledged-acknowledged-writes&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;to the spec&lt;/a&gt;:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;For server versions that do not support write commands, the driver MUST treat an acknowledged write as a single command event, where the GLE command is ignored as a started event and the response to the GLE is treated as the reply in the CommandSucceededEvent. Unacknowledged writes must provide a CommandSucceededEvent with a &lt;tt&gt;ok:1&lt;/tt&gt; reply.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;IIUC this is saying we should always generate an &lt;tt&gt;ok:1&lt;/tt&gt; reply. But the path for OP_MSG writes doesn&apos;t. Instead we fake the &lt;tt&gt;ok:1&lt;/tt&gt; &lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/blob/master/src/libmongoc/tests/json-test-monitoring.c#L101-L105&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;in our tests&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;I think we should actually generate the fake &lt;tt&gt;ok:1&lt;/tt&gt; for unacknowledged OP_MSG writes. From what I&apos;ve looked at, it&apos;s a straightforward fix.&lt;/p&gt;</description>
                <environment></environment>
        <key id="580803">CDRIVER-2782</key>
            <summary>Fake an {ok: 1} reply for unacknowledged writes with OP_MSG</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="kevin.albertson@mongodb.com">Kevin Albertson</reporter>
                        <labels>
                    </labels>
                <created>Wed, 1 Aug 2018 14:42:08 +0000</created>
                <updated>Sat, 28 Oct 2023 11:29:39 +0000</updated>
                            <resolved>Thu, 2 Aug 2018 04:29:53 +0000</resolved>
                                                    <fixVersion>1.13.0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="1963653" author="xgen-internal-githook" created="Thu, 2 Aug 2018 04:29:37 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Kevin Albertson&apos;, &apos;email&apos;: &apos;kevin.albertson@10gen.com&apos;, &apos;username&apos;: &apos;kevinAlbs&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2782&quot; title=&quot;Fake an {ok: 1} reply for unacknowledged writes with OP_MSG&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2782&quot;&gt;&lt;del&gt;CDRIVER-2782&lt;/del&gt;&lt;/a&gt; fake ok:1 reply for w:0 writes&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/e5df2b084d11e4ce6368be1b59f1844514384beb&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/e5df2b084d11e4ce6368be1b59f1844514384beb&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="400823">CXX-1386</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|htuuzz:</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>