<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:12:28 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-26546] Use unsharded collections in mongodb shard</title>
                <link>https://jira.mongodb.org/browse/SERVER-26546</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;We use the mongodb shard cluster, event collections use unsharded. But now the event collections in multiple nodes, why the number of nodes, not only in the primary shard&lt;/p&gt;

&lt;p&gt;mongos:&lt;/p&gt;
{  &quot;_id&quot; : &quot;event&quot;,  &quot;primary&quot; : &quot;node02&quot;,  &quot;partitioned&quot; : false }

&lt;p&gt;node01:PRIMARY&amp;gt; show dbs;&lt;br/&gt;
account    0.000GB&lt;br/&gt;
admin      0.000GB&lt;br/&gt;
alliance   0.000GB&lt;br/&gt;
battle     0.001GB&lt;br/&gt;
cache      0.000GB&lt;br/&gt;
cheating   0.000GB&lt;br/&gt;
chest      0.000GB&lt;br/&gt;
common     0.001GB&lt;br/&gt;
event      0.000GB&lt;br/&gt;
guide      0.000GB&lt;br/&gt;
local      0.024GB&lt;br/&gt;
mail       0.000GB&lt;br/&gt;
message    0.000GB&lt;br/&gt;
mission    0.000GB&lt;br/&gt;
pve        0.000GB&lt;br/&gt;
pvp        0.000GB&lt;br/&gt;
reward     0.000GB&lt;br/&gt;
statistic  0.000GB&lt;br/&gt;
store      0.000GB&lt;br/&gt;
node01:PRIMARY&amp;gt; show tables;&lt;br/&gt;
iap_display&lt;br/&gt;
platinum_shop&lt;br/&gt;
special_offer&lt;br/&gt;
special_offer_count&lt;br/&gt;
special_offer_refresh_count&lt;br/&gt;
store_refresh_count&lt;br/&gt;
supply_drop&lt;/p&gt;

&lt;p&gt;node02:PRIMARY&amp;gt; show dbs;&lt;br/&gt;
account    0.000GB&lt;br/&gt;
admin      0.000GB&lt;br/&gt;
alliance   0.001GB&lt;br/&gt;
battle     0.001GB&lt;br/&gt;
cache      0.000GB&lt;br/&gt;
cheating   0.000GB&lt;br/&gt;
chest      0.000GB&lt;br/&gt;
common     0.001GB&lt;br/&gt;
event      0.000GB&lt;br/&gt;
fang       0.000GB&lt;br/&gt;
guide      0.000GB&lt;br/&gt;
local      0.016GB&lt;br/&gt;
log        0.001GB&lt;br/&gt;
mail       0.000GB&lt;br/&gt;
message    0.000GB&lt;br/&gt;
mission    0.000GB&lt;br/&gt;
payment    0.000GB&lt;br/&gt;
pve        0.001GB&lt;br/&gt;
pvp        0.001GB&lt;br/&gt;
reward     0.000GB&lt;br/&gt;
statistic  0.000GB&lt;br/&gt;
store      0.001GB&lt;br/&gt;
test_demo  0.000GB&lt;br/&gt;
node02:PRIMARY&amp;gt; show tables&lt;br/&gt;
platinum_shop&lt;br/&gt;
special_offer&lt;br/&gt;
special_offer_refresh_count&lt;br/&gt;
store_refresh_count&lt;br/&gt;
supply_drop&lt;/p&gt;</description>
                <environment></environment>
        <key id="322383">SERVER-26546</key>
            <summary>Use unsharded collections in mongodb shard</summary>
                <type id="6" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14720&amp;avatarType=issuetype">Question</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="kelsey.schubert@mongodb.com">Kelsey Schubert</assignee>
                                    <reporter username="poorgreatly">hunter</reporter>
                        <labels>
                    </labels>
                <created>Mon, 10 Oct 2016 12:14:00 +0000</created>
                <updated>Fri, 6 Jan 2017 19:16:35 +0000</updated>
                            <resolved>Fri, 6 Jan 2017 19:16:35 +0000</resolved>
                                    <version>3.2.10</version>
                                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="1471438" author="thomas.schubert" created="Fri, 6 Jan 2017 19:16:26 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=poorgreatly&quot; class=&quot;user-hover&quot; rel=&quot;poorgreatly&quot;&gt;poorgreatly&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;We haven&#8217;t heard back from you for some time, so I&#8217;m going to mark this ticket as resolved. Unfortunately, without additional information about how to reproduce this behavior, it&apos;s very challenging to understand what occurred. If you are able to reproduce this issue or encounter it again and can provide additional details about the circumstances that cause this issue, we will reopen this ticket and continue to investigate.&lt;/p&gt;

