<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:58:00 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[SERVER-1776] mongos counting bulk insert as 1 op WAS: mongostat shows different insert data when connecting to mongos versus single primary in single rep set</title>
                <link>https://jira.mongodb.org/browse/SERVER-1776</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Problem:&lt;br/&gt;
I&apos;m inserting a bunch of data and seeign different results from mongostat depending on what I connect to.&lt;/p&gt;

&lt;p&gt;Configuration is&lt;br/&gt;
&amp;#8211; single mongos&lt;br/&gt;
&amp;#8211; single replset, with a single mongod&lt;br/&gt;
&amp;#8211; single config&lt;/p&gt;

&lt;p&gt;If I connect to the mongos with mongostat I see the following reported&lt;/p&gt;

&lt;p&gt;vero:10gen$ ./software/mongodb-osx-x86_64-1.6.0/bin/mongostat --port 27500 --host ec2-67-202-19-63.compute-1.amazonaws.com&lt;br/&gt;
connected to: ec2-67-202-19-63.compute-1.amazonaws.com:27500&lt;br/&gt;
insert/s query/s update/s delete/s getmore/s command/s mapped  vsize    res faults/s locked % idx miss %  conn       time   &lt;br/&gt;
       3       0        0        0         0         3      0    166     14        0        0          0     3   17:17:27 &lt;br/&gt;
       2       0        0        0         0         1      0    166     14        0        0          0     3   17:17:28 &lt;br/&gt;
       2       0        0        0         0         2      0    166     14        0        0          0     3   17:17:29 &lt;/p&gt;

&lt;p&gt;However, if I connect to the single mongod I see the following&lt;/p&gt;

&lt;p&gt;insert/s query/s update/s delete/s getmore/s command/s flushes/s mapped  vsize    res faults/s locked % idx miss %    q t|r|w  conn       time &lt;br/&gt;
   16327       0        0        0         0         3         0   8349   8633   5743        0     32.9          0      0|0|0     8   17:18:16 &lt;br/&gt;
   16383       0        0        0         0         2         0   8349   8633   5747        0     29.5          0      0|0|0     8   17:18:17 &lt;br/&gt;
   13617       0        0        0         0         3         0   8349   8633   5743        0       42          0      0|0|0     8   17:18:18 &lt;br/&gt;
   10867       0        0        0         0         3         0   8349   8633   5747        0     28.2          0      0|0|0     8   17:18:19 &lt;/p&gt;

&lt;p&gt;These latter figures match the I see from doing a db.collection.count()&lt;/p&gt;

&lt;p&gt;Reproduce:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Setup the following
	&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
		&lt;li&gt;one config server&lt;/li&gt;
		&lt;li&gt;one replset, with a single mongod&lt;/li&gt;
		&lt;li&gt;one config server&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;


&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Start a bulk insert through the mongos&lt;/li&gt;
	&lt;li&gt;run mongostat on the mongos&lt;/li&gt;
	&lt;li&gt;run mongostat on the mongod&lt;/li&gt;
	&lt;li&gt;compair the results&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Business Case:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;User Expereince&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment>ec2 / ubuntu 10.04</environment>
        <key id="13070">SERVER-1776</key>
            <summary>mongos counting bulk insert as 1 op WAS: mongostat shows different insert data when connecting to mongos versus single primary in single rep set</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="brandon">Brandon Diamond</assignee>
                                    <reporter username="alvin">Alvin Richards</reporter>
                        <labels>
                    </labels>
                <created>Sat, 11 Sep 2010 00:24:16 +0000</created>
                <updated>Tue, 29 May 2012 14:53:34 +0000</updated>
                            <resolved>Tue, 29 Nov 2011 19:00:03 +0000</resolved>
                                    <version>1.7.0</version>
                                                    <component>Admin</component>
                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="69237" author="brandon" created="Mon, 28 Nov 2011 15:11:50 +0000"  >&lt;p&gt;In reading over your ticket a bit more closely, I noticed that you appear to be using version 1.6: &quot;./software/mongodb-osx-x86_64-1.6.0/bin/mongostat&quot;&lt;/p&gt;

&lt;p&gt;The problem you are reporting appears to have been fixed in the most recent version of MongoDB. Please upgrade to 2.0.1.&lt;/p&gt;
</comment>
                            <comment id="68049" author="brandon" created="Mon, 21 Nov 2011 20:51:11 +0000"  >&lt;p&gt;I&apos;ve attempted to reproduce this bug by (1) repeatedly performing bulk insert using pymongo (i.e., db.collection.insert(&lt;span class=&quot;error&quot;&gt;&amp;#91;large array of objects&amp;#93;&lt;/span&gt;)) against a local mongos, (2) running mongostat against mongos, (3) running mongostat against the primary in the shard, and (4) comparing the output of both. The mongos exhibits more inserts (presumably due to the oplog and sharding) but the overall total is comparable to the inserts at the primary.&lt;/p&gt;

&lt;p&gt;Are you still able to reproduce the problem?&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 21 Nov 2011 20:51:11 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        12 years, 12 weeks, 2 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>
                            12 years, 12 weeks, 2 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>alvin</customfieldvalue>
            <customfieldvalue>brandon</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrpfav:</customfieldvalue>

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

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

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