<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:15:38 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-2573] APM reports incorrect command document for unacknowledged bulk writes</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-2573</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;In &lt;a href=&quot;https://github.com/mongodb/mongo-php-driver/issues/780&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;mongodb/mongo-php-driver#780&lt;/a&gt;, a user was reporting some issues executing bulk updates with an unacknowledged write concern. Since he was connecting to a MongoDB 3.4 server, each update in the bulk write was issued in its own &lt;tt&gt;OP_UPDATE&lt;/tt&gt; message. While investigating his script with APM, I noticed that executing a bulk write with five update statements resulted in five CommandStartedEvents; however, the command document attached to each CommandStartedEvent included the full bulk write. This made it appear as if 25 updates were being executed instead of five.&lt;/p&gt;

&lt;p&gt;I believe this may be due to &lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/blob/1.9.3/src/mongoc/mongoc-write-command-legacy.c#L498&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&lt;tt&gt;_mongoc_write_command_update_legacy()&lt;/tt&gt; calling &lt;tt&gt;_mongoc_monitor_legacy_write()&lt;/tt&gt;&lt;/a&gt; with the full command struct instead of a synthetic command that contains the single statement being executed.&lt;/p&gt;

&lt;p&gt;If so, this is likely also an issue for &lt;tt&gt;_mongoc_write_command_delete_legacy()&lt;/tt&gt; and &lt;tt&gt;_mongoc_write_command_insert_legacy()&lt;/tt&gt; (depending how documents are split for each &lt;tt&gt;OP_INSERT&lt;/tt&gt;) message).&lt;/p&gt;</description>
                <environment></environment>
        <key id="517604">CDRIVER-2573</key>
            <summary>APM reports incorrect command document for unacknowledged bulk writes</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="10038" iconUrl="https://jira.mongodb.org/images/icons/subtask.gif" description="">Backlog</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="jmikola@mongodb.com">Jeremy Mikola</reporter>
                        <labels>
                    </labels>
                <created>Tue, 27 Mar 2018 20:41:41 +0000</created>
                <updated>Tue, 7 Mar 2023 10:51:11 +0000</updated>
                                            <version>1.9.3</version>
                                                    <component>libmongoc</component>
                                        <votes>1</votes>
                                    <watches>3</watches>
                                                                                                                    <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="721161">CDRIVER-3035</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|hr6myn:</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>