<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:05:00 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-4114] If a shard contacts another shard for the first time for a MapReduce, the sharding connection hook won&apos;t be set</title>
                <link>https://jira.mongodb.org/browse/SERVER-4114</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;...meaning it won&apos;t automatically authenticate against the other shard, making the MapReduce crash, making the mongod crash.&lt;/p&gt;</description>
                <environment></environment>
        <key id="23912">SERVER-4114</key>
            <summary>If a shard contacts another shard for the first time for a MapReduce, the sharding connection hook won&apos;t be set</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="9">Done</resolution>
                                        <assignee username="kristina">Kristina Chodorow</assignee>
                                    <reporter username="kristina">Kristina Chodorow</reporter>
                        <labels>
                    </labels>
                <created>Fri, 21 Oct 2011 16:40:58 +0000</created>
                <updated>Mon, 11 Jul 2016 18:35:28 +0000</updated>
                            <resolved>Mon, 14 Nov 2011 20:51:53 +0000</resolved>
                                                    <fixVersion>2.0.2</fixVersion>
                    <fixVersion>2.1.0</fixVersion>
                                    <component>MapReduce</component>
                    <component>Security</component>
                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="66748" author="auto" created="Tue, 15 Nov 2011 08:41:22 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;agirbal&apos;, u&apos;name&apos;: u&apos;agirbal&apos;, u&apos;email&apos;: u&apos;antoine@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4114&quot; title=&quot;If a shard contacts another shard for the first time for a MapReduce, the sharding connection hook won&amp;#39;t be set&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4114&quot;&gt;&lt;del&gt;SERVER-4114&lt;/del&gt;&lt;/a&gt;: added admin user to each shard for better testing&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/d9ee2526f4c46251a32ae3f347bdef80fb466cc3&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/d9ee2526f4c46251a32ae3f347bdef80fb466cc3&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="66650" author="auto" created="Mon, 14 Nov 2011 20:51:44 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;agirbal&apos;, u&apos;name&apos;: u&apos;agirbal&apos;, u&apos;email&apos;: u&apos;antoine@10gen.com&apos;}
&lt;p&gt;Message: - &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4114&quot; title=&quot;If a shard contacts another shard for the first time for a MapReduce, the sharding connection hook won&amp;#39;t be set&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4114&quot;&gt;&lt;del&gt;SERVER-4114&lt;/del&gt;&lt;/a&gt;: also add auth hook to shardConnectionPool&lt;br/&gt;
Branch: v2.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/58a501e059ba633bc6e331a8114638ac6fba2ac0&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/58a501e059ba633bc6e331a8114638ac6fba2ac0&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="65591" author="antoine" created="Wed, 9 Nov 2011 01:23:50 +0000"  >&lt;p&gt;marking backport back to yes, since another commit was made&lt;/p&gt;</comment>
                            <comment id="65335" author="antoine" created="Tue, 8 Nov 2011 05:12:04 +0000"  >&lt;p&gt;I added a test, but it does not properly test the fix.&lt;br/&gt;
The problem is that when servers are all running localhost then auth is more permissive.&lt;br/&gt;
This issue does not appear if running using localhost.&lt;br/&gt;
When testing manually with distincts hosts, it fails before fix and works after fix.&lt;br/&gt;
to make proper test we would have to use distinct IPs maybe using virtual interfaces.&lt;/p&gt;</comment>
                            <comment id="65334" author="auto" created="Tue, 8 Nov 2011 05:07:14 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;agirbal&apos;, u&apos;name&apos;: u&apos;agirbal&apos;, u&apos;email&apos;: u&apos;antoine@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4114&quot; title=&quot;If a shard contacts another shard for the first time for a MapReduce, the sharding connection hook won&amp;#39;t be set&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4114&quot;&gt;&lt;del&gt;SERVER-4114&lt;/del&gt;&lt;/a&gt;: added test&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/fe7f1c66ffa4490b24f5b314e918115afa353db5&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/fe7f1c66ffa4490b24f5b314e918115afa353db5&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="65289" author="auto" created="Mon, 7 Nov 2011 22:46:19 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;agirbal&apos;, u&apos;name&apos;: u&apos;agirbal&apos;, u&apos;email&apos;: u&apos;antoine@10gen.com&apos;}
