<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:03:25 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-3568] MongoException &quot;norepl&quot; is thrown when data is inserted in a sharded environment using WriteConcern &quot;ReplicasSafe&quot;.</title>
                <link>https://jira.mongodb.org/browse/SERVER-3568</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;To test the mongoDb sharding capabilities we have continuously inserted data into a single shard consisting of one replica set (1 Master, 1 Secondary and 1 Arbiter). Almost every time a chunk is splitted (as indicated by the mongod log file of the master) a MongeException &quot;norepl&quot; occurs. We are using the mongo java driver 2.6.2 but could also reproduce the problem with the php driver. &lt;/p&gt;

&lt;p&gt;This only happens when we use the WriteConcern &quot;ReplicasSafe&quot;.&lt;/p&gt;

&lt;p&gt;To reproduce the problem a java maven project is attached to this issue. Here are the necessary steps to run the application:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Read the README.txt to see the necessary test setup.&lt;/li&gt;
	&lt;li&gt;Adapt the &quot;config.properties&quot; to use the correct mongos uri and writeconcern.&lt;/li&gt;
	&lt;li&gt;Start the Inserter (located in src\main\java\com\seitenbau\testing\mongo\runner) main method and watch the console output.&lt;/li&gt;
&lt;/ul&gt;






</description>
                <environment>Ubuntu 10.10 x86_64</environment>
        <key id="20800">SERVER-3568</key>
            <summary>MongoException &quot;norepl&quot; is thrown when data is inserted in a sharded environment using WriteConcern &quot;ReplicasSafe&quot;.</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="3">Duplicate</resolution>
                                        <assignee username="scotthernandez">Scott Hernandez</assignee>
                                    <reporter username="michaelsb">Michael Wagner</reporter>
                        <labels>
                    </labels>
                <created>Wed, 10 Aug 2011 11:30:49 +0000</created>
                <updated>Wed, 15 Aug 2012 14:04:17 +0000</updated>
                            <resolved>Tue, 8 May 2012 15:22:33 +0000</resolved>
                                    <version>1.8.2</version>
                    <version>1.9.1</version>
                                                    <component>Replication</component>
                    <component>Sharding</component>
                                        <votes>4</votes>
                                    <watches>7</watches>
                                                                                                                <comments>
                            <comment id="117289" author="scotthernandez" created="Tue, 8 May 2012 15:22:33 +0000"  >&lt;p&gt;It means no replication (is enabled). This caused by &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-5243&quot; title=&quot;mongos will route getLastError command to the config server when last insert triggered a split&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-5243&quot;&gt;&lt;del&gt;SERVER-5243&lt;/del&gt;&lt;/a&gt;, in which the safe check (getlasterror) is incorrectly sent to the config servers and not the shards.&lt;/p&gt;</comment>
                            <comment id="117250" author="amare" created="Tue, 8 May 2012 14:22:02 +0000"  >&lt;p&gt;We too encounter this error when continuously inserting binary files into a MongoDB database setup with shards and replicas. And we too use the &lt;tt&gt;REPLICAS_SAFE&lt;/tt&gt; &lt;em&gt;WriteConcern&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;I had to put some sleep time between the each resource insertion into the database (where a resource is made up of several binary files). This pause &lt;em&gt;alleviates&lt;/em&gt; the problem in the sense that fewer resources fail upon insertion, but some of them still fail. Attempting to insert again the failed resources succeeds...&lt;/p&gt;

&lt;p&gt;Also, could you include in the exception a far more expressive wording than an enigmatic abbreviation like &quot;norepl&quot;? Which, by the way, what does it stand for: &quot;no reply&quot; or &quot;no replica&quot;? &apos;cause we&apos;ve made bets on that over here. &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;

&lt;p&gt;Thanks.&lt;/p&gt;</comment>
                            <comment id="55892" author="michaelsb" created="Thu, 22 Sep 2011 14:50:09 +0000"  >&lt;p&gt;We could reproduce this issue with mongoDb version 2.0.0. To create the test environment we have stopped all mongo processes, replaced the old binaries, performend a clean up upon all data and finally started all mongo processes again.&lt;/p&gt;</comment>
                            <comment id="55884" author="michaelsb" created="Thu, 22 Sep 2011 14:06:35 +0000"  >&lt;p&gt;Additional hint: this issue only appears if we use one replica set defined as a shard&lt;/p&gt;</comment>
                            <comment id="55883" author="michaelsb" created="Thu, 22 Sep 2011 14:06:19 +0000"  >&lt;p&gt;Here is our configuration&lt;/p&gt;

