<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:44:26 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-58407] Resharding components do not retry on FailedToSatisfyReadPreference when targeting remote shard, leading to server crash</title>
                <link>https://jira.mongodb.org/browse/SERVER-58407</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;There are multiple places where the ReshardingCoordinatorService, ReshardingRecipientService, and ReshardingDonorService attempt to target the primary of a replica set shard:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;ReshardingCoordinatorService when &lt;a href=&quot;https://github.com/mongodb/mongo/blob/32781cd080672c56bc77d53bf6fc49d560bee100/src/mongo/db/s/resharding/resharding_coordinator_service.cpp#L1826-L1857&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;sending the &amp;#95;flushRoutingTableCacheUpdatesWithWriteConcern command to shard participants&lt;/a&gt;.&lt;/li&gt;
	&lt;li&gt;ReshardingCoordinatorService when &lt;a href=&quot;https://github.com/mongodb/mongo/blob/32781cd080672c56bc77d53bf6fc49d560bee100/src/mongo/db/s/resharding/resharding_coordinator_service.cpp#L1864&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;sending the &amp;#95;shardsvrCommitReshardCollection command to shard participants&lt;/a&gt;.&lt;/li&gt;
	&lt;li&gt;ReshardingCoordinatorService when &lt;a href=&quot;https://github.com/mongodb/mongo/blob/32781cd080672c56bc77d53bf6fc49d560bee100/src/mongo/db/s/resharding/resharding_coordinator_service.cpp#L1871&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;sending the &amp;#95;shardsvrAbortReshardCollection command to shard participants&lt;/a&gt;.&lt;/li&gt;
	&lt;li&gt;ReshardingRecipientService when &lt;a href=&quot;https://github.com/mongodb/mongo/blob/32781cd080672c56bc77d53bf6fc49d560bee100/src/mongo/db/s/resharding/resharding_recipient_service.cpp#L879&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;updating its entry in the coordinator&apos;s config.reshardingOperations state document&lt;/a&gt;.&lt;/li&gt;
	&lt;li&gt;ReshardingDonorService when &lt;a href=&quot;https://github.com/mongodb/mongo/blob/32781cd080672c56bc77d53bf6fc49d560bee100/src/mongo/db/s/resharding/resharding_donor_service.cpp#L895&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;updating its entry in the coordinator&apos;s config.reshardingOperations state document&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Internally, these function calls &lt;a href=&quot;https://github.com/mongodb/mongo/blob/32781cd080672c56bc77d53bf6fc49d560bee100/src/mongo/s/client/shard_remote.cpp#L263&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;go through RemoteCommandTargeterRS::findHost()&lt;/a&gt; and &lt;a href=&quot;https://github.com/mongodb/mongo/blob/32781cd080672c56bc77d53bf6fc49d560bee100/src/mongo/client/replica_set_monitor_interface.h#L56&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;will throw a FailedToSatisfyReadPreference after &lt;tt&gt;kDefaultFindHostTimeout&lt;/tt&gt; 15 seconds&lt;/a&gt; if a primary is unavailable on the remote shard. This exception is caught and leads to an fassert() because, for example, it would be invalid for the participant shards to complete the resharding operation without performing a w:majority on the config server primary.&lt;/p&gt;

