<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:38:28 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>[SERVER-56142] Modernize writeConcern w:0 handling in the shell</title>
                <link>https://jira.mongodb.org/browse/SERVER-56142</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;When the mongo shell sends a w:0 write, it will do so using the legacy write protocol. Modern drivers will instead send an `OP_MSG` with the `moreToCome` but set, a path that we may not be currently testing in our integration test suite.&lt;/p&gt;

&lt;p&gt;We could consider making changes to use the legacy wire protocol when the shell is in `writeMode:legacy` and using `OP_MSG` for the default `writeMode:commands`.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1681803">SERVER-56142</key>
            <summary>Modernize writeConcern w:0 handling in the shell</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="13202">Works as Designed</resolution>
                                        <assignee username="eric.cox@mongodb.com">Eric Cox</assignee>
                                    <reporter username="james.wahlin@mongodb.com">James Wahlin</reporter>
                        <labels>
                    </labels>
                <created>Fri, 16 Apr 2021 17:04:38 +0000</created>
                <updated>Fri, 27 Oct 2023 13:52:26 +0000</updated>
                            <resolved>Mon, 10 May 2021 14:19:35 +0000</resolved>
                                                                    <component>Shell</component>
                                        <votes>0</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="3763593" author="david.storch" created="Mon, 10 May 2021 14:21:39 +0000"  >&lt;p&gt;To add to what &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=eric.cox&quot; class=&quot;user-hover&quot; rel=&quot;eric.cox&quot;&gt;eric.cox&lt;/a&gt; said, it does not appear that the original problem described by this ticket actually exists. The shell is already using OP_MSG for &lt;tt&gt;w:0&lt;/tt&gt; writes, so there is no modernization necessary to make the shell stop using OP_INSERT, OP_DELETE, and OP_UPDATE. Hence, we have resolved this ticket as &quot;Works as Designed&quot;.&lt;/p&gt;</comment>
                            <comment id="3763579" author="eric.cox" created="Mon, 10 May 2021 14:16:44 +0000"  >&lt;p&gt;We got to the bottom of this. It turns out that &lt;tt&gt;apiVersion&lt;/tt&gt;&#160;parameters weren&apos;t being sent from the DBClient in the &quot;fire and forget&quot; path using the OP_MSG protocol when a write concern &lt;tt&gt;w:0&lt;/tt&gt;&#160;used. However, the original author &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=jesse&quot; class=&quot;user-hover&quot; rel=&quot;jesse&quot;&gt;jesse&lt;/a&gt;&#160;wanted to fix the bug since he implemented the other write concern cases. That is work is being tracked in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-56778&quot; title=&quot;mongo shell doesn&amp;#39;t send API parameters with unacknowledged writes&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-56778&quot;&gt;&lt;del&gt;SERVER-56778&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="3762371" author="jesse" created="Sat, 8 May 2021 02:16:32 +0000"  >&lt;p&gt;Sorry, this should be closed as a dupe of&#160;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-38510&quot; title=&quot;Implement shell code to set moreToCome for unacknowledged writes when using writes commands&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-38510&quot;&gt;&lt;del&gt;SERVER-38510&lt;/del&gt;&lt;/a&gt;, the shell is correct already.&lt;/p&gt;</comment>
                            <comment id="3748708" author="david.storch" created="Fri, 30 Apr 2021 14:01:07 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=milkie&quot; class=&quot;user-hover&quot; rel=&quot;milkie&quot;&gt;milkie&lt;/a&gt; are you referring to old versions of the &lt;tt&gt;mongo&lt;/tt&gt; shell, or are you saying that any version of &lt;tt&gt;mongo&lt;/tt&gt; is legacy/deprecated due to &lt;tt&gt;mongosh&lt;/tt&gt;?&lt;/p&gt;

&lt;p&gt;Assuming it is the former, I&apos;m not sure how much we should worry about it. But I do think we have the option to backport the work done under this ticket.&lt;/p&gt;</comment>
                            <comment id="3748014" author="milkie" created="Fri, 30 Apr 2021 02:07:50 +0000"  >&lt;p&gt;Does it change anything if it&apos;s not a modern but a legacy, deprecated shell depending on deprecated opcodes?&lt;/p&gt;</comment>
                            <comment id="3747712" author="david.storch" created="Thu, 29 Apr 2021 21:19:47 +0000"  >&lt;p&gt;I&apos;m re-opening this and moving it to the Query Execution team backlog. We are considering deprecating the legacy wire protocol ops, including OP_INSERT, OP_UPDATE, and OP_DELETE. As part of this effort, it would be good to ensure that a modern shell does not depend on the deprecated op codes for unacknowledged write operations.&lt;/p&gt;</comment>
                            <comment id="3739704" author="brooke.miller" created="Mon, 26 Apr 2021 20:02:38 +0000"  >&lt;p&gt;Reviewed this with &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=robert.guo&quot; class=&quot;user-hover&quot; rel=&quot;robert.guo&quot;&gt;robert.guo&lt;/a&gt;&#160; in triage and decided to close this as Won&apos;t Fix, since there&apos;s no immediate need to do this for testing purposes. Also, this seems like non-trivial change to accommodate this in the legacy shell for testing purposes. However, if this is highly desired, please feel free to re-open this ticket.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                                        </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="1707407">SERVER-56778</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>7.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 16 Apr 2021 17:50:44 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        2 years, 39 weeks, 2 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-911</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            2 years, 39 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>jesse@mongodb.com</customfieldvalue>
            <customfieldvalue>brooke.miller@mongodb.com</customfieldvalue>
            <customfieldvalue>david.storch@mongodb.com</customfieldvalue>
            <customfieldvalue>eric.cox@mongodb.com</customfieldvalue>
            <customfieldvalue>milkie@mongodb.com</customfieldvalue>
            <customfieldvalue>james.wahlin@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hz52en:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hyq1un:</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>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="4697">Query Execution 2021-05-17</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hz4onr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>