<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:54: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>[SERVER-20577] Shell should default to read concern majority if connected to a config server replica set</title>
                <link>https://jira.mongodb.org/browse/SERVER-20577</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;3.1.8 introduced majority read concern and therefore also config servers as replica sets. When using config servers as replica sets, a mongos will use majority read concern for all reads of the config servers.&lt;/p&gt;

&lt;p&gt;It is easy to imagine a scenario where a DBA connects with the shell to the config server replset, maybe to diagnose some problem that&apos;s occuring in the sharded cluster. If the DBA doesn&apos;t specifically remember to set the read concern, he will use the default read concern and see a different snapshot of the config database than what the mongoses are actually operating on. If there is some network problem that has prevented majority writes from succeeding for the past few minutes, this difference could be significant.&lt;/p&gt;

&lt;p&gt;Proposal is for the shell to recognize when it is connecting to a config server replica set, and automatically set read concern majority for the connection. The shell must print a notification to user about doing this.&lt;/p&gt;</description>
                <environment></environment>
        <key id="231167">SERVER-20577</key>
            <summary>Shell should default to read concern majority if connected to a config server replica set</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="9">Done</resolution>
                                        <assignee username="backlog-server-sharding-nyc">[DO NOT USE] Backlog - Sharding NYC</assignee>
                                    <reporter username="henrik.ingo@mongodb.com">Henrik Ingo</reporter>
                        <labels>
                    </labels>
                <created>Wed, 23 Sep 2015 16:07:30 +0000</created>
                <updated>Tue, 6 Dec 2022 04:43:48 +0000</updated>
                            <resolved>Mon, 15 Nov 2021 15:53:56 +0000</resolved>
                                    <version>3.1.8</version>
                                    <fixVersion>features we&amp;#39;re not sure of</fixVersion>
                                    <component>Shell</component>
                                        <votes>1</votes>
                                    <watches>12</watches>
                                                                                                                <comments>
                            <comment id="1351509" author="henrik.ingo@10gen.com" created="Tue, 9 Aug 2016 15:20:21 +0000"  >&lt;blockquote&gt;
&lt;p&gt;I propose to close this ticket &quot;Works as Designed&quot;, &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=henrik.ingo&quot; class=&quot;user-hover&quot; rel=&quot;henrik.ingo&quot;&gt;henrik.ingo&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;That looks like a question or request for feedback? My answer is that I don&apos;t strongly object. &lt;/p&gt;

&lt;p&gt;I filed this ticket as a &quot;first reaction&quot; kind of thing when CSRS were new, but it is true changing the default is not a straightforward thing to do. I think your comment and Scott&apos;s first comment are good examples of the &quot;what about&quot; questions that will arise.&lt;/p&gt;</comment>
                            <comment id="1350816" author="schwerin" created="Mon, 8 Aug 2016 21:53:45 +0000"  >&lt;p&gt;I do not think we should change the shell&apos;s behavior in this scenario, either for reads or writes. For one thing, the DBA should typically connect to a mongos when querying config data, and I do not believe it makes sense to have the read and write concern change based on the name of the database you&apos;re examining. For another, if you&apos;re running a CSRS with trouble committing majority writes, you might also be running one that has &lt;b&gt;no&lt;/b&gt; committed snapshot available (say you just restarted it, in the 3.2 and 3.4 implementations, e.g.).&lt;/p&gt;

&lt;p&gt;I propose to close this ticket &quot;Works as Designed&quot;, &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=henrik.ingo&quot; class=&quot;user-hover&quot; rel=&quot;henrik.ingo&quot;&gt;henrik.ingo&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="1341878" author="spencer" created="Fri, 29 Jul 2016 20:53:04 +0000"  >&lt;p&gt;I also wonder if it makes sense to do this server side rather than in the shell?  ie if a config server gets a read that does not specify a read concern, default to using read concern majority?&lt;/p&gt;</comment>
                            <comment id="1341870" author="spencer" created="Fri, 29 Jul 2016 20:50:40 +0000"  >&lt;p&gt;I think if we do this, we need to also make the default for all writes to the config servers use w:majority write concern, otherwise a user who writes to the config server (to set a balancer window or change the chunk size, for example) then goes to read may not read their own writes.&lt;/p&gt;</comment>
                            <comment id="1041782" author="ppkrauss" created="Thu, 24 Sep 2015 10:19:34 +0000"  >&lt;p&gt;Need `stdin`, see &lt;a href=&quot;http://stackoverflow.com/q/11333248/287948&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://stackoverflow.com/q/11333248/287948&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1041001" author="scotthernandez" created="Wed, 23 Sep 2015 16:12:35 +0000"  >&lt;p&gt;You might want to make the same argument for all clients/tools... like mongodump.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="305196">SERVER-25357</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="295974">SERVER-24738</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>6.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25134"><![CDATA[Sharding NYC]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 23 Sep 2015 16:12:35 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        7 years, 27 weeks, 1 day 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>alexander.golin@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            7 years, 27 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>backlog-server-sharding-nyc</customfieldvalue>
            <customfieldvalue>schwerin@mongodb.com</customfieldvalue>
            <customfieldvalue>henrik.ingo@mongodb.com</customfieldvalue>
            <customfieldvalue>ppkrauss</customfieldvalue>
            <customfieldvalue>scotthernandez</customfieldvalue>
            <customfieldvalue>spencer@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrktvb:</customfieldvalue>

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

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