<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:50:26 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-19280] messy database names in mongos</title>
                <link>https://jira.mongodb.org/browse/SERVER-19280</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;I have a sharded cluster with 4 shards using MongoDB 3.0.3 and WiredTiger engine.  &lt;br/&gt;
Recently, when I log in mongos and  type `sh.status()`, I find many messy names of database shown in attachment.  &lt;br/&gt;
But when I log in the primary shard of the messy databases specified in the `sh.status()`, I can&apos;t find those messy databases shown in attachment.  &lt;br/&gt;
I&apos;m sure I don&apos;t insert these messy databases in my cluster.&lt;/p&gt;</description>
                <environment></environment>
        <key id="214731">SERVER-19280</key>
            <summary>messy database names in 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="4">Incomplete</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="tottishi05">DaixiShi</reporter>
                        <labels>
                    </labels>
                <created>Fri, 3 Jul 2015 10:00:08 +0000</created>
                <updated>Sat, 9 Jan 2016 13:15:55 +0000</updated>
                            <resolved>Sat, 9 Jan 2016 13:15:49 +0000</resolved>
                                    <version>3.0.3</version>
                    <version>3.0.4</version>
                                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>9</watches>
                                                                                                                <comments>
                            <comment id="1130283" author="ramon.fernandez" created="Sat, 9 Jan 2016 13:14:59 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=tottishi05&quot; class=&quot;user-hover&quot; rel=&quot;tottishi05&quot;&gt;tottishi05&lt;/a&gt;, we haven&apos;t heard back from you for some time so I&apos;m going to close this ticket. If this is still an issue for you please let us know so we can reopen the ticket.&lt;/p&gt;

&lt;p&gt;Regards,&lt;br/&gt;
Ram&#243;n.&lt;/p&gt;</comment>
                            <comment id="1085919" author="samk" created="Wed, 11 Nov 2015 19:30:21 +0000"  >&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;Sorry for not getting back to you sooner. I think that there are a few things we can do to move this forward. First, we want to be absolutely sure that we can rule out an issue with your driver: &lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;Please be sure to use the latest release of the C# driver.&lt;/li&gt;
	&lt;li&gt;Ensure that no other drivers or tools may be inadvertently creating databases outside of your driver.&lt;/li&gt;
	&lt;li&gt;If this problem continues to happen, even after upgrading your cluster (see below,) it might be useful to see if you can reproduce the issue using a different driver or client (including the &lt;tt&gt;mongo&lt;/tt&gt; shell) to make sure that it&apos;s not a problem in either C# or your application code.&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;Secondly, and perhaps more importantly it&apos;s very possible that you&apos;ve run into an issue that the change included in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-17723&quot; title=&quot;Sharding catalog cache&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-17723&quot;&gt;&lt;del&gt;SERVER-17723&lt;/del&gt;&lt;/a&gt; would resolve. &lt;/p&gt;

&lt;p&gt;Could you consider running your application in a test environment using 3.2.0-rc2? &lt;/p&gt;

&lt;p&gt;Thanks for your time, and sorry again for the delay. &lt;/p&gt;

&lt;p&gt;Cheers,&lt;br/&gt;
sam &lt;/p&gt;</comment>
                            <comment id="965264" author="tottishi05" created="Tue, 14 Jul 2015 01:44:16 +0000"  >&lt;p&gt;shard04 with correct namespace&lt;/p&gt;</comment>
                            <comment id="965260" author="tottishi05" created="Tue, 14 Jul 2015 01:43:40 +0000"  >&lt;p&gt;shard01 with messy collections&lt;/p&gt;</comment>
                            <comment id="965259" author="tottishi05" created="Tue, 14 Jul 2015 01:42:31 +0000"  >&lt;p&gt;Thanks for Kaloian Manassiev.&lt;br/&gt;
It is unfortunate that not only mongos but also the shard is corrupted with messy namespaces as the new pictures attached.&lt;br/&gt;
Only the &quot;shard01&quot; has messy tables/collections.&lt;/p&gt;</comment>
                            <comment id="964368" author="kaloian.manassiev" created="Mon, 13 Jul 2015 14:14:31 +0000"  >&lt;p&gt;Some notes on the progress of investigation:&lt;/p&gt;

&lt;p&gt;In MongoDB 3.0 every request, which needs to check for the existence of a particular namespace, whether it is read or write, would create a database entry. This was fixed in 3.2 as part of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-17723&quot; title=&quot;Sharding catalog cache&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-17723&quot;&gt;&lt;del&gt;SERVER-17723&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Since the databases with the messy names are only present on MongoS (i.e., the config metadata) but not on the shards themselves, this must either have been a read operation, or it was a write operation, which subsequently failed on MongoD.&lt;/p&gt;</comment>
                            <comment id="960527" author="tottishi05" created="Wed, 8 Jul 2015 09:56:21 +0000"  >&lt;p&gt;Hi, Kaloian Manassiev. &lt;br/&gt;
