<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 06:56:17 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-84902] POC $merge/$out running on secondaries</title>
                <link>https://jira.mongodb.org/browse/SERVER-84902</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description></description>
                <environment></environment>
        <key id="1110262">SERVER-84902</key>
            <summary>POC $merge/$out running on secondaries</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="david.storch@mongodb.com">David Storch</assignee>
                                    <reporter username="david.storch@mongodb.com">David Storch</reporter>
                        <labels>
                    </labels>
                <created>Wed, 22 Jan 2020 22:22:00 +0000</created>
                <updated>Fri, 12 Jan 2024 02:53:51 +0000</updated>
                            <resolved>Mon, 3 Feb 2020 15:06:15 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="2780177" author="david.storch" created="Mon, 3 Feb 2020 15:06:15 +0000"  >&lt;p&gt;We&apos;ve decided to move forward with this project, which is now tracked under PM-1770. Further planning for this project will follow the normal scope and design process.&lt;/p&gt;</comment>
                            <comment id="2768405" author="tess.avitabile" created="Tue, 28 Jan 2020 16:24:13 +0000"  >&lt;blockquote&gt;
&lt;p&gt;Do replica set nodes which are not shardsvrs have a replica set monitor? If so, where do I obtain it from?&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;I&apos;m not sure if they do. And I&apos;m not totally sure whether I think it would be better. On the one hand, it&apos;s good to have a generic way to target the primary. On the other hand, it&apos;s duplicating work already done by the ReplicationCoordinator.&lt;/p&gt;</comment>
                            <comment id="2768104" author="david.storch" created="Tue, 28 Jan 2020 15:42:47 +0000"  >&lt;p&gt;Thanks &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=tess.avitabile&quot; class=&quot;user-hover&quot; rel=&quot;tess.avitabile&quot;&gt;tess.avitabile&lt;/a&gt;. Yeah, targeting ourself should be fine, but will have to be tested of course. It&apos;s definitely possible that at the time-of-check we are not primary, but by the time we are actually running the inserts we are primary. But this shouldn&apos;t be a problem.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;I also wanted to ask why we can&apos;t use the replica set monitor here.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Do replica set nodes which are not shardsvrs have a replica set monitor? If so, where do I obtain it from?&lt;/p&gt;</comment>
                            <comment id="2767970" author="tess.avitabile" created="Tue, 28 Jan 2020 14:54:59 +0000"  >&lt;p&gt;Those changes to the &lt;tt&gt;ReplicationCoordinator&lt;/tt&gt;&#160;look good, except that you will need to lock &lt;tt&gt;_mutex&lt;/tt&gt; in order to access &lt;tt&gt;_topCoord&lt;/tt&gt; and &lt;tt&gt;_rsConfig&lt;/tt&gt;. Another option is to make &lt;tt&gt;TopologyCoordinator::_currentPrimaryMember()&lt;/tt&gt; public and call it from &lt;tt&gt;ReplicationCoordinator&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;A risk to this approach is that we may be primary by the time we call &lt;tt&gt;getCurrentPrimaryHostAndPort()&lt;/tt&gt;, so we may end up targeting ourselves. Does this work? If it does work, is there any benefit to checking if we&apos;re primary in &lt;tt&gt;MongoInterfaceStandalone::insert()&lt;/tt&gt;?&lt;/p&gt;

&lt;p&gt;I also wanted to ask why we can&apos;t use the replica set monitor here.&lt;/p&gt;</comment>
                            <comment id="2767165" author="david.storch" created="Tue, 28 Jan 2020 01:48:15 +0000"  >&lt;p&gt;&lt;a href=&quot;https://mongodbcr.appspot.com/561800005/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://mongodbcr.appspot.com/561800005/&lt;/a&gt; captures my work so far on this topic. This patch seems to work for running $merge with whenMatched:&quot;fail&quot;, and whenNotMatched:&quot;insert&quot; against a secondary of a single replica set (unsharded) configuration. The work is not straightforward because the existing infrastructure for $merge/$out targeting remote nodes is pretty tightly coupled with sharding. I have a few remaining questions about how to implement this which probably require input from folks from distributed systems.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=tess.avitabile&quot; class=&quot;user-hover&quot; rel=&quot;tess.avitabile&quot;&gt;tess.avitabile&lt;/a&gt;, the linked patch needs to find the HostAndPort for the current primary node. See the &lt;a href=&quot;https://mongodbcr.appspot.com/561800005/diff/552580002/src/mongo/db/repl/replication_coordinator.h&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;changes to replication_coordinator.h&lt;/a&gt; and the coupled changes to ReplicationCoordinatorImpl. Does this seem like a reasonable change from your point of view?&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=esha.maharishi&quot; class=&quot;user-hover&quot; rel=&quot;esha.maharishi&quot;&gt;esha.maharishi&lt;/a&gt; there are a few sharding-related questions remaining:&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;The POC takes a slightly sketchy approach of using an empty ShardId in a AsyncRequestsSender::Request to mean &quot;target the primary node of this replica set&quot;. See the changes to &lt;a href=&quot;https://mongodbcr.appspot.com/561800005/diff/552580002/src/mongo/s/async_requests_sender.cpp&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;async_request_sender.cpp&lt;/a&gt;. Do you think something along these lines is acceptable?
	&lt;ol&gt;
		&lt;li&gt;We could clean up the interface to be more explicit, or create an alternative interface where the caller passes a HostAndPort directly to the ARS.&lt;/li&gt;
		&lt;li&gt;I wonder if there&apos;s a way to inject a different kind of host targeter? I don&apos;t think we can use the replica set monitor, but maybe we could have a thing which knows how to target based on read preference within its own replica set?&lt;/li&gt;
		&lt;li&gt;Alternatively, I could circumvent the ARS and build my own ARS-like component which doesn&apos;t interact with sharding. I&apos;d love to reuse the ARS if possible, though. It&apos;s more or less what I need.&lt;/li&gt;
	&lt;/ol&gt;
	&lt;/li&gt;
	&lt;li&gt;Right now, a mongod only has a TaskExecutorPool if it is a shardsvr, and it hangs off Grid. The POC changes mongod&apos;s startup sequence to decorate the ServiceContext with a TaskExecutorPool outside of Grid if the node is part of a replica set but not a shardsvr. See the changes in sharding_initialization.cpp and db.cpp. Does this seem like the right implementation direction? This non-sharding TaskExecutorPool doesn&apos;t have the various sharding-related hooks that the one on Grid does. Something like this seems necessary in order to prepare one node in a replica set to send query execution-related requests to other nodes in the replica set.&lt;/li&gt;
