<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:38:54 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-35124] Stepdown suites with MMAP V1 often fail due to `flushing mmaps` taking long time</title>
                <link>https://jira.mongodb.org/browse/SERVER-35124</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;On some occasions, right around the time when the &lt;tt&gt;ContinousStepdownThread&lt;/tt&gt; issued a &lt;tt&gt;replSetStepdown&lt;/tt&gt; command, the MMAP V1 storage engine started flushing the file mappings, which took 13 seconds. Since this happens under a lock, the stepdown thread was not able to acquire the global S lock for 10 seconds and failed.&lt;/p&gt;

&lt;p&gt;Here are the relevant logs:&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;[ContinuousStepdown:job0] Stepping down the primary on port 20005 of replica set &apos;shard-rs1&apos;.&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;...&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;[ShardedClusterFixture:job0:shard1:node0] 2018-05-19T00:17:31.286+0000 I STORAGE  [conn70] allocating new ns file \data\db\job0\resmoke\shard1\node0\test.ns, filling with zeroes...&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;[ShardedClusterFixture:job0:shard1:node0] 2018-05-19T00:17:31.494+0000 I STORAGE  [conn70] done allocating ns file \data\db\job0\resmoke\shard1\node0\test.ns, size: 16MB, took 0.208 seconds&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;[ShardedClusterFixture:job0:shard1:node0] 2018-05-19T00:17:31.495+0000 I STORAGE  [FileAllocator] allocating new datafile \data\db\job0\resmoke\shard1\node0\test.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;[ShardedClusterFixture:job0:shard1:node0] 2018-05-19T00:17:31.496+0000 I STORAGE  [FileAllocator] done allocating datafile \data\db\job0\resmoke\shard1\node0\test.0, size: 64MB,  took 0 secs&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;...&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;[ShardedClusterFixture:job0:shard1:node0] 2018-05-19T00:17:31.837+0000 I COMMAND  [conn81] Attempting to step down in response to replSetStepDown command&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;[ShardedClusterFixture:job0:shard1:node0] 2018-05-19T00:17:31.837+0000 I SHARDING [conn70] Failed to refresh databaseVersion for database test :: caused by :: InterruptedDueToReplStateChange: operation was interrupted&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;[ShardedClusterFixture:job0:shard1:node0] 2018-05-19T00:17:31.837+0000 I COMMAND  [conn70] command test.$cmd appName: &quot;MongoDB Shell&quot; command: createIndexes { createIndexes: &quot;jstests_explain_upsert&quot;, indexes: [ { key: { key: 1.0 }, name: &quot;key_1&quot; } ], shardVersion: [ Timestamp(0, 0), ObjectId(&apos;000000000000000000000000&apos;) ], databaseVersion: { uuid: UUID(&quot;c47419a1-e264-48de-99ff-fdfd9f6c0a70&quot;), lastMod: 1 }, allowImplicitCollectionCreation: false, $clusterTime: { clusterTime: Timestamp(1526689051, 9), signature: { hash: BinData(0, FE36970C885D756C5AE540D195D5F97D3CA7BAB4), keyId: 6557079175839088663 } }, $client: { application: { name: &quot;MongoDB Shell&quot; }, driver: { name: &quot;MongoDB Internal Client&quot;, version: &quot;3.7.9-343-g6ab1592260&quot; }, os: { type: &quot;Windows&quot;, name: &quot;Microsoft Windows Server 2008 R2&quot;, architecture: &quot;x86_64&quot;, version: &quot;6.1 SP1 (build 7601)&quot; }, mongos: { host: &quot;WIN-E7OL17UNDC0:20007&quot;, client: &quot;127.0.0.1:55951&quot;, version: &quot;3.7.9-343-g6ab1592260&quot; } }, $configServerState: { opTime: { ts: Timestamp(1526689051, 9), t: 3 } }, $db: &quot;test&quot; } numYields:0 ok:0 errMsg:&quot;don&apos;t know dbVersion&quot; errName:StaleDbVersion errCode:249 reslen:474 locks:{ Global: { acquireCount: { r: 3, w: 1 }, acquireWaitCount: { r: 1 } }, MMAPV1Journal: { acquireCount: { w: 5 } }, Database: { acquireCount: { W: 1 } }, Metadata: { acquireCount: { W: 1 } }, Mutex: { acquireCount: { r: 1, W: 4 } } } protocol:op_msg 551ms&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;...&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;[ShardedClusterFixture:job0:mongos] 2018-05-19T00:17:31.838+0000 I NETWORK  [TaskExecutorPool-0] Marking host localhost:20005 as failed :: caused by :: InterruptedDueToReplStateChange: operation was interrupted&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;...&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;[ShardedClusterFixture:job0:shard1:node0] 2018-05-19T00:17:41.789+0000 D REPL_HB  [replexec-2] Received response to heartbeat (requestId: 66) from localhost:20006, { ok: 1.0, state: 2, v: 2, hbmsg: &quot;&quot;, set: &quot;shard-rs1&quot;, syncingTo: &quot;localhost:20005&quot;, term: 3, primaryId: 0, durableOpTime: { ts: Timestamp(1526689051, 12), t: 3 }, opTime: { ts: Timestamp(1526689051, 12), t: 3 }, operationTime: Timestamp(1526689053, 1), $replData: { term: 3, lastOpCommitted: { ts: Timestamp(1526689043, 1), t: 3 }, lastOpVisible: { ts: Timestamp(1526689043, 1), t: 3 }, configVersion: 2, replicaSetId: ObjectId(&apos;5aff6ce0c38a7d74bfa6bff8&apos;), primaryIndex: 0, syncSourceIndex: 0 }, $gleStats: { lastOpTime: Timestamp(0, 0), electionId: ObjectId(&apos;7fffffff0000000000000002&apos;) }, lastCommittedOpTime: Timestamp(1526689043, 1), $configServerState: { opTime: { ts: Timestamp(1526689041, 21), t: 2 } }, $clusterTime: { clusterTime: Timestamp(1526689053, 1), signature: { hash: BinData(0, 0000000000000000000000000000000000000000), keyId: 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;[ShardedClusterFixture:job0:shard1:node0] 2018-05-19T00:17:41.789+0000 D REPL_HB  [replexec-2] Scheduling heartbeat to localhost:20006 at 2018-05-19T00:17:43.789Z&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;...&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;[ShardedClusterFixture:job0:shard1:node0] 2018-05-19T00:17:41.836+0000 I COMMAND  [conn81] command admin.$cmd command: replSetStepDown { replSetStepDown: 10, force: true, $readPreference: { mode: &quot;secondaryPreferred&quot; }, $db: &quot;admin&quot; } numYields:0 ok:0 errMsg:&quot;Could not acquire the global shared lock within the amount of time specified that we should step down for&quot; errName:ExceededTimeLimit errCode:50 reslen:488 locks:{ Global: { acquireCount: { r: 1, W: 1 }, acquireWaitCount: { W: 1 }, timeAcquiringMicros: { W: 10000225 } } } protocol:op_query 10000ms&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;...&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;[ContinuousStepdown:job0] Error while stepping down the primary on port 20005 of replica set &apos;shard-rs1&apos;.&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;...&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;[ShardedClusterFixture:job0:shard1:node0] 2018-05-19T00:17:43.711+0000 I STORAGE  [DataFileSync] flushing mmaps took 13151ms  for 7 files&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;</description>
                <environment></environment>
        <key id="547161">SERVER-35124</key>
            <summary>Stepdown suites with MMAP V1 often fail due to `flushing mmaps` taking long time</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="kaloian.manassiev@mongodb.com">Kaloian Manassiev</reporter>
                        <labels>
                    </labels>
                <created>Mon, 21 May 2018 16:45:05 +0000</created>
                <updated>Sun, 29 Oct 2023 22:31:36 +0000</updated>
                            <resolved>Sat, 23 Jun 2018 22:43:55 +0000</resolved>
                                                    <fixVersion>3.6.6</fixVersion>
                    <fixVersion>4.0.1</fixVersion>
                    <fixVersion>4.1.1</fixVersion>
                                    <component>Replication</component>
                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="1937489" author="xgen-internal-githook" created="Tue, 3 Jul 2018 03:57:30 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;visemet&apos;, &apos;name&apos;: &apos;Max Hirschhorn&apos;, &apos;email&apos;: &apos;max.hirschhorn@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-35124&quot; title=&quot;Stepdown suites with MMAP V1 often fail due to `flushing mmaps` taking long time&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-35124&quot;&gt;&lt;del&gt;SERVER-35124&lt;/del&gt;&lt;/a&gt; Tolerate replSetStepDown failing in stepdown suites.&lt;/p&gt;

&lt;p&gt;It is possible for a database operation to prevent the global X lock&lt;br/&gt;
from being acquired within 10 seconds. We&apos;ll simply retry 8 seconds&lt;br/&gt;
later.&lt;/p&gt;

&lt;p&gt;(cherry picked from commit d7ed31017007fd5963390247e6ae68714cb6a61c)&lt;br/&gt;
Branch: v3.6&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/393c0da8464d2e3aea20d17168f529c00466d6f3&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/393c0da8464d2e3aea20d17168f529c00466d6f3&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1937488" author="xgen-internal-githook" created="Tue, 3 Jul 2018 03:42:48 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;visemet&apos;, &apos;name&apos;: &apos;Max Hirschhorn&apos;, &apos;email&apos;: &apos;max.hirschhorn@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-35124&quot; title=&quot;Stepdown suites with MMAP V1 often fail due to `flushing mmaps` taking long time&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-35124&quot;&gt;&lt;del&gt;SERVER-35124&lt;/del&gt;&lt;/a&gt; Tolerate replSetStepDown failing in stepdown suites.&lt;/p&gt;

&lt;p&gt;It is possible for a database operation to prevent the global X lock&lt;br/&gt;
from being acquired within 10 seconds. We&apos;ll simply retry 8 seconds&lt;br/&gt;
later.&lt;/p&gt;

&lt;p&gt;(cherry picked from commit d7ed31017007fd5963390247e6ae68714cb6a61c)&lt;br/&gt;
Branch: v4.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/197a39dd137ad5d8bb1315fd3102a7a5791ae631&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/197a39dd137ad5d8bb1315fd3102a7a5791ae631&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1929777" author="xgen-internal-githook" created="Sat, 23 Jun 2018 22:43:36 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;visemet&apos;, &apos;name&apos;: &apos;Max Hirschhorn&apos;, &apos;email&apos;: &apos;max.hirschhorn@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-35124&quot; title=&quot;Stepdown suites with MMAP V1 often fail due to `flushing mmaps` taking long time&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-35124&quot;&gt;&lt;del&gt;SERVER-35124&lt;/del&gt;&lt;/a&gt; Tolerate replSetStepDown failing in stepdown suites.&lt;/p&gt;

&lt;p&gt;It is possible for a database operation to prevent the global X lock&lt;br/&gt;
from being acquired within 10 seconds. We&apos;ll simply retry 8 seconds&lt;br/&gt;
later.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/d7ed31017007fd5963390247e6ae68714cb6a61c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/d7ed31017007fd5963390247e6ae68714cb6a61c&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1916761" author="judah.schvimer" created="Mon, 11 Jun 2018 13:49:30 +0000"  >&lt;p&gt;If we know when we want to be electable again, we could use the &lt;tt&gt;replSetFreeze: 0&lt;/tt&gt; command to make it electable again.&lt;/p&gt;</comment>
                            <comment id="1916717" author="milkie" created="Mon, 11 Jun 2018 13:32:42 +0000"  >&lt;p&gt;You&apos;re right, I forgot I already filed a ticket to fix this: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-35442&quot; title=&quot;stepdown global lock acqusition should use wait time, not freeze time&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-35442&quot;&gt;&lt;del&gt;SERVER-35442&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
In my head it was already fixed..&lt;/p&gt;</comment>
                            <comment id="1916707" author="max.hirschhorn@10gen.com" created="Mon, 11 Jun 2018 13:27:15 +0000"  >&lt;blockquote&gt;
&lt;p&gt;The quote above is from Kal, and I believe he intended to change the secondaryCatchUpPeriodSecs?&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=milkie&quot; class=&quot;user-hover&quot; rel=&quot;milkie&quot;&gt;milkie&lt;/a&gt;, I don&apos;t think so. The linked BF ticket failed due to not being able to acquire the global X lock, which is controlled by the &lt;tt&gt;stepDownForSecs&lt;/tt&gt; value associated with the command name itself.&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;&lt;a href=&quot;https://github.com/mongodb/mongo/blob/0dd1fc7ddde2a489558f5328dce5125bddfb9e4d/src/mongo/db/repl/repl_set_commands.cpp#L503-L504&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/blob/0dd1fc7ddde2a489558f5328dce5125bddfb9e4d/src/mongo/db/repl/repl_set_commands.cpp#L503-L504&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;https://github.com/mongodb/mongo/blob/0dd1fc7ddde2a489558f5328dce5125bddfb9e4d/src/mongo/db/repl/replication_coordinator_impl.cpp#L1617-L1629&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/blob/0dd1fc7ddde2a489558f5328dce5125bddfb9e4d/src/mongo/db/repl/replication_coordinator_impl.cpp#L1617-L1629&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="1916680" author="milkie" created="Mon, 11 Jun 2018 12:59:50 +0000"  >&lt;p&gt;I thought the replSetStepDown command took two parameters.  The parameter for the command name itself is only the freeze time after stepdown.  The parameter named &quot;secondaryCatchUpPeriodSecs&quot; is optional and if not provided, defaults to 10 seconds.  &lt;br/&gt;
The quote above is from Kal, and I believe he intended to change the secondaryCatchUpPeriodSecs?&lt;/p&gt;</comment>
                            <comment id="1916154" author="max.hirschhorn@10gen.com" created="Sat, 9 Jun 2018 21:41:33 +0000"  >&lt;blockquote&gt;
&lt;p&gt;I have seen a few of those happening and it is just a slow machine. Max Hirschhorn how about we increase the stepdown thread timeout to 30 seconds for MMAP V1?&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;The downside of changing to run the {&lt;tt&gt;replSetStepDown: 30&lt;/tt&gt;} command instead of the {&lt;tt&gt;replSetStepDown: 10&lt;/tt&gt;} command is that while the primary will wait up to 30 seconds to acquire the global X lock, it will also be unelectable for 30 seconds after stepping down. While the Python version of &lt;a href=&quot;https://github.com/mongodb/mongo/blob/1c21898e28a73f1ab81fe1fa3d0e185d4ab916a8/buildscripts/resmokelib/testing/hooks/stepdown.py#L312&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;the &lt;tt&gt;StepdownThread&lt;/tt&gt; uses the &quot;replSetStepUp&quot; command to restore write available more quickly, it is best-effort and may not succeed&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I&apos;d rather change the &lt;tt&gt;StepdownThread&lt;/tt&gt; to tolerate the &lt;tt&gt;ExceededTimeLimit&lt;/tt&gt; error response from the &quot;replSetStepDown&quot; command by swallowing the &lt;tt&gt;pymongo.errors.ExecutionTimeout&lt;/tt&gt; exception. CC &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=judah.schvimer&quot; class=&quot;user-hover&quot; rel=&quot;judah.schvimer&quot;&gt;judah.schvimer&lt;/a&gt;, &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=spencer&quot; class=&quot;user-hover&quot; rel=&quot;spencer&quot;&gt;spencer&lt;/a&gt;&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">
                                                        </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>8.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="15640"><![CDATA[v4.0]]></customfieldvalue>
    <customfieldvalue key="15141"><![CDATA[v3.6]]></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>Sat, 9 Jun 2018 21:41:33 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        5 years, 32 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>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            5 years, 32 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_16465" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Linked BF Score</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>15.0</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>milkie@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>judah.schvimer@mongodb.com</customfieldvalue>
            <customfieldvalue>kaloian.manassiev@mongodb.com</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|htym27:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|htq3rr:</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="2378">TIG 2018-07-02</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|hty8bj:</customfieldvalue>

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