<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:37:49 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-34776] dropDatabase should respect user provided writeConcern</title>
                <link>https://jira.mongodb.org/browse/SERVER-34776</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;It looks like the dropDatabase command ignores write concern wtimeout on 3.7 replica sets. Is this intentional?&lt;/p&gt;</description>
                <environment></environment>
        <key id="537537">SERVER-34776</key>
            <summary>dropDatabase should respect user provided writeConcern</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="louis.williams@mongodb.com">Louis Williams</assignee>
                                    <reporter username="shane.harvey@mongodb.com">Shane Harvey</reporter>
                        <labels>
                    </labels>
                <created>Tue, 1 May 2018 19:56:56 +0000</created>
                <updated>Sun, 29 Oct 2023 22:32:11 +0000</updated>
                            <resolved>Tue, 22 May 2018 20:50:44 +0000</resolved>
                                                    <fixVersion>4.0.0-rc1</fixVersion>
                    <fixVersion>4.1.1</fixVersion>
                                    <component>Storage</component>
                                        <votes>0</votes>
                                    <watches>11</watches>
                                                                                                                <comments>
                            <comment id="1899486" author="xgen-internal-githook" created="Wed, 23 May 2018 14:22:31 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;louiswilliams&apos;, &apos;name&apos;: &apos;Louis Williams&apos;, &apos;email&apos;: &apos;louis.williams@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-34776&quot; title=&quot;dropDatabase should respect user provided writeConcern&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-34776&quot;&gt;&lt;del&gt;SERVER-34776&lt;/del&gt;&lt;/a&gt; dropDatabase should respect user provided writeConcern&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 416d82de9360f821c431b24f591cb3a0c777835f)&lt;br/&gt;
Branch: v4.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/7c1d8edae557be6c135e5f60720c116c0fef7433&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/7c1d8edae557be6c135e5f60720c116c0fef7433&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1898888" author="xgen-internal-githook" created="Tue, 22 May 2018 20:48:13 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;louiswilliams&apos;, &apos;name&apos;: &apos;Louis Williams&apos;, &apos;email&apos;: &apos;louis.williams@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-34776&quot; title=&quot;dropDatabase should respect user provided writeConcern&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-34776&quot;&gt;&lt;del&gt;SERVER-34776&lt;/del&gt;&lt;/a&gt; dropDatabase should respect user provided writeConcern&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/416d82de9360f821c431b24f591cb3a0c777835f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/416d82de9360f821c431b24f591cb3a0c777835f&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1894708" author="milkie" created="Thu, 17 May 2018 21:49:42 +0000"  >&lt;p&gt;I wouldn&apos;t ignore what the user provides.  Instead, I would wait for &quot;majority&quot; and then wait for what the user provided; it will be a no-op unless the user provided something stronger than &quot;majority&quot;.&lt;/p&gt;</comment>
                            <comment id="1894620" author="louis.williams" created="Thu, 17 May 2018 20:47:46 +0000"  >&lt;p&gt;Does anybody have any input as to whether dropDatabase should also respect the user&apos;s &quot;w&quot; parameter? At the moment waiting for the collection drops to be replicated defaults to &quot;majority&quot;, but anything a user provides is ignored. &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;?&lt;/p&gt;</comment>
                            <comment id="1893230" author="louis.williams" created="Wed, 16 May 2018 19:02:54 +0000"  >&lt;p&gt;It looks like &lt;tt&gt;dropDatabases&lt;/tt&gt; uses a hardcoded&#160;&lt;a href=&quot;https://github.com/mongodb/mongo/blob/417673fd65eac197f4bc21aab5ae5791b272dbf2/src/mongo/db/catalog/drop_database.cpp#L60-L62&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;wTimeout of 10 minutes&lt;/a&gt; when waiting for the collection drops to replicate. We should should just use the user-supplied &lt;tt&gt;wtimeout&lt;/tt&gt;&#160;if it is provided.&lt;/p&gt;</comment>
                            <comment id="1887467" author="esha.maharishi@10gen.com" created="Wed, 9 May 2018 19:49:30 +0000"  >&lt;p&gt;Yeah, actually that code in appendMajorityWriteConcern() is correct anyway (I realized when trying to repro) - passing the entire writeConcern object preserves the client&apos;s wtimeout.&lt;/p&gt;

&lt;p&gt;Handing this off to storage (it may need to be passed to repl) to investigate the issue on non-sharded replica sets.&lt;/p&gt;</comment>
                            <comment id="1887311" author="esha.maharishi@10gen.com" created="Wed, 9 May 2018 17:58:35 +0000"  >&lt;p&gt;Oh, hm, I just assumed it was about mongos since Kal assigned it to me... Ok, this may be a storage issue (in addition to the sharding one), then.&lt;/p&gt;</comment>
                            <comment id="1887296" author="shane.harvey" created="Wed, 9 May 2018 17:45:58 +0000"  >&lt;p&gt;I don&apos;t understand. This issue is about dropDatabase on &lt;b&gt;replica sets&lt;/b&gt; but your comment only talks about mongos. Will fixing the appendMajorityWriteConcern() method also fix the replica sets issue?&lt;/p&gt;</comment>
                            <comment id="1887277" author="esha.maharishi@10gen.com" created="Wed, 9 May 2018 17:31:12 +0000"  >&lt;p&gt;This seems like a legitimate and minor/easily fixable bug - mongos passes the user&apos;s writeConcern to the config server (which runs the business logic for dropping the database from the cluster) by &lt;a href=&quot;https://github.com/mongodb/mongo/blob/r3.7.9/src/mongo/s/commands/cluster_drop_database_cmd.cpp#L91&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;calling appendMajorityWriteConcern()&lt;/a&gt;.&#160;However, appendMajorityWriteConcern() &lt;a href=&quot;https://github.com/mongodb/mongo/blob/r3.7.9/src/mongo/db/commands.cpp#L246-L258&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;only propagates&lt;/a&gt;&#160;the wTimeout if the &apos;w&apos; was something other than &apos;majority&apos; (if it was majority, the user&apos;s wTimeout is ignored).&lt;/p&gt;

&lt;p&gt;I&apos;ll fix the method to propagate the wTimeout even if &apos;w&apos; is &apos;majority&apos;, and ensure we have jstest coverage of propagating writeConcern for all commands mongos forwards to the config server.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="541669">TOOLS-2035</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="497625">SERVER-33317</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="741140">SERVER-40712</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1235359">SERVER-46668</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1561159">SERVER-53254</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="541668">SERVER-34922</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1297697">SERVER-47194</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>9.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="15640"><![CDATA[v4.0]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 9 May 2018 17:31:12 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        5 years, 38 weeks 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_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>
                            5 years, 38 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_16465" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Linked BF Score</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>milkie@mongodb.com</customfieldvalue>
            <customfieldvalue>esha.maharishi@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>louis.williams@mongodb.com</customfieldvalue>
            <customfieldvalue>shane.harvey@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|htwzd3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|htoyfr:</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="2320">Storage NYC 2018-05-21</customfieldvalue>
    <customfieldvalue id="2328">Storage NYC 2018-06-04</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;1) disable replication on secondaries&lt;br/&gt;
2) run dropDatabase command with writeConcern:&lt;/p&gt;
{w:&apos;majority&apos;, wtimeout:1}
&lt;p&gt;3) dropDatabase hangs (forever?) instead of raising a wtimeout error&lt;/p&gt;</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|htwllz:</customfieldvalue>

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