&lt;p&gt;The resharding components should instead wait until a primary becomes available on the remote shard to avoid triggering this fassert().&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;   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;[j0:s0:n1] {&quot;t&quot;:{&quot;$date&quot;:&quot;2021-10-19T13:17:33.440+00:00&quot;},&quot;s&quot;:&quot;I&quot;,  &quot;c&quot;:&quot;RESHARD&quot;,  &quot;id&quot;:5279506, &quot;ctx&quot;:&quot;ReshardingRecipientService-4&quot;,&quot;msg&quot;:&quot;Transitioned resharding recipient state&quot;,&quot;attr&quot;:{&quot;newState&quot;:&quot;applying&quot;,&quot;oldState&quot;:&quot;cloning&quot;,&quot;namespace&quot;:&quot;test1_fsmdb0.fsmcoll0&quot;,&quot;collectionUUID&quot;:{&quot;uuid&quot;:{&quot;$uuid&quot;:&quot;04cb2914-75ec-4b6c-a4df-f416c22459c7&quot;}},&quot;reshardingUUID&quot;:{&quot;uuid&quot;:{&quot;$uuid&quot;:&quot;245e08b2-5f20-4530-a87e-1acd0faa2db4&quot;}}}}&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;[j0:s0:n1] {&quot;t&quot;:{&quot;$date&quot;:&quot;2021-10-19T13:17:33.465+00:00&quot;},&quot;s&quot;:&quot;I&quot;,  &quot;c&quot;:&quot;-&quot;,        &quot;id&quot;:4333227, &quot;ctx&quot;:&quot;ReshardingRecipientService-7&quot;,&quot;msg&quot;:&quot;RSM monitoring host in expedited mode until we detect a primary&quot;,&quot;attr&quot;:{&quot;host&quot;:&quot;localhost:20002&quot;,&quot;replicaSet&quot;:&quot;config-rs&quot;}}&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;[j0:s0:n1] {&quot;t&quot;:{&quot;$date&quot;:&quot;2021-10-19T13:17:33.465+00:00&quot;},&quot;s&quot;:&quot;I&quot;,  &quot;c&quot;:&quot;-&quot;,        &quot;id&quot;:4333227, &quot;ctx&quot;:&quot;ReshardingRecipientService-7&quot;,&quot;msg&quot;:&quot;RSM monitoring host in expedited mode until we detect a primary&quot;,&quot;attr&quot;:{&quot;host&quot;:&quot;localhost:20000&quot;,&quot;replicaSet&quot;:&quot;config-rs&quot;}}&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;[j0:s0:n1] {&quot;t&quot;:{&quot;$date&quot;:&quot;2021-10-19T13:17:33.465+00:00&quot;},&quot;s&quot;:&quot;I&quot;,  &quot;c&quot;:&quot;-&quot;,        &quot;id&quot;:4333218, &quot;ctx&quot;:&quot;ReshardingRecipientService-7&quot;,&quot;msg&quot;:&quot;Rescheduling the next replica set monitoring request&quot;,&quot;attr&quot;:{&quot;replicaSet&quot;:&quot;config-rs&quot;,&quot;host&quot;:&quot;localhost:20000&quot;,&quot;delayMillis&quot;:0}}&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;[j0:s0:n1] {&quot;t&quot;:{&quot;$date&quot;:&quot;2021-10-19T13:17:33.465+00:00&quot;},&quot;s&quot;:&quot;I&quot;,  &quot;c&quot;:&quot;-&quot;,        &quot;id&quot;:4333227, &quot;ctx&quot;:&quot;ReshardingRecipientService-7&quot;,&quot;msg&quot;:&quot;RSM monitoring host in expedited mode until we detect a primary&quot;,&quot;attr&quot;:{&quot;host&quot;:&quot;localhost:20001&quot;,&quot;replicaSet&quot;:&quot;config-rs&quot;}}&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;[j0:s0:n1] {&quot;t&quot;:{&quot;$date&quot;:&quot;2021-10-19T13:17:48.465+00:00&quot;},&quot;s&quot;:&quot;I&quot;,  &quot;c&quot;:&quot;RESHARD&quot;,  &quot;id&quot;:4956500, &quot;ctx&quot;:&quot;ReshardingRecipientService-7&quot;,&quot;msg&quot;:&quot;Resharding operation recipient state machine failed&quot;,&quot;attr&quot;:{&quot;namespace&quot;:&quot;test1_fsmdb0.fsmcoll0&quot;,&quot;reshardingUUID&quot;:{&quot;uuid&quot;:{&quot;$uuid&quot;:&quot;245e08b2-5f20-4530-a87e-1acd0faa2db4&quot;}},&quot;error&quot;:&quot;FailedToSatisfyReadPreference: Could not find host matching read preference { mode: \&quot;primary\&quot; } for set config-rs&quot;}}&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;[j0:s0:n1] {&quot;t&quot;:{&quot;$date&quot;:&quot;2021-10-19T13:17:48.466+00:00&quot;},&quot;s&quot;:&quot;I&quot;,  &quot;c&quot;:&quot;RESHARD&quot;,  &quot;id&quot;:5279506, &quot;ctx&quot;:&quot;ReshardingRecipientService-7&quot;,&quot;msg&quot;:&quot;Transitioned resharding recipient state&quot;,&quot;attr&quot;:{&quot;newState&quot;:&quot;error&quot;,&quot;oldState&quot;:&quot;applying&quot;,&quot;namespace&quot;:&quot;test1_fsmdb0.fsmcoll0&quot;,&quot;collectionUUID&quot;:{&quot;uuid&quot;:{&quot;$uuid&quot;:&quot;04cb2914-75ec-4b6c-a4df-f416c22459c7&quot;}},&quot;reshardingUUID&quot;:{&quot;uuid&quot;:{&quot;$uuid&quot;:&quot;245e08b2-5f20-4530-a87e-1acd0faa2db4&quot;}}}}&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;[j0:s0:n1] {&quot;t&quot;:{&quot;$date&quot;:&quot;2021-10-19T13:18:03.470+00:00&quot;},&quot;s&quot;:&quot;F&quot;,  &quot;c&quot;:&quot;RESHARD&quot;,  &quot;id&quot;:5551101, &quot;ctx&quot;:&quot;ReshardingRecipientService-5&quot;,&quot;msg&quot;:&quot;Unrecoverable error occurred past the point recipient was prepared to complete the resharding operation&quot;,&quot;attr&quot;:{&quot;error&quot;:&quot;FailedToSatisfyReadPreference: Could not find host matching read preference { mode: \&quot;primary\&quot; } for set config-rs&quot;}}&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;[j0:s0:n1] {&quot;t&quot;:{&quot;$date&quot;:&quot;2021-10-19T13:18:03.470+00:00&quot;},&quot;s&quot;:&quot;F&quot;,  &quot;c&quot;:&quot;ASSERT&quot;,   &quot;id&quot;:23089,   &quot;ctx&quot;:&quot;ReshardingRecipientService-5&quot;,&quot;msg&quot;:&quot;Fatal assertion&quot;,&quot;attr&quot;:{&quot;msgid&quot;:5551101,&quot;file&quot;:&quot;src/mongo/db/s/resharding/resharding_recipient_service.cpp&quot;,&quot;line&quot;:412}}&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;[j0:s0:n1] {&quot;t&quot;:{&quot;$date&quot;:&quot;2021-10-19T13:18:03.470+00:00&quot;},&quot;s&quot;:&quot;F&quot;,  &quot;c&quot;:&quot;ASSERT&quot;,   &quot;id&quot;:23090,   &quot;ctx&quot;:&quot;ReshardingRecipientService-5&quot;,&quot;msg&quot;:&quot;\n\n***aborting after fassert() failure\n\n&quot;}&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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-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;[j0:s0:n1] {&quot;t&quot;:{&quot;$date&quot;:&quot;2021-10-19T13:18:03.470+00:00&quot;},&quot;s&quot;:&quot;F&quot;,  &quot;c&quot;:&quot;CONTROL&quot;,  &quot;id&quot;:4757800, &quot;ctx&quot;:&quot;ReshardingRecipientService-5&quot;,&quot;msg&quot;:&quot;Writing fatal message&quot;,&quot;attr&quot;:{&quot;message&quot;:&quot;Got signal: 6 (Aborted).\n&quot;}}&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;&lt;a href=&quot;https://logkeeper.mongodb.org/lobster/build/e6cde008d39df341d7eb3b22eff2f45b/test/616ec55854f248304d3ff5b3#bookmarks=0%2C10033%2C10034%2C10035%2C10036%2C10038%2C10039%2C10040%2C10041%2C10054%2C10088%2C593975&amp;amp;f~=100~%28%5C%5Bj0%3As0%3An1%5C%5D%7C%5C%5Bj0%3As1%3An2%5C%5D%29&amp;amp;l=1&amp;amp;shareLine=10033&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://logkeeper.mongodb.org/lobster/build/e6cde008d39df341d7eb3b22eff2f45b/test/616ec55854f248304d3ff5b3#bookmarks=0%2C10033%2C10034%2C10035%2C10036%2C10038%2C10039%2C10040%2C10041%2C10054%2C10088%2C593975&amp;amp;f~=100~%28%5C%5Bj0%3As0%3An1%5C%5D%7C%5C%5Bj0%3As1%3An2%5C%5D%29&amp;amp;l=1&amp;amp;shareLine=10033&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="1813665">SERVER-58407</key>
            <summary>Resharding components do not retry on FailedToSatisfyReadPreference when targeting remote shard, leading to server crash</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="max.hirschhorn@mongodb.com">Max Hirschhorn</assignee>
                                    <reporter username="blake.oler@mongodb.com">Blake Oler</reporter>
                        <labels>
                            <label>PM-234-M3</label>
                            <label>PM-234-T-autocommits</label>
                    </labels>
                <created>Fri, 9 Jul 2021 19:33:37 +0000</created>
                <updated>Sun, 29 Oct 2023 21:51:06 +0000</updated>
                            <resolved>Fri, 22 Oct 2021 00:34:34 +0000</resolved>
                                                    <fixVersion>5.2.0</fixVersion>
                    <fixVersion>5.0.4</fixVersion>
                    <fixVersion>5.1.0-rc2</fixVersion>
                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="4141707" author="xgen-internal-githook" created="Fri, 22 Oct 2021 12:30:18 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Max Hirschhorn&apos;, &apos;email&apos;: &apos;max.hirschhorn@mongodb.com&apos;, &apos;username&apos;: &apos;visemet&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-58407&quot; title=&quot;Resharding components do not retry on FailedToSatisfyReadPreference when targeting remote shard, leading to server crash&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-58407&quot;&gt;&lt;del&gt;SERVER-58407&lt;/del&gt;&lt;/a&gt; Retry on FailedToSatisfyReadPreference in resharding.&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 03bec439f7c1ce1d8242de40eea130d9a3518a28)&lt;br/&gt;
