<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 06:05:32 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-66471] 5.0 mongos  write hangs on PSA shard after second is shutdown</title>
                <link>https://jira.mongodb.org/browse/SERVER-66471</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;hello:&lt;br/&gt;
    i read doc,mongo 5.0 PSA default writeConcern is w:1. so i test it ok on PSA replication after second is shutdown.but i test write hangs on cluster.so defaultwriteconcern on mongos cluster is not w:1,on psa replication is w:1.please is it bug for mongos?&lt;/p&gt;


&lt;p&gt;if [ (#arbiters &amp;gt; 0) AND (#non-arbiters &amp;lt;= majority(#voting-nodes)) ]&lt;br/&gt;
    defaultWriteConcern = &lt;/p&gt;
{ w: 1 }
&lt;p&gt;else&lt;br/&gt;
    defaultWriteConcern = &lt;/p&gt;
{ w: &quot;majority&quot; }

&lt;p&gt;To reproduce on psa replication:&lt;br/&gt;
shard2:PRIMARY&amp;gt; version()&lt;br/&gt;
5.0.2&lt;br/&gt;
shard2:PRIMARY&amp;gt; status.members.length&lt;br/&gt;
shard2:PRIMARY&amp;gt; status.members&lt;span class=&quot;error&quot;&gt;&amp;#91;0&amp;#93;&lt;/span&gt;.stateStr&lt;br/&gt;
PRIMARY&lt;br/&gt;
shard2:PRIMARY&amp;gt; status.members&lt;span class=&quot;error&quot;&gt;&amp;#91;1&amp;#93;&lt;/span&gt;.stateStr&lt;br/&gt;
(not reachable/healthy)&lt;br/&gt;
shard2:PRIMARY&amp;gt; status.members&lt;span class=&quot;error&quot;&gt;&amp;#91;2&amp;#93;&lt;/span&gt;.stateStr&lt;br/&gt;
ARBITER&lt;br/&gt;
shard2:PRIMARY&amp;gt; db.xiaoxu.insert(&lt;/p&gt;
{testWriteConcer:1}
&lt;p&gt;)&lt;br/&gt;
WriteResult(&lt;/p&gt;
{ &quot;nInserted&quot; : 1 }
&lt;p&gt;)&lt;/p&gt;

&lt;p&gt;To reproduce using mongos on single psa shard,it not wok.&lt;br/&gt;
mongo cluster has one mongos,single psa shard,and one member config,when psa with secondary is shutdown.it write hangs.&lt;/p&gt;

&lt;p&gt;mongos&amp;gt; db.testWriteConcern.insert({_id:10,name:&quot;xiaoxu&quot;},&lt;/p&gt;
{w:1}
&lt;p&gt;)&lt;br/&gt;
WriteResult(&lt;/p&gt;
{ &quot;nInserted&quot; : 1 }
&lt;p&gt;)&lt;/p&gt;

&lt;p&gt;it is not nerver timeout when no timeout&lt;br/&gt;
mongos&amp;gt; db.testWriteConcern.insert({_id:3,name:&quot;xiaoxu&quot;}).&lt;br/&gt;
.....&lt;/p&gt;

&lt;p&gt;anon@127.0.0.1:31002:PRIMARY:&lt;span class=&quot;error&quot;&gt;&amp;#91;db&amp;#93;&lt;/span&gt;test&amp;gt; rs.status();&lt;br/&gt;
{&lt;br/&gt;
        &quot;set&quot; : &quot;shard2&quot;,&lt;br/&gt;
        &quot;date&quot; : ISODate(&quot;2022-05-16T06:09:18.876Z&quot;),&lt;br/&gt;
        &quot;myState&quot; : 1,&lt;br/&gt;
        &quot;term&quot; : NumberLong(5),&lt;br/&gt;
        &quot;syncSourceHost&quot; : &quot;&quot;,&lt;br/&gt;
        &quot;syncSourceId&quot; : -1,&lt;br/&gt;
        &quot;heartbeatIntervalMillis&quot; : NumberLong(2000),&lt;br/&gt;
        &quot;majorityVoteCount&quot; : 2,&lt;br/&gt;
        &quot;writeMajorityCount&quot; : 2,&lt;br/&gt;
        &quot;votingMembersCount&quot; : 3,&lt;br/&gt;
        &quot;writableVotingMembersCount&quot; : 2,&lt;br/&gt;
        &quot;optimes&quot; : {&lt;br/&gt;
                &quot;lastCommittedOpTime&quot; : &lt;/p&gt;
{
                        &quot;ts&quot; : Timestamp(1652671774, 1),
                        &quot;t&quot; : NumberLong(5)
                }
&lt;p&gt;,&lt;br/&gt;
                &quot;lastCommittedWallTime&quot; : ISODate(&quot;2022-05-16T03:29:34.156Z&quot;),&lt;br/&gt;
                &quot;readConcernMajorityOpTime&quot; : &lt;/p&gt;
{
                        &quot;ts&quot; : Timestamp(1652671774, 1),
                        &quot;t&quot; : NumberLong(5)
                }
&lt;p&gt;,&lt;br/&gt;
                &quot;appliedOpTime&quot; : &lt;/p&gt;
{
                        &quot;ts&quot; : Timestamp(1652681354, 1),
                        &quot;t&quot; : NumberLong(5)
                }
&lt;p&gt;,&lt;br/&gt;
                &quot;durableOpTime&quot; : &lt;/p&gt;
{
                        &quot;ts&quot; : Timestamp(1652681354, 1),
                        &quot;t&quot; : NumberLong(5)
                }
&lt;p&gt;,&lt;br/&gt;
                &quot;lastAppliedWallTime&quot; : ISODate(&quot;2022-05-16T06:09:14.351Z&quot;),&lt;br/&gt;
                &quot;lastDurableWallTime&quot; : ISODate(&quot;2022-05-16T06:09:14.351Z&quot;)&lt;br/&gt;
        },&lt;br/&gt;
        &quot;lastStableRecoveryTimestamp&quot; : Timestamp(1652671774, 1),&lt;br/&gt;
        &quot;electionCandidateMetrics&quot; : {&lt;br/&gt;
                &quot;lastElectionReason&quot; : &quot;electionTimeout&quot;,&lt;br/&gt;
                &quot;lastElectionDate&quot; : ISODate(&quot;2022-05-16T03:17:24.137Z&quot;),&lt;br/&gt;
                &quot;electionTerm&quot; : NumberLong(5),&lt;br/&gt;
                &quot;lastCommittedOpTimeAtElection&quot; : &lt;/p&gt;
{
                        &quot;ts&quot; : Timestamp(1652671027, 1),
                        &quot;t&quot; : NumberLong(3)
                }
&lt;p&gt;,&lt;br/&gt;
                &quot;lastSeenOpTimeAtElection&quot; : &lt;/p&gt;
{
                        &quot;ts&quot; : Timestamp(1652671027, 1),
                        &quot;t&quot; : NumberLong(3)
                }
&lt;p&gt;,&lt;br/&gt;
                &quot;numVotesNeeded&quot; : 2,&lt;br/&gt;
                &quot;priorityAtElection&quot; : 1,&lt;br/&gt;
                &quot;electionTimeoutMillis&quot; : NumberLong(10000),&lt;br/&gt;
                &quot;numCatchUpOps&quot; : NumberLong(0),&lt;br/&gt;
                &quot;newTermStartDate&quot; : ISODate(&quot;2022-05-16T03:17:24.143Z&quot;),&lt;br/&gt;
                &quot;wMajorityWriteAvailabilityDate&quot; : ISODate(&quot;2022-05-16T03:17:24.780Z&quot;)&lt;br/&gt;
        },&lt;br/&gt;
        &quot;electionParticipantMetrics&quot; : {&lt;br/&gt;
                &quot;votedForCandidate&quot; : true,&lt;br/&gt;
                &quot;electionTerm&quot; : NumberLong(3),&lt;br/&gt;
                &quot;lastVoteDate&quot; : ISODate(&quot;2022-05-16T03:15:47.936Z&quot;),&lt;br/&gt;
                &quot;electionCandidateMemberId&quot; : 0,&lt;br/&gt;
                &quot;voteReason&quot; : &quot;&quot;,&lt;br/&gt;
                &quot;lastAppliedOpTimeAtElection&quot; : &lt;/p&gt;
{
                        &quot;ts&quot; : Timestamp(1652590596, 1),
                        &quot;t&quot; : NumberLong(2)
                }
&lt;p&gt;,&lt;br/&gt;
                &quot;maxAppliedOpTimeInSet&quot; : &lt;/p&gt;
{
                        &quot;ts&quot; : Timestamp(1652670907, 1),
                        &quot;t&quot; : NumberLong(2)
                }
&lt;p&gt;,&lt;br/&gt;
                &quot;priorityAtElection&quot; : 1&lt;br/&gt;
        },&lt;br/&gt;
        &quot;members&quot; : [&lt;br/&gt;
                {&lt;br/&gt;
                        &quot;_id&quot; : 0,&lt;br/&gt;
                        &quot;name&quot; : &quot;10.230.10.150:31002&quot;,&lt;br/&gt;
                        &quot;health&quot; : 0,&lt;br/&gt;
                        &quot;state&quot; : 8,&lt;br/&gt;
                        &quot;stateStr&quot; : &quot;(not reachable/healthy)&quot;,&lt;br/&gt;
                        &quot;uptime&quot; : 0,&lt;br/&gt;
                        &quot;optime&quot; : &lt;/p&gt;
{
                                &quot;ts&quot; : Timestamp(0, 0),
                                &quot;t&quot; : NumberLong(-1)
                        }
&lt;p&gt;,&lt;br/&gt;
                        &quot;optimeDurable&quot; : &lt;/p&gt;
{
                                &quot;ts&quot; : Timestamp(0, 0),
                                &quot;t&quot; : NumberLong(-1)
                        }
&lt;p&gt;,&lt;br/&gt;
                        &quot;optimeDate&quot; : ISODate(&quot;1970-01-01T00:00:00Z&quot;),&lt;br/&gt;
                        &quot;optimeDurableDate&quot; : ISODate(&quot;1970-01-01T00:00:00Z&quot;),&lt;br/&gt;
                        &quot;lastHeartbeat&quot; : ISODate(&quot;2022-05-16T06:09:18.627Z&quot;),&lt;br/&gt;
                        &quot;lastHeartbeatRecv&quot; : ISODate(&quot;2022-05-16T03:29:34.936Z&quot;),&lt;br/&gt;
                        &quot;pingMs&quot; : NumberLong(0),&lt;br/&gt;
                        &quot;lastHeartbeatMessage&quot; : &quot;Error connecting to 10.130.10.150:31002 :: caused by :: Connection refused&quot;,&lt;br/&gt;
                        &quot;syncSourceHost&quot; : &quot;&quot;,&lt;br/&gt;
                        &quot;syncSourceId&quot; : -1,&lt;br/&gt;
                        &quot;infoMessage&quot; : &quot;&quot;,&lt;br/&gt;
                        &quot;configVersion&quot; : 4,&lt;br/&gt;
                        &quot;configTerm&quot; : 5&lt;br/&gt;
                },&lt;br/&gt;
                {&lt;br/&gt;
                        &quot;_id&quot; : 1,&lt;br/&gt;
                        &quot;name&quot; : &quot;10.230.10.149:31002&quot;,&lt;br/&gt;
                        &quot;health&quot; : 1,&lt;br/&gt;
                        &quot;state&quot; : 1,&lt;br/&gt;
                        &quot;stateStr&quot; : &quot;PRIMARY&quot;,&lt;br/&gt;
                        &quot;uptime&quot; : 10413,&lt;br/&gt;
                        &quot;optime&quot; : &lt;/p&gt;
{
                                &quot;ts&quot; : Timestamp(1652681354, 1),
                                &quot;t&quot; : NumberLong(5)
                        }
&lt;p&gt;,&lt;br/&gt;
                        &quot;optimeDate&quot; : ISODate(&quot;2022-05-16T06:09:14Z&quot;),&lt;br/&gt;
                        &quot;syncSourceHost&quot; : &quot;&quot;,&lt;br/&gt;
                        &quot;syncSourceId&quot; : -1,&lt;br/&gt;
                        &quot;infoMessage&quot; : &quot;&quot;,&lt;br/&gt;
                        &quot;electionTime&quot; : Timestamp(1652671044, 1),&lt;br/&gt;
                        &quot;electionDate&quot; : ISODate(&quot;2022-05-16T03:17:24Z&quot;),&lt;br/&gt;
                        &quot;configVersion&quot; : 4,&lt;br/&gt;
                        &quot;configTerm&quot; : 5,&lt;br/&gt;
                        &quot;self&quot; : true,&lt;br/&gt;
                        &quot;lastHeartbeatMessage&quot; : &quot;&quot;&lt;br/&gt;
                },&lt;/p&gt;
                {
                        &quot;_id&quot; : 2,
                        &quot;name&quot; : &quot;10.230.9.150:31002&quot;,
                        &quot;health&quot; : 1,
                        &quot;state&quot; : 7,
                        &quot;stateStr&quot; : &quot;ARBITER&quot;,
                        &quot;uptime&quot; : 10400,
                        &quot;lastHeartbeat&quot; : ISODate(&quot;2022-05-16T06:09:18.161Z&quot;),
                        &quot;lastHeartbeatRecv&quot; : ISODate(&quot;2022-05-16T06:09:18.167Z&quot;),
                        &quot;pingMs&quot; : NumberLong(0),
                        &quot;lastHeartbeatMessage&quot; : &quot;&quot;,
                        &quot;syncSourceHost&quot; : &quot;&quot;,
                        &quot;syncSourceId&quot; : -1,
                        &quot;infoMessage&quot; : &quot;&quot;,
                        &quot;configVersion&quot; : 4,
                        &quot;configTerm&quot; : 5
                }
&lt;p&gt;        ],&lt;br/&gt;
        &quot;ok&quot; : 1,&lt;/p&gt;




</description>
                <environment></environment>
        <key id="2046960">SERVER-66471</key>
            <summary>5.0 mongos  write hangs on PSA shard after second is shutdown</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="2">Won&apos;t Fix</resolution>
                                        <assignee username="ali.mir@mongodb.com">Ali Mir</assignee>
                                    <reporter username="601290552@qq.com">jing xu</reporter>
                        <labels>
                    </labels>
                <created>Mon, 16 May 2022 06:18:49 +0000</created>
                <updated>Mon, 7 Nov 2022 21:31:23 +0000</updated>
                            <resolved>Mon, 7 Nov 2022 21:31:23 +0000</resolved>
                                                                                        <votes>1</votes>
                                    <watches>8</watches>
                                                                                                                <comments>
                            <comment id="4961005" author="ali.mir" created="Mon, 7 Nov 2022 21:30:40 +0000"  >&lt;p&gt;Hey there &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=601290552%40qq.com&quot; class=&quot;user-hover&quot; rel=&quot;601290552@qq.com&quot;&gt;601290552@qq.com&lt;/a&gt;! Thanks for this ticket. I&apos;m on the replication team here at MongoDB, and we worked on updating the write concern default to w: &quot;majority&quot; in 5.0.&lt;/p&gt;

&lt;p&gt;Please note that this bug around sharded clusters and PSA sets has been fixed in future versions of MongoDB. If you upgrade to 6.0, you will not see this issue. In later versions, if you attempt to start a sharded cluster with any shard that is a PSA set, you&apos;ll receive an error on startup. To avoid the error, you&apos;ll need to set a cluster wide write concern via the &lt;a href=&quot;https://www.mongodb.com/docs/manual/reference/command/setDefaultRWConcern/#std-label-set_global_default_write_concern&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;setDefaultRWConcern&lt;/a&gt; command (as &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=chris.kelly%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;chris.kelly@mongodb.com&quot;&gt;chris.kelly@mongodb.com&lt;/a&gt; mentioned).&lt;/p&gt;

&lt;p&gt;To get around this issue on 5.0.2, please follow the steps outlined by Chris. Namely, you should set the CWWC with:&lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;db.adminCommand( {setDefaultRWConcern: 1, defaultWriteConcern:{w:1}})&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;
&lt;p&gt;to set a default of w:1 for the cluster. &lt;/p&gt;

&lt;p&gt;I&apos;m going to close out this ticket, but feel free to reply with any additional questions. Thanks!&lt;/p&gt;</comment>
                            <comment id="4592866" author="JIRAUSER1265262" created="Fri, 3 Jun 2022 14:00:36 +0000"  >&lt;p&gt;Hi Jing,&lt;/p&gt;

&lt;p&gt;Thank you for your report! I went ahead and replicated your situation by creating a 2 shard cluster with a&#160; primary, secondary, and arbiter in each shard. I shut down the secondary on shard #2 and attempted your query on mongos.&#160;&lt;/p&gt;

&lt;p&gt;When you run:&lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&#160;db.test.insert({&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&quot;test&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;: &lt;/span&gt;&lt;span style=&quot;color: #009900; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;})&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;
&lt;p&gt;&#160;before shutting down a secondary node on shard #2, it will work.&lt;/p&gt;

&lt;p&gt;After secondary on shard #2 is stopped, the query will hang.&lt;/p&gt;

&lt;p&gt;If you run the query specifying writeConcern: 1 instead on mongos, it will work:&lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;db.test.insert({&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&quot;test&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #009900; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;}, {writeConcern: {w:&lt;/span&gt;&lt;span style=&quot;color: #009900; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;}} )&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;
&lt;p&gt;However, if you &lt;a href=&quot;https://www.mongodb.com/docs/manual/reference/command/setDefaultRWConcern/#mongodb-dbcommand-dbcmd.setDefaultRWConcern&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;run setDefaultRWConcern on mongos&lt;/a&gt;, you can set this to 1 yourself to get it to insert again without specifying it on each query.&lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;db.adminCommand( {setDefaultRWConcern: &lt;/span&gt;&lt;span style=&quot;color: #009900; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;, defaultWriteConcern:{w:&lt;/span&gt;&lt;span style=&quot;color: #009900; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;}})&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;
&lt;p&gt;I will follow up on whether the writeConcern is supposed to be different on mongos by default, regardless of whether arbiters exist on the shards, but you can use this to remediate the hanging for now. &#160;&lt;b&gt;You should also be trying to avoid the use of arbiters if at all possible.&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;Regards.&lt;br/&gt;
Christopher&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="378978" name="image-2022-05-16-14-18-00-561.png" size="52638" author="601290552@qq.com" created="Mon, 16 May 2022 06:18:01 +0000"/>
                            <attachment id="383459" name="screenshot-1.png" size="47715" author="chris.kelly@mongodb.com" created="Tue, 7 Jun 2022 16:57:53 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.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, 3 Jun 2022 14:00:36 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        1 year, 13 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_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>ali.mir@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            1 year, 13 weeks, 2 days ago
                        </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>ali.mir@mongodb.com</customfieldvalue>
            <customfieldvalue>chris.kelly@mongodb.com</customfieldvalue>
            <customfieldvalue>601290552@qq.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i0uwyn:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i0dtnc:</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="6716">Repl 2022-11-14</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>
                                    <customfieldvalue><![CDATA[chris.kelly@mongodb.com]]></customfieldvalue>
    

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

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