&lt;p&gt;Kind regards,&lt;br/&gt;
Thomas&lt;/p&gt;</comment>
                            <comment id="1447427" author="thomas.schubert" created="Fri, 2 Dec 2016 00:45:24 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=poorgreatly&quot; class=&quot;user-hover&quot; rel=&quot;poorgreatly&quot;&gt;poorgreatly&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Sorry for the delay getting back to you. Unfortunately, we have not been able to identify the cause of this behavior. Is this still an issue for you? Have you observed this issue since then?&lt;/p&gt;

&lt;p&gt;Thank you,&lt;br/&gt;
Thomas&lt;/p&gt;</comment>
                            <comment id="1406396" author="poorgreatly" created="Wed, 12 Oct 2016 15:59:47 +0000"  >&lt;p&gt;hi Thomas Schubert,&lt;br/&gt;
Event database, log database, fang database. These databases are not set shard, before the 10th&lt;/p&gt;

&lt;p&gt;Sorry, forgot to tell you to set shard, after 10&lt;/p&gt;</comment>
                            <comment id="1406392" author="poorgreatly" created="Wed, 12 Oct 2016 15:55:56 +0000"  >&lt;p&gt;hi Thomas Schubert,&lt;br/&gt;
At present, I also found that php read data, sometimes read to, and sometimes can not read, there is actually data.&lt;/p&gt;</comment>
                            <comment id="1406389" author="poorgreatly" created="Wed, 12 Oct 2016 15:54:22 +0000"  >&lt;p&gt;hi Thomas Schubert,&lt;br/&gt;
You look under the 10 before the log, event database, log database, fang database, I found a problem, all the collections are done shard&lt;/p&gt;</comment>
                            <comment id="1406387" author="poorgreatly" created="Wed, 12 Oct 2016 15:51:58 +0000"  >&lt;p&gt;hi Thomas Schubert,&lt;br/&gt;
Event collections Yesterday I just added, because there are problems encountered before the said.&lt;/p&gt;</comment>
                            <comment id="1406379" author="thomas.schubert" created="Wed, 12 Oct 2016 15:47:09 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=poorgreatly&quot; class=&quot;user-hover&quot; rel=&quot;poorgreatly&quot;&gt;poorgreatly&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thank you for providing the logs. I see the following log messages &lt;tt&gt;mongos_01&lt;/tt&gt;:&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;mongos.log:2016-10-10T13:34:05.647+0000 I ACCESS   [conn2485] Successfully authenticated as principal ADMIN on admin&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;mongos.log:2016-10-10T13:34:05.656+0000 I SHARDING [conn2485] distributed lock &apos;event&apos; acquired for &apos;enableSharding&apos;, ts : 57fb98cda73698c225dfd0c0&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;mongos.log:2016-10-10T13:34:05.674+0000 I SHARDING [conn2485] Placing [event] on: node02&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;mongos.log:2016-10-10T13:34:05.674+0000 I SHARDING [conn2485] Enabling sharding for database [event] in config db&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;mongos.log:2016-10-10T13:34:05.681+0000 I SHARDING [conn2485] distributed lock with ts: 57fb98cda73698c225dfd0c0&apos; unlocked.&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;mongos.log:2016-10-10T13:34:05.720+0000 I COMMAND  [conn2485] CMD: shardcollection: { shardCollection: &quot;event.seven_day_sign&quot;, key: { index_id: &quot;hashed&quot; } }&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 indicates that the collections in the event database are sharded. Would you please investigate whether this command explains the behavior that you observe?&lt;/p&gt;

