<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:10:45 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-6105] Dropping sharded collection and recreating it confuses mongos</title>
                <link>https://jira.mongodb.org/browse/SERVER-6105</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;I recently dropped a sharded collection, recreated it, and re-sharded it. Seems like mongos doesn&apos;t know how to handle that. Restarting mongos reloads the config and thus fixes the problem, but this seems to me like a bug.&lt;/p&gt;

&lt;p&gt;On the mongos logs I see these messages flying by at a high rate:&lt;/p&gt;

&lt;p&gt;Fri Jun 15 18:16:39 &lt;span class=&quot;error&quot;&gt;&amp;#91;WriteBackListener-mongo3.foobar.com:27018&amp;#93;&lt;/span&gt; writeback failed because of stale config, retrying attempts: 16678&lt;br/&gt;
Fri Jun 15 18:16:39 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn4784&amp;#93;&lt;/span&gt; ChunkManager: time to load chunks for pb3.hourly_stats: 2ms sequenceNumber: 54284 version: 1|0&lt;br/&gt;
Fri Jun 15 18:16:39 &lt;span class=&quot;error&quot;&gt;&amp;#91;WriteBackListener-mongo3.foobar.com:27018&amp;#93;&lt;/span&gt; created new distributed lock for pb3.hourly_stats on mongoconfig1.foobar.com:27019,mongoconfig2.foobar.com:27019,mongoconfig3.foobar.com:27019 ( lock timeout : 900000, ping interval : 30000, process : 0 )&lt;br/&gt;
Fri Jun 15 18:16:39 &lt;span class=&quot;error&quot;&gt;&amp;#91;WriteBackListener-mongo2.foobar.com:27018&amp;#93;&lt;/span&gt; writeback failed because of stale config, retrying attempts: 17967&lt;br/&gt;
Fri Jun 15 18:16:39 &lt;span class=&quot;error&quot;&gt;&amp;#91;WriteBackListener-mongo3.foobar.com:27018&amp;#93;&lt;/span&gt; ChunkManager: time to load chunks for pb3.hourly_stats: 2ms sequenceNumber: 54285 version: 1|0&lt;br/&gt;
Fri Jun 15 18:16:39 &lt;span class=&quot;error&quot;&gt;&amp;#91;WriteBackListener-mongo2.foobar.com:27018&amp;#93;&lt;/span&gt; created new distributed lock for pb3.hourly_stats on mongoconfig1.foobar.com:27019,mongoconfig2.foobar.com:27019,mongoconfig3.foobar.com:27019 ( lock timeout : 900000, ping interval : 30000, process : 0 )&lt;br/&gt;
Fri Jun 15 18:16:39 &lt;span class=&quot;error&quot;&gt;&amp;#91;WriteBackListener-mongo2.foobar.com:27018&amp;#93;&lt;/span&gt; ChunkManager: time to load chunks for pb3.hourly_stats: 1ms sequenceNumber: 54286 version: 1|0&lt;br/&gt;
Fri Jun 15 18:16:39 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn4776&amp;#93;&lt;/span&gt; created new distributed lock for pb3.hourly_stats on mongoconfig1.foobar.com:27019,mongoconfig2.foobar.com:27019,mongoconfig3.foobar.com:27019 ( lock timeout : 900000, ping interval : 30000, process : 0 )&lt;br/&gt;
Fri Jun 15 18:16:39 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn4784&amp;#93;&lt;/span&gt;      setShardVersion failed host: mongo2.foobar.com:27018 &lt;/p&gt;
{ oldVersion: Timestamp 0|0, ns: &quot;pb3.hourly_stats&quot;, version: Timestamp 448000|41, globalVersion: Timestamp 0|0, errmsg: &quot;client version differs from config&apos;s for collection &apos;pb3.hourly_stats&apos;&quot;, ok: 0.0 }
&lt;p&gt;Fri Jun 15 18:16:39 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn4784&amp;#93;&lt;/span&gt; Assertion: 10429:setShardVersion failed host: mongo2.foobar.com:27018 &lt;/p&gt;
{ oldVersion: Timestamp 0|0, ns: &quot;pb3.hourly_stats&quot;, version: Timestamp 448000|41, globalVersion: Timestamp 0|0, errmsg: &quot;client version differs from config&apos;s for collection &apos;pb3.hourly_stats&apos;&quot;, ok: 0.0 }
&lt;p&gt;0x5350c2 0x7f5f95 0x7f5790 &lt;br/&gt;
 mongos(_ZN5mongo11msgassertedEiPKc+0x112) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5350c2&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongos() &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7f5f95&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongos() &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7f5790&amp;#93;&lt;/span&gt;&lt;br/&gt;
Fri Jun 15 18:16:39 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn4784&amp;#93;&lt;/span&gt; ~ScopedDBConnection: _conn != null&lt;br/&gt;
Fri Jun 15 18:16:39 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn4784&amp;#93;&lt;/span&gt; AssertionException while processing op type : 2002 to : pb3.hourly_stats :: caused by :: 10429 setShardVersion failed host: mongo2.foobar.com:27018 &lt;/p&gt;
{ oldVersion: Timestamp 0|0, ns: &quot;pb3.hourly_stats&quot;, version: Timestamp 448000|41, globalVersion: Timestamp 0|0, errmsg: &quot;client version differs from config&apos;s for collection &apos;pb3.hourly_stats&apos;&quot;, ok: 0.0 }
&lt;p&gt;Fri Jun 15 18:16:39 &lt;span class=&quot;error&quot;&gt;&amp;#91;WriteBackListener-mongo3.foobar.com:27018&amp;#93;&lt;/span&gt; writeback failed because of stale config, retrying attempts: 16679&lt;br/&gt;
Fri Jun 15 18:16:39 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn4776&amp;#93;&lt;/span&gt; ChunkManager: time to load chunks for pb3.hourly_stats: 2ms sequenceNumber: 54287 version: 1|0&lt;br/&gt;
Fri Jun 15 18:16:39 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn4783&amp;#93;&lt;/span&gt; created new distributed lock for pb3.hourly_stats on mongoconfig1.foobar.com:27019,mongoconfig2.foobar.com:27019,mongoconfig3.foobar.com:27019 ( lock timeout : 900000, ping interval : 30000, process : 0 )&lt;/p&gt;