I have uploaded the two logs of mongos process.&lt;br/&gt;
If you find the reason of my problem, please notice me.&lt;br/&gt;
Thanks very much&lt;/p&gt;</comment>
                            <comment id="959483" author="kaloian.manassiev" created="Tue, 7 Jul 2015 14:52:33 +0000"  >&lt;p&gt;Thank you for the information, &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=tottishi05&quot; class=&quot;user-hover&quot; rel=&quot;tottishi05&quot;&gt;tottishi05&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Let me check around to see whether there are some known issues with the C# driver at this version.&lt;/p&gt;

&lt;p&gt;As of this time I am working on the hypothesis that the driver somehow sent a wrong BSON and the command value was interpreted as a database name instead of command, so it should not be related to the combination of 3.0.3 and 3.0.4 in any way.&lt;/p&gt;

&lt;p&gt;Did this issue happen over a recent time period and is there any possibility that you still have the mongos log files from around the time it happened? If you still have them, would you mind attaching them to the ticket - this may greatly help with debugging.&lt;/p&gt;

&lt;p&gt;Note that if you are uploading logs and they may contact any sensitive information, send me a private message and I will give you a secure SCP server.&lt;/p&gt;

&lt;p&gt;Thank you for your help.&lt;/p&gt;

&lt;p&gt;Best regards,&lt;br/&gt;
-Kal.&lt;/p&gt;</comment>
                            <comment id="959049" author="tottishi05" created="Tue, 7 Jul 2015 01:30:58 +0000"  >&lt;p&gt;Thanks for Kaloian Manassiev!&lt;br/&gt;
My sharded cluster is deployed on Cent OS 2.6.4.&lt;br/&gt;
I use the C# driver `MongoDB.Driver` and `MongoDB.Bson` of version 1.10.0.62.&lt;br/&gt;
With your lead, I check the version of all my mongod and mongos processes and find that:&lt;br/&gt;
1. all of the three mongod processes of config server are using 3.0.3&lt;br/&gt;
2. mongod process of shard 4 is using the 3.0.4 verion but all of the other mongods are using 3.0.4&lt;br/&gt;
3. One of the mongos process is using 3.0.3 with the other using 3.0.4&lt;/p&gt;

&lt;p&gt;So, do you think my problem is associated with my mongodb version of 3.0.3 and 3.0.4??&lt;/p&gt;</comment>
                            <comment id="958346" author="kaloian.manassiev" created="Mon, 6 Jul 2015 14:01:27 +0000"  >&lt;p&gt;Hi Daixi,&lt;/p&gt;

&lt;p&gt;Thank you very much for reporting this issue.&lt;/p&gt;

&lt;p&gt;From a first look, it appears like the messed up database names include partial BSON binary data from a command (for example, the two that begin with MediaDissector).&lt;/p&gt;

&lt;p&gt;What driver are you using to connect to mongos? I am wondering whether the driver might be constructing an incorrect command namespace, which in turn was incorrectly interpreted by mongos as the name of the database instead of as a command action.&lt;/p&gt;

&lt;p&gt;Also, did this happen after an upgrade or clean 3.0 install and are all of your instances (both mongos and mongod) at 3.0?&lt;/p&gt;

&lt;p&gt;Thank you in advance.&lt;/p&gt;

&lt;p&gt;-Kal.&lt;/p&gt;</comment>
                            <comment id="957696" author="tottishi05" created="Fri, 3 Jul 2015 12:44:12 +0000"  >&lt;p&gt;I have two mongos process.  &lt;br/&gt;
I log in them and get the same result.&lt;/p&gt;</comment>
                            <comment id="957694" author="ramon.fernandez" created="Fri, 3 Jul 2015 12:41:00 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=tottishi05&quot; class=&quot;user-hover&quot; rel=&quot;tottishi05&quot;&gt;tottishi05&lt;/a&gt;, do you observe the same behavior in all your &lt;tt&gt;mongos&lt;/tt&gt; nodes? Can you please connect to all your &lt;tt&gt;mongos&lt;/tt&gt; instances and run the same commands?&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="80443" name="messy_code.png" size="31332" author="tottishi05" created="Fri, 3 Jul 2015 10:00:08 +0000"/>
                            <attachment id="80444" name="messy_code2.png" size="2469" author="tottishi05" created="Fri, 3 Jul 2015 10:00:08 +0000"/>
                            <attachment id="80865" name="mongos1.rar" size="121967169" author="tottishi05" created="Wed, 8 Jul 2015 09:26:46 +0000"/>
                            <attachment id="80867" name="mongos2.rar" size="11970372" author="tottishi05" created="Wed, 8 Jul 2015 09:54:08 +0000"/>
                            <attachment id="81717" name="sh1.png" size="7916" author="tottishi05" created="Tue, 14 Jul 2015 01:43:40 +0000"/>
                            <attachment id="81718" name="sh4.png" size="4945" author="tottishi05" created="Tue, 14 Jul 2015 01:44:16 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>12.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>Fri, 3 Jul 2015 12:39:26 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            8 years, 5 weeks, 4 days 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>tottishi05</customfieldvalue>
            <customfieldvalue>kaloian.manassiev@mongodb.com</customfieldvalue>
            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>
            <customfieldvalue>sam.kleinman</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrl1dj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsecrb:</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="718">Sharding B (10/30/15)</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hs8wwf:</customfieldvalue>

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