&lt;p&gt;Thank you,&lt;br/&gt;
Thomas&lt;/p&gt;</comment>
                            <comment id="1406000" author="poorgreatly" created="Wed, 12 Oct 2016 05:19:59 +0000"  >&lt;p&gt;hi Thomas Schubert,&lt;br/&gt;
   Thanks,I already upload mongos  ,config server,shard&apos;s primary node log&lt;/p&gt;</comment>
                            <comment id="1405996" author="thomas.schubert" created="Wed, 12 Oct 2016 05:07:52 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=poorgreatly&quot; class=&quot;user-hover&quot; rel=&quot;poorgreatly&quot;&gt;poorgreatly&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thanks for clarifying that you haven&apos;t executed &lt;tt&gt;movePrimary&lt;/tt&gt;. So we can get a better idea of what is going on here, would you please provide the logs that I requested?&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Log of a mongos&lt;/li&gt;
	&lt;li&gt;Log of the primary config server (or first config server if SCCC)&lt;/li&gt;
	&lt;li&gt;Logs of each shard&apos;s primary node&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;I&apos;ve created a &lt;a href=&quot;https://10gen-httpsupload.s3.amazonaws.com/upload_forms/a99c1b98-d3e7-499a-a231-85a59075f725.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;secure upload portal&lt;/a&gt; for you to use. Files uploaded to this portal are only visible to MongoDB employees investigating this issue and are routinely deleted after some time.&lt;/p&gt;

&lt;p&gt;Thanks again,&lt;br/&gt;
Thomas&lt;/p&gt;</comment>
                            <comment id="1405977" author="poorgreatly" created="Wed, 12 Oct 2016 03:11:12 +0000"  >&lt;p&gt;hi Thomas Schubert,&lt;br/&gt;
    I have not executed movePrimary&lt;/p&gt;</comment>
                            <comment id="1405282" author="thomas.schubert" created="Tue, 11 Oct 2016 15:41:18 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=poorgreatly&quot; class=&quot;user-hover&quot; rel=&quot;poorgreatly&quot;&gt;poorgreatly&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thank you for reporting this behavior. Have you executed &lt;a href=&quot;https://docs.mongodb.com/manual/reference/command/movePrimary/#dbcmd.movePrimary&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&lt;tt&gt;movePrimary&lt;/tt&gt;&lt;/a&gt; against this database? If so, would you please outline the steps you took?&lt;/p&gt;

&lt;p&gt;To help us continue to investigate, would you please provide the complete logs of a mongos, the primary config server, and the primary of each shard?&lt;/p&gt;

&lt;p&gt;Kind regards,&lt;br/&gt;
Thomas&lt;/p&gt;</comment>
                            <comment id="1404869" author="poorgreatly" created="Tue, 11 Oct 2016 06:18:46 +0000"  >&lt;p&gt;3.2.9 also have this problem&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="140951" name="11.png" size="19841" author="poorgreatly" created="Mon, 10 Oct 2016 12:14:00 +0000"/>
                            <attachment id="140952" name="2222.png" size="12375" author="poorgreatly" created="Mon, 10 Oct 2016 12:14:00 +0000"/>
                            <attachment id="140953" name="33333.png" size="13098" author="poorgreatly" created="Mon, 10 Oct 2016 12:14:00 +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_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 11 Oct 2016 15:41:18 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            7 years, 5 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>poorgreatly</customfieldvalue>
            <customfieldvalue>kelsey.schubert@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrjtsf:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsqns7:</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_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>
                                    <customfieldvalue><![CDATA[kelsey.schubert@mongodb.com]]></customfieldvalue>
    

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

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