&lt;p&gt;On the non-primary shards I see these messages flying by at a high rate:&lt;/p&gt;

&lt;p&gt;Fri Jun 15 18:31:17 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn28000&amp;#93;&lt;/span&gt; no chunk for collection pb3.hourly_stats on shard shard0002&lt;br/&gt;
Fri Jun 15 18:31:17 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn28001&amp;#93;&lt;/span&gt; no chunk for collection pb3.hourly_stats on shard shard0002&lt;br/&gt;
Fri Jun 15 18:31:17 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn27998&amp;#93;&lt;/span&gt; no chunk for collection pb3.hourly_stats on shard shard0002&lt;br/&gt;
Fri Jun 15 18:31:17 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn27998&amp;#93;&lt;/span&gt; end connection xxx.xxx.xxx.xxx:48064&lt;br/&gt;
Fri Jun 15 18:31:17 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; connection accepted from xxx.xxx.xxx.xxx:51367 #28002&lt;br/&gt;
Fri Jun 15 18:31:17 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn27999&amp;#93;&lt;/span&gt; no chunk for collection pb3.hourly_stats on shard shard0002&lt;br/&gt;
Fri Jun 15 18:31:17 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn27999&amp;#93;&lt;/span&gt; end connection xxx.xxx.xxx.xxx:48065&lt;br/&gt;
Fri Jun 15 18:31:17 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; connection accepted from xxx.xxx.xxx.xxx:51368 #28003&lt;br/&gt;
Fri Jun 15 18:31:17 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn28002&amp;#93;&lt;/span&gt; no chunk for collection pb3.hourly_stats on shard shard0002&lt;br/&gt;
Fri Jun 15 18:31:17 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn28003&amp;#93;&lt;/span&gt; no chunk for collection pb3.hourly_stats on shard shard0002&lt;br/&gt;
Fri Jun 15 18:31:17 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn28001&amp;#93;&lt;/span&gt; no chunk for collection pb3.hourly_stats on shard shard0002&lt;br/&gt;
Fri Jun 15 18:31:17 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn28000&amp;#93;&lt;/span&gt; no chunk for collection pb3.hourly_stats on shard shard0002&lt;br/&gt;
Fri Jun 15 18:31:17 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn28000&amp;#93;&lt;/span&gt; end connection xxx.xxx.xxx.xxx:46821&lt;br/&gt;
Fri Jun 15 18:31:17 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; connection accepted from xxx.xxx.xxx.xxx:46825 #28004&lt;br/&gt;
Fri Jun 15 18:31:17 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn28002&amp;#93;&lt;/span&gt; no chunk for collection pb3.hourly_stats on shard shard0002&lt;br/&gt;
Fri Jun 15 18:31:17 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn28003&amp;#93;&lt;/span&gt; no chunk for collection pb3.hourly_stats on shard shard0002&lt;br/&gt;
Fri Jun 15 18:31:17 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn28004&amp;#93;&lt;/span&gt; no chunk for collection pb3.hourly_stats on shard shard0002&lt;br/&gt;
Fri Jun 15 18:31:17 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn28001&amp;#93;&lt;/span&gt; no chunk for collection pb3.hourly_stats on shard shard0002&lt;br/&gt;
Fri Jun 15 18:31:17 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn28001&amp;#93;&lt;/span&gt; end connection xxx.xxx.xxx.xxx:46823&lt;br/&gt;
Fri Jun 15 18:31:17 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; connection accepted from xxx.xxx.xxx.xxx:46826 #28005&lt;br/&gt;
Fri Jun 15 18:31:17 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn28002&amp;#93;&lt;/span&gt; no chunk for collection pb3.hourly_stats on shard shard0002&lt;br/&gt;
Fri Jun 15 18:31:17 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn28004&amp;#93;&lt;/span&gt; no chunk for collection pb3.hourly_stats on shard shard0002&lt;br/&gt;
Fri Jun 15 18:31:17 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn28003&amp;#93;&lt;/span&gt; no chunk for collection pb3.hourly_stats on shard shard0002&lt;/p&gt;

&lt;p&gt;And on the primary shard I see a lot of connections being opened and closed, but nothing else.&lt;/p&gt;</description>
                <environment>Ubuntu on EC2</environment>
        <key id="41424">SERVER-6105</key>
            <summary>Dropping sharded collection and recreating it confuses mongos</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="-1">Unassigned</assignee>
                                    <reporter username="zacwitte">Zac Witte</reporter>
                        <labels>
                    </labels>
                <created>Fri, 15 Jun 2012 18:59:26 +0000</created>
                <updated>Mon, 10 Jun 2013 16:40:31 +0000</updated>
                            <resolved>Mon, 10 Jun 2013 16:40:31 +0000</resolved>
                                    <version>2.0.3</version>
                                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                    <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="27068">SERVER-4537</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        11 years, 35 weeks, 5 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>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, 35 weeks, 5 days 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>zacwitte</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrnzvr:</customfieldvalue>

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

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

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