&lt;p&gt;Message: - &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4114&quot; title=&quot;If a shard contacts another shard for the first time for a MapReduce, the sharding connection hook won&amp;#39;t be set&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4114&quot;&gt;&lt;del&gt;SERVER-4114&lt;/del&gt;&lt;/a&gt;: also add auth hook to shardConnectionPool&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/4158c0c58830fc1e8b7fe5a97e771e5df0ebd61f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/4158c0c58830fc1e8b7fe5a97e771e5df0ebd61f&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="65283" author="antoine" created="Mon, 7 Nov 2011 22:08:43 +0000"  >&lt;p&gt;code in d_state.cpp that adds hook:&lt;/p&gt;

&lt;p&gt;    void ShardedConnectionInfo::addHook() {&lt;br/&gt;
        static bool done = false;&lt;br/&gt;
        if (!done) &lt;/p&gt;
{
            LOG(1) &amp;lt;&amp;lt; &quot;adding sharding hook&quot; &amp;lt;&amp;lt; endl;
            pool.addHook(new ShardingConnectionHook(false));
            done = true;
        }
&lt;p&gt;    }&lt;/p&gt;

&lt;p&gt;It seems that there is 2nd pool shardConnectionPool that comes in from s/ code.&lt;br/&gt;
if I add this line to code then MR is fixed:&lt;br/&gt;
shardConnectionPool.addHook(new ShardingConnectionHook(false));&lt;/p&gt;

&lt;p&gt;lmk if it sounds like good fix&lt;/p&gt;</comment>
                            <comment id="65270" author="antoine" created="Mon, 7 Nov 2011 21:28:28 +0000"  >&lt;p&gt;the fix is not working.&lt;br/&gt;
it seems there are 2 connection pools being used, and hook gets installed on the wrong one.&lt;/p&gt;</comment>
                            <comment id="62419" author="auto" created="Tue, 25 Oct 2011 04:07:49 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;kchodorow&apos;, u&apos;name&apos;: u&apos;Kristina&apos;, u&apos;email&apos;: u&apos;kristina@10gen.com&apos;}
&lt;p&gt;Message: Set auth hook in final MR step, if it wasn&apos;t set previously &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4114&quot; title=&quot;If a shard contacts another shard for the first time for a MapReduce, the sharding connection hook won&amp;#39;t be set&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4114&quot;&gt;&lt;del&gt;SERVER-4114&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: v2.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/de05cdff5373ff6d179e16320b39ff41ee55f185&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/de05cdff5373ff6d179e16320b39ff41ee55f185&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="62368" author="auto" created="Mon, 24 Oct 2011 22:20:53 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;kchodorow&apos;, u&apos;name&apos;: u&apos;Kristina&apos;, u&apos;email&apos;: u&apos;kristina@10gen.com&apos;}
&lt;p&gt;Message: Set auth hook in final MR step, if it wasn&apos;t set previously &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4114&quot; title=&quot;If a shard contacts another shard for the first time for a MapReduce, the sharding connection hook won&amp;#39;t be set&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4114&quot;&gt;&lt;del&gt;SERVER-4114&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/5e0672d6deee862820c103b908f1c8844e4b0c66&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/5e0672d6deee862820c103b908f1c8844e4b0c66&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="26570">SERVER-4490</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>10.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 24 Oct 2011 22:20:53 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            12 years, 14 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>antoine</customfieldvalue>
            <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>kristina</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hronm7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrgcnb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>8958</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_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|ht0dof:</customfieldvalue>

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