&lt;/ol&gt;
</comment>
                            <comment id="2763630" author="david.storch" created="Fri, 24 Jan 2020 22:57:20 +0000"  >&lt;p&gt;Bad news on question #2 above! The ClusterWriter appears to have sharding-specific pieces, and cannot be used out of the box:&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:merge_on_secondaries] 2020-01-24T17:55:02.251-0500 d20021| 2020-01-24T17:55:02.251-0500 F  -        [conn1] Invalid access at address: 0x68&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:merge_on_secondaries] 2020-01-24T17:55:02.257-0500 d20021| 2020-01-24T17:55:02.256-0500 F  -        [conn1] Got signal: 11 (Segmentation fault).&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:merge_on_secondaries] 2020-01-24T17:55:02.257-0500 d20021|  7F1DFE5F6719 7F1DFE5F69D4 7F1DFE5F76F3 7F1DFE5F5B9C 7F1DFE5F5D97 7F1DFAB0B890 7F1DFAB03244 7F1DFE5E3BC0 7F1E013B28B5 7F1E018A8744 7F1DFA349068 7F1DFA362A63 7F1DFA22FC4F 7F1DFA22FFAB 7F1DFFEA2CA3 7F1DFFEA9403 7F1DFFEBDF25 7F1DFFE43051 7F1DFFEEE80C 7F1E00B6B597 7F1E00B6B60C 7F1E00B6C0E6 7F1E00BC5D02 7F1E00BC677B 7F1DF9EE698E 7F1DF9EEAD02 7F1DF9EE09EC 7F1DFA146C3C 7F1DFA149615 7F1DFA14A483 7F1E01D0EB31 7F1E01CFD218 7F1E01CF8D8A 7F1E01CFA5BC 7F1E01CD73AB 7F1E01CF6167 7F1E01CF7655 7F1E01CF80E6 7F1E01CF8D4B 7F1E01CFA5BC 7F1E01CD7776 7F1DFEA53EB6 7F1DFEA53F24 7F1DFAB006DB 7F1DFA82788F&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:merge_on_secondaries] 2020-01-24T17:55:02.257-0500 d20021| ----- BEGIN BACKTRACE -----&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:merge_on_secondaries] 2020-01-24T17:55:02.257-0500 d20021| {&quot;backtrace&quot;:[{&quot;b&quot;:&quot;7F1DFE45B000&quot;,&quot;o&quot;:&quot;19B719&quot;,&quot;s&quot;:&quot;_ZN5mongo12rawBacktraceEPPvm&quot;},{&quot;b&quot;:&quot;7F1DFE45B000&quot;,&quot;o&quot;:&quot;19B9D4&quot;,&quot;s&quot;:&quot;_ZN5mongo15printStackTraceERNS_14StackTraceSinkE&quot;},{&quot;b&quot;:&quot;7F1DFE45B000&quot;,&quot;o&quot;:&quot;19C6F3&quot;,&quot;s&quot;:&quot;_ZN5mongo15printStackTraceERSo&quot;},{&quot;b&quot;:&quot;7F1DFE45B000&quot;,&quot;o&quot;:&quot;19AB9C&quot;},{&quot;b&quot;:&quot;7F1DFE45B000&quot;,&quot;o&quot;:&quot;19AD97&quot;},{&quot;b&quot;:&quot;7F1DFAAF9000&quot;,&quot;o&quot;:&quot;12890&quot;},{&quot;b&quot;:&quot;7F1DFAAF9000&quot;,&quot;o&quot;:&quot;A244&quot;,&quot;s&quot;:&quot;__pthread_mutex_trylock&quot;},{&quot;b&quot;:&quot;7F1DFE45B000&quot;,&quot;o&quot;:&quot;188BC0&quot;,&quot;s&quot;:&quot;_ZN5mongo5Mutex4lockEv&quot;},{&quot;b&quot;:&quot;7F1E01370000&quot;,&quot;o&quot;:&quot;428B5&quot;,&quot;s&quot;:&quot;_ZN5mongo12CatalogCache11getDatabaseEPNS_16OperationContextENS_10StringDataE&quot;},{&quot;b&quot;:&quot;7F1E0188B000&quot;,&quot;o&quot;:&quot;1D744&quot;,&quot;s&quot;:&quot;_ZN5mongo19createShardDatabaseEPNS_16OperationContextENS_10StringDataE&quot;},{&quot;b&quot;:&quot;7F1DFA322000&quot;,&quot;o&quot;:&quot;27068&quot;,&quot;s&quot;:&quot;_ZN5mongo20ChunkManagerTargeter4initEPNS_16OperationContextE&quot;},{&quot;b&quot;:&quot;7F1DFA35E000&quot;,&quot;o&quot;:&quot;4A63&quot;,&quot;s&quot;:&quot;_ZN5mongo13ClusterWriter5writeEPNS_16OperationContextERKNS_21BatchedCommandRequestEPNS_19BatchWriteExecStatsEPNS_22BatchedCommandResponseEN5boost8optionalINS_3OIDEEE&quot;},{&quot;b&quot;:&quot;7F1DFA21A000&quot;,&quot;o&quot;:&quot;15C4F&quot;,&quot;s&quot;:&quot;_ZN5mongo24MongoInterfaceStandalone19_insertOnRemoteNodeERKN5boost13intrusive_ptrINS_17ExpressionContextEEERKNS_15NamespaceStringEOSt6vectorINS_7BSONObjESaISB_EERKNS_19WriteConcernOptionsENS1_8optionalINS_3OIDEEE&quot;},{&quot;b&quot;:&quot;7F1DFA21A000&quot;,&quot;o&quot;:&quot;15FAB&quot;,&quot;s&quot;:&quot;_ZN5mongo24MongoInterfaceStandalone6insertERKN5boost13intrusive_ptrINS_17ExpressionContextEEERKNS_15NamespaceStringEOSt6vectorINS_7BSONObjESaISB_EERKNS_19WriteConcernOptionsENS1_8optionalINS_3OIDEEE&quot;},{&quot;b&quot;:&quot;7F1DFFD97000&quot;,&quot;o&quot;:&quot;10BCA3&quot;},{&quot;b&quot;:&quot;7F1DFFD97000&quot;,&quot;o&quot;:&quot;112403&quot;,&quot;s&quot;:&quot;_ZN5mongo19DocumentSourceMerge5spillEOSt6vectorISt5tupleIJNS_7BSONObjENS_9write_ops18UpdateModificationEN5boost8optionalIS3_EEEESaIS9_EE&quot;},{&quot;b&quot;:&quot;7F1DFFD97000&quot;,&quot;o&quot;:&quot;126F25&quot;,&quot;s&quot;:&quot;_ZN5mongo20DocumentSourceWriterISt5tupleIJNS_7BSONObjENS_9write_ops18UpdateModificationEN5boost8optionalIS2_EEEEE9doGetNextEv&quot;},{&quot;b&quot;:&quot;7F1DFFD97000&quot;,&quot;o&quot;:&quot;AC051&quot;,&quot;s&quot;:&quot;_ZN5mongo14DocumentSource7getNextEv&quot;},{&quot;b&quot;:&quot;7F1DFFD97000&quot;,&quot;o&quot;:&quot;15780C&quot;,&quot;s&quot;:&quot;_ZN5mongo8Pipeline7getNextEv&quot;},{&quot;b&quot;:&quot;7F1E00AB6000&quot;,&quot;o&quot;:&quot;B5597&quot;,&quot;s&quot;:&quot;_ZN5mongo18PipelineProxyStage7getNextEv&quot;},{&quot;b&quot;:&quot;7F1E00AB6000&quot;,&quot;o&quot;:&quot;B560C&quot;,&quot;s&quot;:&quot;_ZN5mongo18PipelineProxyStage6doWorkEPm&quot;},{&quot;b&quot;:&quot;7F1E00AB6000&quot;,&quot;o&quot;:&quot;B60E6&quot;,&quot;s&quot;:&quot;_ZN5mongo9PlanStage4workEPm&quot;},{&quot;b&quot;:&quot;7F1E00AB6000&quot;,&quot;o&quot;:&quot;10FD02&quot;,&quot;s&quot;:&quot;_ZN5mongo16PlanExecutorImpl12_getNextImplEPNS_11SnapshottedINS_8DocumentEEEPNS_8RecordIdE&quot;},{&quot;b&quot;:&quot;7F1E00AB6000&quot;,&quot;o&quot;:&quot;11077B&quot;,&quot;s&quot;:&quot;_ZN5mongo16PlanExecutorImpl7getNextEPNS_8DocumentEPNS_8RecordIdE&quot;},{&quot;b&quot;:&quot;7F1DF9E4A000&quot;,&quot;o&quot;:&quot;9C98E&quot;},{&quot;b&quot;:&quot;7F1DF9E4A000&quot;,&quot;o&quot;:&quot;A0D02&quot;,&quot;s&quot;:&quot;_ZN5mongo12runAggregateEPNS_16OperationContextERKNS_15NamespaceStringERKNS_18AggregationRequestERKNS_18LiteParsedPipelineERKNS_7BSONObjERKSt6vectorINS_9PrivilegeESaISF_EEPNS_3rpc21ReplyBuilderInterfaceE&quot;},{&quot;b&quot;:&quot;7F1DF9E4A000&quot;,&quot;o&quot;:&quot;969EC&quot;},{&quot;b&quot;:&quot;7F1DFA12F000&quot;,&quot;o&quot;:&quot;17C3C&quot;},{&quot;b&quot;:&quot;7F1DFA12F000&quot;,&quot;o&quot;:&quot;1A615&quot;},{&quot;b&quot;:&quot;7F1DFA12F000&quot;,&quot;o&quot;:&quot;1B483&quot;,&quot;s&quot;:&quot;_ZN5mongo23ServiceEntryPointCommon13handleRequestEPNS_16OperationContextERKNS_7MessageERKNS0_5HooksE&quot;},{&quot;b&quot;:&quot;7F1E01D06000&quot;,&quot;o&quot;:&quot;8B31&quot;,&quot;s&quot;:&quot;_ZN5mongo23ServiceEntryPointMongod13handleRequestEPNS_16OperationContextERKNS_7MessageE&quot;},{&quot;b&quot;:&quot;7F1E01CE3000&quot;,&quot;o&quot;:&quot;1A218&quot;,&quot;s&quot;:&quot;_ZN5mongo19ServiceStateMachine15_processMessageENS0_11ThreadGuardE&quot;},{&quot;b&quot;:&quot;7F1E01CE3000&quot;,&quot;o&quot;:&quot;15D8A&quot;,&quot;s&quot;:&quot;_ZN5mongo19ServiceStateMachine15_runNextInGuardENS0_11ThreadGuardE&quot;},{&quot;b&quot;:&quot;7F1E01CE3000&quot;,&quot;o&quot;:&quot;175BC&quot;},{&quot;b&quot;:&quot;7F1E01CBA000&quot;,&quot;o&quot;:&quot;1D3AB&quot;,&quot;s&quot;:&quot;_ZN5mongo9transport26ServiceExecutorSynchronous8scheduleESt8functionIFvvEENS0_15ServiceExecutor13ScheduleFlagsENS0_23ServiceExecutorTaskNameE&quot;},{&quot;b&quot;:&quot;7F1E01CE3000&quot;,&quot;o&quot;:&quot;13167&quot;,&quot;s&quot;:&quot;_ZN5mongo19ServiceStateMachine22_scheduleNextWithGuardENS0_11ThreadGuardENS_9transport15ServiceExecutor13ScheduleFlagsENS2_23ServiceExecutorTaskNameENS0_9OwnershipE&quot;},{&quot;b&quot;:&quot;7F1E01CE3000&quot;,&quot;o&quot;:&quot;14655&quot;,&quot;s&quot;:&quot;_ZN5mongo19ServiceStateMachine15_sourceCallbackENS_6StatusE&quot;},{&quot;b&quot;:&quot;7F1E01CE3000&quot;,&quot;o&quot;:&quot;150E6&quot;,&quot;s&quot;:&quot;_ZN5mongo19ServiceStateMachine14_sourceMessageENS0_11ThreadGuardE&quot;},{&quot;b&quot;:&quot;7F1E01CE3000&quot;,&quot;o&quot;:&quot;15D4B&quot;,&quot;s&quot;:&quot;_ZN5mongo19ServiceStateMachine15_runNextInGuardENS0_11ThreadGuardE&quot;},{&quot;b&quot;:&quot;7F1E01CE3000&quot;,&quot;o&quot;:&quot;175BC&quot;},{&quot;b&quot;:&quot;7F1E01CBA000&quot;,&quot;o&quot;:&quot;1D776&quot;},{&quot;b&quot;:&quot;7F1DFEA50000&quot;,&quot;o&quot;:&quot;3EB6&quot;},{&quot;b&quot;:&quot;7F1DFEA50000&quot;,&quot;o&quot;:&quot;3F24&quot;},{&quot;b&quot;:&quot;7F1DFAAF9000&quot;,&quot;o&quot;:&quot;76DB&quot;},{&quot;b&quot;:&quot;7F1DFA706000&quot;,&quot;o&quot;:&quot;12188F&quot;,&quot;s&quot;:&quot;clone&quot;}],&quot;processInfo&quot;:{&quot;mongodbVersion&quot;:&quot;0.0.0&quot;,&quot;gitVersion&quot;:&quot;unknown&quot;,&quot;compiledModules&quot;:[&quot;enterprise&quot;,&quot;ninja&quot;],&quot;uname&quot;:{&quot;sysname&quot;:&quot;Linux&quot;,&quot;release&quot;:&quot;5.0.0-37-generic&quot;,&quot;version&quot;:&quot;#40~18.04.1-Ubuntu SMP Thu Nov 14 12:06:39 UTC 2019&quot;,&quot;machine&quot;:&quot;x86_64&quot;},&quot;somap&quot;:[{&quot;b&quot;:&quot;7F1E01D06000&quot;,&quot;path&quot;:&quot;build/ninja/mongo/db/libservice_context_d.so&quot;,&quot;elfType&quot;:3,&quot;buildId&quot;:&quot;272757A90DCEF07BD3EB8B5959E50415D54BB730&quot;},{&quot;b&quot;:&quot;7F1E01CE3000&quot;,&quot;path&quot;:&quot;build/ninja/mongo/transport/libservice_entry_point.so&quot;,&quot;elfType&quot;:3,&quot;buildId&quot;:&quot;FE1EC70DE28A3A30A2F82DA4F2663D7EF7E875FB&quot;},{&quot;b&quot;:&quot;7F1E01CBA000&quot;,&quot;path&quot;:&quot;build/ninja/mongo/transport/libservice_executor.so&quot;,&quot;elfType&quot;:3,&quot;buildId&quot;:&quot;CA18F9EADCC12B4642D191A936C39AD5C2F0520B&quot;},{&quot;b&quot;:&quot;7F1E0188B000&quot;,&quot;path&quot;:&quot;build/ninja/mongo/s/libsharding_router_api.so&quot;,&quot;elfType&quot;:3,&quot;buildId&quot;:&quot;7A0AAF9C3D8B82F5EA01F12912E388E5BDDEDF0D&quot;},{&quot;b&quot;:&quot;7F1E01370000&quot;,&quot;path&quot;:&quot;build/ninja/mongo/s/libgrid.so&quot;,&quot;elfType&quot;:3,&quot;buildId&quot;:&quot;02F46A29A95A9F7976EEFCC429BFD5019BE2F7F8&quot;},{&quot;b&quot;:&quot;7F1E00AB6000&quot;,&quot;path&quot;:&quot;build/ninja/mongo/db/libquery_exec.so&quot;,&quot;elfType&quot;:3,&quot;buildId&quot;:&quot;6DC5806EF4E5C609C804FC7A7DE10D329C4867E3&quot;},{&quot;b&quot;:&quot;7F1DFFD97000&quot;,&quot;path&quot;:&quot;build/ninja/mongo/db/pipeline/libpipeline.so&quot;,&quot;elfType&quot;:3,&quot;buildId&quot;:&quot;0C45DECEFCE3052C9733F5B73C9B552E0F80ECCC&quot;},{&quot;b&quot;:&quot;7F1DFEA50000&quot;,&quot;path&quot;:&quot;build/ninja/mongo/transport/libtransport_layer_common.so&quot;,&quot;elfType&quot;:3,&quot;buildId&quot;:&quot;A79F7F4ADE65882392AAA385B7DB30D746DB7335&quot;},{&quot;b&quot;:&quot;7F1DFE45B000&quot;,&quot;path&quot;:&quot;build/ninja/mongo/libbase.so&quot;,&quot;elfType&quot;:3,&quot;buildId&quot;:&quot;85E65362B8E4A8C75A001FB155D67177EDF095AA&quot;},{&quot;b&quot;:&quot;7F1DFAAF9000&quot;,&quot;path&quot;:&quot;/lib/x86_64-linux-gnu/libpthread.so.0&quot;,&quot;elfType&quot;:3,&quot;buildId&quot;:&quot;28C6AADE70B2D40D1F0F3D0A1A0CAD1AB816448F&quot;},{&quot;b&quot;:&quot;7F1DFA706000&quot;,&quot;path&quot;:&quot;/lib/x86_64-linux-gnu/libc.so.6&quot;,&quot;elfType&quot;:3,&quot;buildId&quot;:&quot;B417C0BA7CC5CF06D1D1BED6652CEDB9253C60D0&quot;},{&quot;b&quot;:&quot;7F1DFA35E000&quot;,&quot;path&quot;:&quot;build/ninja/mongo/s/libsharding_api.so&quot;,&quot;elfType&quot;:3,&quot;buildId&quot;:&quot;5C46066026D21A207C15DB5B5D3F5D9781F14B24&quot;},{&quot;b&quot;:&quot;7F1DFA322000&quot;,&quot;path&quot;:&quot;build/ninja/mongo/s/write_ops/libcluster_write_op.so&quot;,&quot;elfType&quot;:3,&quot;buildId&quot;:&quot;669FFF73A061D923D8A58E76E462FE990A31B38F&quot;},{&quot;b&quot;:&quot;7F1DFA21A000&quot;,&quot;path&quot;:&quot;build/ninja/mongo/db/pipeline/libprocess_interface_standalone.so&quot;,&quot;elfType&quot;:3,&quot;buildId&quot;:&quot;36FB2772966D933ADEE5116B8269AEECC04CC5EB&quot;},{&quot;b&quot;:&quot;7F1DFA12F000&quot;,&quot;path&quot;:&quot;build/ninja/mongo/db/libservice_entry_point_common.so&quot;,&quot;elfType&quot;:3,&quot;buildId&quot;:&quot;8F3E00F88BA5C1794073CC0CC92D10BE11A940DB&quot;},{&quot;b&quot;:&quot;7F1DF9E4A000&quot;,&quot;path&quot;:&quot;build/ninja/mongo/db/commands/libstandalone.so&quot;,&quot;elfType&quot;:3,&quot;buildId&quot;:&quot;99876EA5616B56D507CC0391CD9D7CB4B892CA05&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:merge_on_secondaries] 2020-01-24T17:55:02.257-0500 d20021|  libbase.so(_ZN5mongo12rawBacktraceEPPvm+0x9) [0x7F1DFE5F6719]&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:merge_on_secondaries] 2020-01-24T17:55:02.257-0500 d20021|  libbase.so(_ZN5mongo15printStackTraceERNS_14StackTraceSinkE+0xB4) [0x7F1DFE5F69D4]&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:merge_on_secondaries] 2020-01-24T17:55:02.258-0500 d20021|  libbase.so(_ZN5mongo15printStackTraceERSo+0x33) [0x7F1DFE5F76F3]&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:merge_on_secondaries] 2020-01-24T17:55:02.258-0500 d20021|  libbase.so(+0x19AB9C) [0x7F1DFE5F5B9C]&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:merge_on_secondaries] 2020-01-24T17:55:02.258-0500 d20021|  libbase.so(+0x19AD97) [0x7F1DFE5F5D97]&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:merge_on_secondaries] 2020-01-24T17:55:02.258-0500 d20021|  libpthread.so.0(+0x12890) [0x7F1DFAB0B890]&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:merge_on_secondaries] 2020-01-24T17:55:02.258-0500 d20021|  libpthread.so.0(__pthread_mutex_trylock+0x14) [0x7F1DFAB03244]&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:merge_on_secondaries] 2020-01-24T17:55:02.258-0500 d20021|  libbase.so(_ZN5mongo5Mutex4lockEv+0x20) [0x7F1DFE5E3BC0]&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:merge_on_secondaries] 2020-01-24T17:55:02.258-0500 d20021|  libgrid.so(_ZN5mongo12CatalogCache11getDatabaseEPNS_16OperationContextENS_10StringDataE+0xA5) [0x7F1E013B28B5]&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:merge_on_secondaries] 2020-01-24T17:55:02.258-0500 d20021|  libsharding_router_api.so(_ZN5mongo19createShardDatabaseEPNS_16OperationContextENS_10StringDataE+0x54) [0x7F1E018A8744]&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:merge_on_secondaries] 2020-01-24T17:55:02.258-0500 d20021|  libcluster_write_op.so(_ZN5mongo20ChunkManagerTargeter4initEPNS_16OperationContextE+0x58) [0x7F1DFA349068]&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:merge_on_secondaries] 2020-01-24T17:55:02.258-0500 d20021|  libsharding_api.so(_ZN5mongo13ClusterWriter5writeEPNS_16OperationContextERKNS_21BatchedCommandRequestEPNS_19BatchWriteExecStatsEPNS_22BatchedCommandResponseEN5boost8optionalINS_3OIDEEE+0xE3) [0x7F1DFA362A63]&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:merge_on_secondaries] 2020-01-24T17:55:02.258-0500 d20021|  libprocess_interface_standalone.so(_ZN5mongo24MongoInterfaceStandalone19_insertOnRemoteNodeERKN5boost13intrusive_ptrINS_17ExpressionContextEEERKNS_15NamespaceStringEOSt6vectorINS_7BSONObjESaISB_EERKNS_19WriteConcernOptionsENS1_8optionalINS_3OIDEEE+0x35F) [0x7F1DFA22FC4F]&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:merge_on_secondaries] 2020-01-24T17:55:02.258-0500 d20021|  libprocess_interface_standalone.so(_ZN5mongo24MongoInterfaceStandalone6insertERKN5boost13intrusive_ptrINS_17ExpressionContextEEERKNS_15NamespaceStringEOSt6vectorINS_7BSONObjESaISB_EERKNS_19WriteConcernOptionsENS1_8optionalINS_3OIDEEE+0x10B) [0x7F1DFA22FFAB]&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:merge_on_secondaries] 2020-01-24T17:55:02.258-0500 d20021|  libpipeline.so(+0x10BCA3) [0x7F1DFFEA2CA3]&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:merge_on_secondaries] 2020-01-24T17:55:02.258-0500 d20021|  libpipeline.so(_ZN5mongo19DocumentSourceMerge5spillEOSt6vectorISt5tupleIJNS_7BSONObjENS_9write_ops18UpdateModificationEN5boost8optionalIS3_EEEESaIS9_EE+0x283) [0x7F1DFFEA9403]&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:merge_on_secondaries] 2020-01-24T17:55:02.258-0500 d20021|  libpipeline.so(_ZN5mongo20DocumentSourceWriterISt5tupleIJNS_7BSONObjENS_9write_ops18UpdateModificationEN5boost8optionalIS2_EEEEE9doGetNextEv+0x375) [0x7F1DFFEBDF25]&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:merge_on_secondaries] 2020-01-24T17:55:02.258-0500 d20021|  libpipeline.so(_ZN5mongo14DocumentSource7getNextEv+0x41) [0x7F1DFFE43051]&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:merge_on_secondaries] 2020-01-24T17:55:02.258-0500 d20021|  libpipeline.so(_ZN5mongo8Pipeline7getNextEv+0x3C) [0x7F1DFFEEE80C]&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:merge_on_secondaries] 2020-01-24T17:55:02.258-0500 d20021|  libquery_exec.so(_ZN5mongo18PipelineProxyStage7getNextEv+0x27) [0x7F1E00B6B597]&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:merge_on_secondaries] 2020-01-24T17:55:02.258-0500 d20021|  libquery_exec.so(_ZN5mongo18PipelineProxyStage6doWorkEPm+0x4C) [0x7F1E00B6B60C]&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:merge_on_secondaries] 2020-01-24T17:55:02.259-0500 d20021|  libquery_exec.so(_ZN5mongo9PlanStage4workEPm+0x56) [0x7F1E00B6C0E6]&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:merge_on_secondaries] 2020-01-24T17:55:02.259-0500 d20021|  libquery_exec.so(_ZN5mongo16PlanExecutorImpl12_getNextImplEPNS_11SnapshottedINS_8DocumentEEEPNS_8RecordIdE+0x1B2) [0x7F1E00BC5D02]&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:merge_on_secondaries] 2020-01-24T17:55:02.259-0500 d20021|  libquery_exec.so(_ZN5mongo16PlanExecutorImpl7getNextEPNS_8DocumentEPNS_8RecordIdE+0x4B) [0x7F1E00BC677B]&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:merge_on_secondaries] 2020-01-24T17:55:02.259-0500 d20021|  libstandalone.so(+0x9C98E) [0x7F1DF9EE698E]&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:merge_on_secondaries] 2020-01-24T17:55:02.259-0500 d20021|  libstandalone.so(_ZN5mongo12runAggregateEPNS_16OperationContextERKNS_15NamespaceStringERKNS_18AggregationRequestERKNS_18LiteParsedPipelineERKNS_7BSONObjERKSt6vectorINS_9PrivilegeESaISF_EEPNS_3rpc21ReplyBuilderInterfaceE+0x1E32) [0x7F1DF9EEAD02]&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:merge_on_secondaries] 2020-01-24T17:55:02.259-0500 d20021|  libstandalone.so(+0x969EC) [0x7F1DF9EE09EC]&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:merge_on_secondaries] 2020-01-24T17:55:02.259-0500 d20021|  libservice_entry_point_common.so(+0x17C3C) [0x7F1DFA146C3C]&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:merge_on_secondaries] 2020-01-24T17:55:02.259-0500 d20021|  libservice_entry_point_common.so(+0x1A615) [0x7F1DFA149615]&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:merge_on_secondaries] 2020-01-24T17:55:02.259-0500 d20021|  libservice_entry_point_common.so(_ZN5mongo23ServiceEntryPointCommon13handleRequestEPNS_16OperationContextERKNS_7MessageERKNS0_5HooksE+0x4F3) [0x7F1DFA14A483]&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:merge_on_secondaries] 2020-01-24T17:55:02.259-0500 d20021|  libservice_context_d.so(_ZN5mongo23ServiceEntryPointMongod13handleRequestEPNS_16OperationContextERKNS_7MessageE+0x41) [0x7F1E01D0EB31]&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:merge_on_secondaries] 2020-01-24T17:55:02.259-0500 d20021|  libservice_entry_point.so(_ZN5mongo19ServiceStateMachine15_processMessageENS0_11ThreadGuardE+0x108) [0x7F1E01CFD218]&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:merge_on_secondaries] 2020-01-24T17:55:02.259-0500 d20021|  libservice_entry_point.so(_ZN5mongo19ServiceStateMachine15_runNextInGuardENS0_11ThreadGuardE+0x11A) [0x7F1E01CF8D8A]&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:merge_on_secondaries] 2020-01-24T17:55:02.259-0500 d20021|  libservice_entry_point.so(+0x175BC) [0x7F1E01CFA5BC]&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:merge_on_secondaries] 2020-01-24T17:55:02.259-0500 d20021|  libservice_executor.so(_ZN5mongo9transport26ServiceExecutorSynchronous8scheduleESt8functionIFvvEENS0_15ServiceExecutor13ScheduleFlagsENS0_23ServiceExecutorTaskNameE+0x13B) [0x7F1E01CD73AB]&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:merge_on_secondaries] 2020-01-24T17:55:02.260-0500 d20021|  libservice_entry_point.so(_ZN5mongo19ServiceStateMachine22_scheduleNextWithGuardENS0_11ThreadGuardENS_9transport15ServiceExecutor13ScheduleFlagsENS2_23ServiceExecutorTaskNameENS0_9OwnershipE+0x117) [0x7F1E01CF6167]&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:merge_on_secondaries] 2020-01-24T17:55:02.260-0500 d20021|  libservice_entry_point.so(_ZN5mongo19ServiceStateMachine15_sourceCallbackENS_6StatusE+0x665) [0x7F1E01CF7655]&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:merge_on_secondaries] 2020-01-24T17:55:02.260-0500 d20021|  libservice_entry_point.so(_ZN5mongo19ServiceStateMachine14_sourceMessageENS0_11ThreadGuardE+0x316) [0x7F1E01CF80E6]&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:merge_on_secondaries] 2020-01-24T17:55:02.260-0500 d20021|  libservice_entry_point.so(_ZN5mongo19ServiceStateMachine15_runNextInGuardENS0_11ThreadGuardE+0xDB) [0x7F1E01CF8D4B]&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:merge_on_secondaries] 2020-01-24T17:55:02.260-0500 d20021|  libservice_entry_point.so(+0x175BC) [0x7F1E01CFA5BC]&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:merge_on_secondaries] 2020-01-24T17:55:02.260-0500 d20021|  libservice_executor.so(+0x1D776) [0x7F1E01CD7776]&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:merge_on_secondaries] 2020-01-24T17:55:02.260-0500 d20021|  libtransport_layer_common.so(+0x3EB6) [0x7F1DFEA53EB6]&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:merge_on_secondaries] 2020-01-24T17:55:02.260-0500 d20021|  libtransport_layer_common.so(+0x3F24) [0x7F1DFEA53F24]&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:merge_on_secondaries] 2020-01-24T17:55:02.260-0500 d20021|  libpthread.so.0(+0x76DB) [0x7F1DFAB006DB]&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:merge_on_secondaries] 2020-01-24T17:55:02.260-0500 d20021|  libc.so.6(clone+0x3F) [0x7F1DFA82788F]&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:merge_on_secondaries] 2020-01-24T17:55:02.260-0500 d20021| -----  END BACKTRACE  -----&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;</comment>
                            <comment id="2763564" author="david.storch" created="Fri, 24 Jan 2020 22:20:44 +0000"  >&lt;p&gt;Notes from looking into this: $merge on secondaries does appear to work already for sharded clusters. $merge on secondaries for a replica set fails with an error like this:&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:merge_on_secondaries] 2020-01-24T17:06:20.856-0500 assert: command failed: {&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:merge_on_secondaries] 2020-01-24T17:06:20.856-0500 	&quot;topologyVersion&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:merge_on_secondaries] 2020-01-24T17:06:20.856-0500 		&quot;processId&quot; : ObjectId(&quot;5e2b6a59484b531afc9ce793&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:merge_on_secondaries] 2020-01-24T17:06:20.856-0500 		&quot;counter&quot; : NumberLong(3)&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:merge_on_secondaries] 2020-01-24T17:06:20.856-0500 	},&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:merge_on_secondaries] 2020-01-24T17:06:20.856-0500 	&quot;operationTime&quot; : Timestamp(1579903580, 10),&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:merge_on_secondaries] 2020-01-24T17:06:20.856-0500 	&quot;ok&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;[js_test:merge_on_secondaries] 2020-01-24T17:06:20.857-0500 	&quot;errmsg&quot; : &quot;Not primary while writing to test.output&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:merge_on_secondaries] 2020-01-24T17:06:20.857-0500 	&quot;code&quot; : 189,&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:merge_on_secondaries] 2020-01-24T17:06:20.857-0500 	&quot;codeName&quot; : &quot;PrimarySteppedDown&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:merge_on_secondaries] 2020-01-24T17:06:20.857-0500 	&quot;$clusterTime&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:merge_on_secondaries] 2020-01-24T17:06:20.857-0500 		&quot;clusterTime&quot; : Timestamp(1579903580, 10),&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:merge_on_secondaries] 2020-01-24T17:06:20.857-0500 		&quot;signature&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:merge_on_secondaries] 2020-01-24T17:06:20.857-0500 			&quot;hash&quot; : BinData(0,&quot;AAAAAAAAAAAAAAAAAAAAAAAAAAA=&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:merge_on_secondaries] 2020-01-24T17:06:20.857-0500 			&quot;keyId&quot; : NumberLong(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;[js_test:merge_on_secondaries] 2020-01-24T17:06:20.857-0500 		}&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:merge_on_secondaries] 2020-01-24T17:06:20.857-0500 	}&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:merge_on_secondaries] 2020-01-24T17:06:20.858-0500 } : aggregate failed&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;This happens because replica set nodes that are not shard servers are initialized with &lt;tt&gt;MongoInterfaceStandalone&lt;/tt&gt; rather than &lt;tt&gt;MongoInterfaceShardSvr&lt;/tt&gt;. The methods that $merge calls into in the &quot;standalone&quot; implementation blindly attempt local writes.&lt;/p&gt;

&lt;p&gt;Things to follow-up on:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;To choose whether to write locally or target writes to another node, we need to consult the ReplicationCoordinator while holding the RSTL lock. Is it ok to acquire this lock, make the check, and then drop the lock?
	&lt;ul&gt;
		&lt;li&gt;If we conclude that we are a secondary, drop the lock, and then we become primary then no harm is done. We should be able to target writes to ourself. It won&apos;t be efficient, but it will work.&lt;/li&gt;
		&lt;li&gt;If we conclude that we are a primary but then we become secondary, then the operation will fail with a NotMaster error. I think this is ok? Like, can&apos;t that happen while inserts are taking place in general and applications need to be prepared to handle such errors?&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
	&lt;li&gt;Is the ClusterWriter available and fully-functional on replica set nodes?&lt;/li&gt;
&lt;/ul&gt;
</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>7.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 28 Jan 2020 14:54:59 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        4 years, 1 week, 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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-1770</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>kelly.lewis@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            4 years, 1 week, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>david.storch@mongodb.com</customfieldvalue>
            <customfieldvalue>tess.avitabile@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hwkfvj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hw8gxj:</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="3291">Query 2020-02-10</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|hwk24v:</customfieldvalue>

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