<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:49:47 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-60428] Investigate effectiveness of test jstests/replsets/rollback_waits_for_bgindex_completion.js</title>
                <link>https://jira.mongodb.org/browse/SERVER-60428</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Test jstests/replsets/rollback_waits_for_bgindex_completion.js runs an index build in the background while a transaction is waiting to be committed, leader steps down, and rollsback the txn. Test verifies that rollback should wait for the index build to be aborted but it seems from the logs that there is no wait happening--rollback proceeds immediately because abort of index build has occurred earlier. We should investigate if the current behavior makes for a correct test, and possibly introduce a delay in aborting the index build so rollback effectively waits for it.&lt;/p&gt;

&lt;p&gt;Please refer to ticket &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-59687&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/SERVER-59687&lt;/a&gt; for more information.&lt;/p&gt;

&lt;p&gt;Relevant log portion:&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;[js_test:rollback_waits_for_bgindex_completion] d20030| {&quot;t&quot;:{&quot;$date&quot;:&quot;2021-09-22T23:06:42.609+00:00&quot;},&quot;s&quot;:&quot;I&quot;,  &quot;c&quot;:&quot;STORAGE&quot;,  &quot;id&quot;:20655,   &quot;ctx&quot;:&quot;BackgroundSync&quot;,&quot;msg&quot;:&quot;Index build: joined after abort&quot;,&quot;attr&quot;:{&quot;buildUUID&quot;:{&quot;uuid&quot;:{&quot;$uuid&quot;:&quot;39d281db-25d4-46c3-9f3b-20133f58bff4&quot;}},&quot;waitResult&quot;:{&quot;code&quot;:0,&quot;codeName&quot;:&quot;OK&quot;},&quot;status&quot;:{&quot;code&quot;:276,&quot;codeName&quot;:&quot;IndexBuildAborted&quot;,&quot;errmsg&quot;:&quot;collection scan stopped. totalRecords: 1; durationMillis: 0ms; phase: collection scan; collectionScanPosition: RecordId(1); readSource: kMajorityCommitted :: caused by :: operation was interrupted&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;[js_test:rollback_waits_for_bgindex_completion] d20030| {&quot;t&quot;:{&quot;$date&quot;:&quot;2021-09-22T23:06:42.609+00:00&quot;},&quot;s&quot;:&quot;I&quot;,  &quot;c&quot;:&quot;STORAGE&quot;,  &quot;id&quot;:20347,   &quot;ctx&quot;:&quot;BackgroundSync&quot;,&quot;msg&quot;:&quot;Index build: aborted without cleanup&quot;,&quot;attr&quot;:{&quot;buildUUID&quot;:{&quot;uuid&quot;:{&quot;$uuid&quot;:&quot;39d281db-25d4-46c3-9f3b-20133f58bff4&quot;}},&quot;collectionUUID&quot;:{&quot;uuid&quot;:{&quot;$uuid&quot;:&quot;8cec4cde-51df-432e-8bd2-2a2f8a54593d&quot;}},&quot;namespace&quot;:&quot;dbWithBgIndex.coll&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;[js_test:rollback_waits_for_bgindex_completion] d20030| {&quot;t&quot;:{&quot;$date&quot;:&quot;2021-09-22T23:06:42.609+00:00&quot;},&quot;s&quot;:&quot;I&quot;,  &quot;c&quot;:&quot;STORAGE&quot;,  &quot;id&quot;:4656002, &quot;ctx&quot;:&quot;IndexBuildsCoordinatorMongod-0&quot;,&quot;msg&quot;:&quot;unable to log operation&quot;,&quot;attr&quot;:{&quot;error&quot;:{&quot;code&quot;:276,&quot;codeName&quot;:&quot;IndexBuildAborted&quot;,&quot;errmsg&quot;:&quot;operation was interrupted&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;[js_test:rollback_waits_for_bgindex_completion] d20032| {&quot;t&quot;:{&quot;$date&quot;:&quot;2021-09-22T23:06:42.613+00:00&quot;},&quot;s&quot;:&quot;I&quot;,  &quot;c&quot;:&quot;REPL&quot;,     &quot;id&quot;:21079,   &quot;ctx&quot;:&quot;BackgroundSync&quot;,&quot;msg&quot;:&quot;bgsync - stopReplProducer fail point enabled. Blocking until fail point is disabled.&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;[js_test:rollback_waits_for_bgindex_completion] d20030| {&quot;t&quot;:{&quot;$date&quot;:&quot;2021-09-22T23:06:42.617+00:00&quot;},&quot;s&quot;:&quot;I&quot;,  &quot;c&quot;:&quot;INDEX&quot;,    &quot;id&quot;:4841502, &quot;ctx&quot;:&quot;BackgroundSync&quot;,&quot;msg&quot;:&quot;Index build: wrote resumable state to disk&quot;,&quot;attr&quot;:{&quot;buildUUID&quot;:{&quot;uuid&quot;:{&quot;$uuid&quot;:&quot;39d281db-25d4-46c3-9f3b-20133f58bff4&quot;}},&quot;collectionUUID&quot;:{&quot;uuid&quot;:{&quot;$uuid&quot;:&quot;8cec4cde-51df-432e-8bd2-2a2f8a54593d&quot;}},&quot;namespace&quot;:&quot;dbWithBgIndex.coll&quot;,&quot;details&quot;:{&quot;_id&quot;:{&quot;$uuid&quot;:&quot;39d281db-25d4-46c3-9f3b-20133f58bff4&quot;},&quot;phase&quot;:&quot;collection scan&quot;,&quot;collectionUUID&quot;:{&quot;$uuid&quot;:&quot;8cec4cde-51df-432e-8bd2-2a2f8a54593d&quot;},&quot;collectionScanPosition&quot;:1,&quot;indexes&quot;:[{&quot;fileName&quot;:&quot;extsort-index.0-1004796179216808253&quot;,&quot;numKeys&quot;:1,&quot;ranges&quot;:[{&quot;startOffset&quot;:0,&quot;endOffset&quot;:13,&quot;checksum&quot;:4272028543}],&quot;sideWritesTable&quot;:&quot;internal-43--4107655658741736919&quot;,&quot;spec&quot;:{&quot;v&quot;:2,&quot;key&quot;:{&quot;x&quot;:1},&quot;name&quot;:&quot;x_1&quot;},&quot;isMultikey&quot;:false,&quot;multikeyPaths&quot;:[{&quot;multikeyComponents&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;[js_test:rollback_waits_for_bgindex_completion] d20030| {&quot;t&quot;:{&quot;$date&quot;:&quot;2021-09-22T23:06:42.617+00:00&quot;},&quot;s&quot;:&quot;I&quot;,  &quot;c&quot;:&quot;ROLLBACK&quot;, &quot;id&quot;:21595,   &quot;ctx&quot;:&quot;BackgroundSync&quot;,&quot;msg&quot;:&quot;Waiting for all background operations to complete before starting rollback&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;[js_test:rollback_waits_for_bgindex_completion] d20030| {&quot;t&quot;:{&quot;$date&quot;:&quot;2021-09-22T23:06:42.617+00:00&quot;},&quot;s&quot;:&quot;I&quot;,  &quot;c&quot;:&quot;ROLLBACK&quot;, &quot;id&quot;:21597,   &quot;ctx&quot;:&quot;BackgroundSync&quot;,&quot;msg&quot;:&quot;Finished waiting for background operations to complete before rollback&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;Notice the last two lines, rollback intends to wait for indexbuild to be completed (aborted?), but the abort has already occurred, so there is nothing to wait for.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1889191">SERVER-60428</key>
            <summary>Investigate effectiveness of test jstests/replsets/rollback_waits_for_bgindex_completion.js</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="3">Duplicate</resolution>
                                        <assignee username="adi.zaimi@mongodb.com">Adi Zaimi</assignee>
                                    <reporter username="adi.zaimi@mongodb.com">Adi Zaimi</reporter>
                        <labels>
                    </labels>
                <created>Mon, 4 Oct 2021 16:19:10 +0000</created>
                <updated>Tue, 9 Nov 2021 21:39:21 +0000</updated>
                            <resolved>Tue, 9 Nov 2021 21:39:21 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="4178948" author="JIRAUSER1261874" created="Tue, 9 Nov 2021 21:39:21 +0000"  >&lt;p&gt;Closing this ticked and any followup will be done as part of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-60819&quot; title=&quot;remove jstests/replsets/rollback_waits_for_bgindex_completion.js&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-60819&quot;&gt;&lt;del&gt;SERVER-60819&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="4178941" author="JIRAUSER1261874" created="Tue, 9 Nov 2021 21:36:45 +0000"  >&lt;p&gt;It seems that single-phase index build may no longer be a use case we intend to support: I asked on the storage execution channel and Louis Williams informed me that &apos;&#8220;Single-phase&#8221; index builds replicate a single createIndexes oplog entry and they&#8217;re really only used internally for index builds on empty collections. Also for tenant migrations, but we really don&#8217;t want to continue supporting that use case. &apos;&lt;/p&gt;

&lt;p&gt;I created &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-60819&quot; title=&quot;remove jstests/replsets/rollback_waits_for_bgindex_completion.js&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-60819&quot;&gt;&lt;del&gt;SERVER-60819&lt;/del&gt;&lt;/a&gt; for storage execution to determine how to proceed with this test.&lt;/p&gt;</comment>
                            <comment id="4127694" author="JIRAUSER1261874" created="Fri, 15 Oct 2021 23:11:29 +0000"  >&lt;p&gt;Discussed further with Samy and there is one detail that may be the key to this issue, in rollback_impl.cpp:&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; &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;350&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: #008200; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;// Aborts all active, two-phase index builds.&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;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;351&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;     [[maybe_unused]] auto stoppedIndexBuilds =&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;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;352&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;         IndexBuildsCoordinator::get(opCtx)-&amp;gt;stopIndexBuildsForRollback(opCtx);&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;&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;where stopIndexBuildsForRollback() checks&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;1349         if (IndexBuildProtocol::kSinglePhase == replState-&amp;gt;protocol) {&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;1350             LOGV2(20659,&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;1351                   &quot;Not stopping single phase index build&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;1352                   &quot;buildUUID&quot;_attr = replState-&amp;gt;buildUUID);&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;1353             return;&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;1354         }&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;&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;From the log we have a two-phase index build (which is the default):&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;js_test:rollback_waits_for_bgindex_completion&amp;#93;&lt;/span&gt; d23280| 2021-08-31T08:44:43.472+00:00 I  STORAGE  20650   &lt;span class=&quot;error&quot;&gt;&amp;#91;BackgroundSync&amp;#93;&lt;/span&gt; &quot;Active index builds&quot;,&quot;attr&quot;:{&quot;context&quot;:&quot;IndexBuildsCoordinator::stopIndexBuildsForRollback&quot;,&quot;builds&quot;:[{&quot;buildUUID&quot;:{&quot;uuid&quot;:{&quot;$uuid&quot;:&quot;5ecf792a-24b2-4b5f-bfef-6aa5c164d317&quot;}},&quot;collectionUUID&quot;:{&quot;uuid&quot;:{&quot;$uuid&quot;:&quot;0e8e269d-2a5b-4127-8939-71bfa6036243&quot;}},&quot;indexNames&quot;:&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;x_1&amp;quot;&amp;#93;&lt;/span&gt;,&quot;protocol&quot;:&quot;two phase&quot;}]}&lt;/p&gt;

&lt;p&gt;And the code after we print &quot;Waiting for all background operations to complete before starting rollback&quot; waits for index builds to finish only in the one phase case. So for the default two-phase case ,the next line printed immediately after &quot;Finished waiting for background operations to complete before rollback&quot; is the correct code behavior.&lt;/p&gt;

&lt;p&gt;It seems that the remaining issue we need to address is whether this test is valid to run with two-phase index build as the default. Or perhaps we can change the default for this test to run with one phase index build. &lt;/p&gt;</comment>
                            <comment id="4116707" author="JIRAUSER1261874" created="Mon, 11 Oct 2021 19:37:50 +0000"  >&lt;p&gt;Looked at this more carefully. Added a new failpoint to stop/pause right after we print &quot;Attempting to abort index build&quot; in abortIndexBuildByBuildUUID(). I tried simply sleeping for 3 (or 5) sec at that point and it was still the case that the rollback code waited the 3 (or 5) extra seconds and the &quot;Finished waiting for background...&quot; line is still printed immediately after &quot;Waiting for all background...&quot; &amp;#8211; that is we don&apos;t wait there  the 3 seconds. &lt;/p&gt;

&lt;p&gt;I also tried using pauseWhileSet() on that new failpoint in abortIndexBuildByBuildUUID() so the rollback would wait until we turn that failpoint off in the test, however that approach resulted in a infinite loop in the server waiting for another failpoint to be turned off (&quot;ctx&quot;:&quot;BackgroundSync&quot;,&quot;msg&quot;:&quot;bgsync - stopReplProducer fail point enabled. Blocking until fail point is disabled.&quot;).&lt;/p&gt;
</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="1889189">SERVER-60427</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1902281">SERVER-60819</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="1864084">SERVER-59687</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1902281">SERVER-60819</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>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        2 years, 13 weeks, 1 day ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>adi.zaimi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            2 years, 13 weeks, 1 day 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>adi.zaimi@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i045kn:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hznwxb:</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="5145">Repl 2021-10-18</customfieldvalue>
    <customfieldvalue id="5147">Repl 2021-11-01</customfieldvalue>
    <customfieldvalue id="5528">Replication 2021-11-15</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|i03rpz:</customfieldvalue>

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