Branch: v5.1&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/d9defb747d56367b77a326b81e80bb9091bceefb&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/d9defb747d56367b77a326b81e80bb9091bceefb&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4141705" author="xgen-internal-githook" created="Fri, 22 Oct 2021 12:28:57 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Max Hirschhorn&apos;, &apos;email&apos;: &apos;max.hirschhorn@mongodb.com&apos;, &apos;username&apos;: &apos;visemet&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-58407&quot; title=&quot;Resharding components do not retry on FailedToSatisfyReadPreference when targeting remote shard, leading to server crash&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-58407&quot;&gt;&lt;del&gt;SERVER-58407&lt;/del&gt;&lt;/a&gt; Retry on FailedToSatisfyReadPreference in resharding.&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 03bec439f7c1ce1d8242de40eea130d9a3518a28)&lt;br/&gt;
Branch: v5.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/698ac509069bf246f497e07e1e6aa0ad8a949ac3&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/698ac509069bf246f497e07e1e6aa0ad8a949ac3&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4140576" author="xgen-internal-githook" created="Fri, 22 Oct 2021 00:30:57 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Max Hirschhorn&apos;, &apos;email&apos;: &apos;max.hirschhorn@mongodb.com&apos;, &apos;username&apos;: &apos;visemet&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-58407&quot; title=&quot;Resharding components do not retry on FailedToSatisfyReadPreference when targeting remote shard, leading to server crash&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-58407&quot;&gt;&lt;del&gt;SERVER-58407&lt;/del&gt;&lt;/a&gt; Retry on FailedToSatisfyReadPreference in resharding.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/03bec439f7c1ce1d8242de40eea130d9a3518a28&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/03bec439f7c1ce1d8242de40eea130d9a3518a28&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4140531" author="max.hirschhorn@10gen.com" created="Thu, 21 Oct 2021 23:51:56 +0000"  >&lt;p&gt;I&apos;ve gone ahead and updated the ticket description with an example of the recipient shard not retrying on FailedToSatisfyReadPreference while the config server primary is unavailable leads to the recipient shard crashing.&lt;/p&gt;</comment>
                            <comment id="3962869" author="blake.oler" created="Mon, 26 Jul 2021 14:52:19 +0000"  >&lt;p&gt;I don&apos;t remember at the moment, but it&apos;s most likely stemming from trying to send commands to remote shards. I&apos;ll be sure to update once I see it again. &lt;/p&gt;</comment>
                            <comment id="3960346" author="max.hirschhorn@10gen.com" created="Fri, 23 Jul 2021 17:32:57 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=blake.oler&quot; class=&quot;user-hover&quot; rel=&quot;blake.oler&quot;&gt;blake.oler&lt;/a&gt;, could you clarify from which component you had observed a FailedToSatisfyReadPreference exception?&lt;/p&gt;

&lt;p&gt;Similar to &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-58389&quot; title=&quot;Capture NetworkInterfaceExceededTimeLimit and MaxTimeMSExpired errors in resharding participants&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-58389&quot;&gt;&lt;del&gt;SERVER-58389&lt;/del&gt;&lt;/a&gt;, my preference would be to have resharding wait an indefinite amount of time for the replica set monitor to yield a suitable host rather than retrying. This way the error Status is avoided entirely.&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="1780667">SERVER-57686</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="1891770">SERVER-60495</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </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_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="22495"><![CDATA[v5.1]]></customfieldvalue>
    <customfieldvalue key="21777"><![CDATA[v5.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>Fri, 23 Jul 2021 17:32:57 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        2 years, 15 weeks, 5 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_17050" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Downstream Team Attention</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16941"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-234</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, 15 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>blake.oler@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>max.hirschhorn@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzrdtj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hzbotr:</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="5224">Sharding 2021-11-01</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10555" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Story Points</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</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|hzr02n:</customfieldvalue>

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