&lt;p&gt;#replica set:&lt;br/&gt;
PRIMARY&amp;gt; rs.status()&lt;br/&gt;
{&lt;br/&gt;
        &quot;set&quot; : &quot;shard1&quot;,&lt;br/&gt;
        &quot;date&quot; : ISODate(&quot;2011-09-22T12:56:08Z&quot;),&lt;br/&gt;
        &quot;myState&quot; : 1,&lt;br/&gt;
        &quot;members&quot; : [&lt;br/&gt;
                {&lt;br/&gt;
                        &quot;_id&quot; : 0,&lt;br/&gt;
                        &quot;name&quot; : &quot;mongo-master1:27017&quot;,&lt;br/&gt;
                        &quot;health&quot; : 1,&lt;br/&gt;
                        &quot;state&quot; : 1,&lt;br/&gt;
                        &quot;stateStr&quot; : &quot;PRIMARY&quot;,&lt;br/&gt;
                        &quot;optime&quot; : &lt;/p&gt;
{
                                &quot;t&quot; : 1316696168000,
                                &quot;i&quot; : 210
                        }
&lt;p&gt;,&lt;br/&gt;
                        &quot;optimeDate&quot; : ISODate(&quot;2011-09-22T12:56:08Z&quot;),&lt;br/&gt;
                        &quot;self&quot; : true&lt;br/&gt;
                },&lt;br/&gt;
                {&lt;br/&gt;
                        &quot;_id&quot; : 1,&lt;br/&gt;
                        &quot;name&quot; : &quot;mongo-secondary1:27017&quot;,&lt;br/&gt;
                        &quot;health&quot; : 1,&lt;br/&gt;
                        &quot;state&quot; : 2,&lt;br/&gt;
                        &quot;stateStr&quot; : &quot;SECONDARY&quot;,&lt;br/&gt;
                        &quot;uptime&quot; : 768,&lt;br/&gt;
                        &quot;optime&quot; : &lt;/p&gt;
{
                                &quot;t&quot; : 1316696168000,
                                &quot;i&quot; : 111
                        }
&lt;p&gt;,&lt;br/&gt;
                        &quot;optimeDate&quot; : ISODate(&quot;2011-09-22T12:56:08Z&quot;),&lt;br/&gt;
                        &quot;lastHeartbeat&quot; : ISODate(&quot;2011-09-22T12:56:08Z&quot;),&lt;br/&gt;
                        &quot;pingMs&quot; : 0&lt;br/&gt;
                },&lt;br/&gt;
                {&lt;br/&gt;
                        &quot;_id&quot; : 2,&lt;br/&gt;
                        &quot;name&quot; : &quot;mongo-secondary1:4444&quot;,&lt;br/&gt;
                        &quot;health&quot; : 1,&lt;br/&gt;
                        &quot;state&quot; : 7,&lt;br/&gt;
                        &quot;stateStr&quot; : &quot;ARBITER&quot;,&lt;br/&gt;
                        &quot;uptime&quot; : 778,&lt;br/&gt;
                        &quot;optime&quot; : &lt;/p&gt;
{
                                &quot;t&quot; : 0,
                                &quot;i&quot; : 0
                        }
&lt;p&gt;,&lt;br/&gt;
                        &quot;optimeDate&quot; : ISODate(&quot;1970-01-01T00:00:00Z&quot;),&lt;br/&gt;
                        &quot;lastHeartbeat&quot; : ISODate(&quot;2011-09-22T12:56:08Z&quot;),&lt;br/&gt;
                        &quot;pingMs&quot; : 0&lt;br/&gt;
                }&lt;br/&gt;
        ],&lt;br/&gt;
        &quot;ok&quot; : 1&lt;br/&gt;
}&lt;/p&gt;


&lt;p&gt;#config.shards:	  &lt;br/&gt;
mongos&amp;gt; db.shards.find().toArray()&lt;br/&gt;
[&lt;/p&gt;
        {
                &quot;_id&quot; : &quot;shard1&quot;,
                &quot;host&quot; : &quot;shard1/mongo-master1:27017,mongo-secondary1:27017&quot;
        }
&lt;p&gt;]&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="32467">SERVER-5243</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="12575" name="mongo-sharding-test.zip" size="17346" author="michaelsb" created="Wed, 10 Aug 2011 11:30:49 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>5.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 11 Apr 2012 14:52:15 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            11 years, 41 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>amare</customfieldvalue>
            <customfieldvalue>michaelsb</customfieldvalue>
            <customfieldvalue>scotthernandez</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrou5z:</customfieldvalue>

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

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

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