<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:11:49 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-46556] Inconstitent count and find results</title>
                <link>https://jira.mongodb.org/browse/SERVER-46556</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;I have a mongo master and replica-set running in docker. I was doing a load test using JMeter using Golang as the server which writes to the database.&#160;&lt;/p&gt;

&lt;p&gt;In the middle of the load test, I pulled the plug (I mean literally).&#160;&lt;/p&gt;

&lt;p&gt;I turn the machine back on, login to the mongo console.&lt;/p&gt;

&lt;p&gt;I did a db.newCollection.count(), it resulted 2007.&lt;/p&gt;

&lt;p&gt;I did db.newCollection.remove({}), it said in the output &quot;&#160;WriteResult({ &quot;nRemoved&quot; : 1767 }) &quot;&lt;/p&gt;

&lt;p&gt;Then I did a&#160;db.newCollection.count(), it said 240.&lt;/p&gt;

&lt;p&gt;but, but,&#160;&lt;/p&gt;

&lt;p&gt;when I did a db.newCollection.find() it shows nothing.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;I am attaching the screenshot below.&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://jira.mongodb.org/secure/attachment/249769/249769_image-2020-03-03-08-34-17-954.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;I have also attached the mongo logs below if that helps!&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Host machine:&lt;/p&gt;

&lt;p&gt;OS. Ubuntu 16.04.&lt;/p&gt;

&lt;p&gt;CPU:&#160;Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Docker version:&lt;/p&gt;

&lt;p&gt;Client: Docker Engine - Community&lt;br/&gt;
 Version: 19.03.4&lt;br/&gt;
 API version: 1.40&lt;br/&gt;
 Go version: go1.12.10&lt;br/&gt;
 Git commit: 9013bf583a&lt;br/&gt;
 Built: Fri Oct 18 15:53:51 2019&lt;br/&gt;
 OS/Arch: linux/amd64&lt;br/&gt;
 Experimental: false&lt;/p&gt;

&lt;p&gt;Server: Docker Engine - Community&lt;br/&gt;
 Engine:&lt;br/&gt;
 Version: 19.03.4&lt;br/&gt;
 API version: 1.40 (minimum version 1.12)&lt;br/&gt;
 Go version: go1.12.10&lt;br/&gt;
 Git commit: 9013bf583a&lt;br/&gt;
 Built: Fri Oct 18 15:52:23 2019&lt;br/&gt;
 OS/Arch: linux/amd64&lt;br/&gt;
 Experimental: false&lt;br/&gt;
 containerd:&lt;br/&gt;
 Version: 1.2.10&lt;br/&gt;
 GitCommit: b34a5c8af56e510852c35414db4c1f4fa6172339&lt;br/&gt;
 runc:&lt;br/&gt;
 Version: 1.0.0-rc8+dev&lt;br/&gt;
 GitCommit: 3e425f80a8c931f88e6d94a8c831b9d5aa481657&lt;br/&gt;
 docker-init:&lt;br/&gt;
 Version: 0.18.0&lt;br/&gt;
 GitCommit: fec3683&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Mongo Image Details:&lt;/p&gt;

&lt;p&gt;MongoDB shell version v4.2.2&lt;br/&gt;
connecting to: mongodb://127.0.0.1:27017/version?compressors=disabled&amp;amp;gssapiServiceName=mongodb&lt;br/&gt;
Implicit session: session { &quot;id&quot; : UUID(&quot;70eb55b4-373a-4939-8b4a-57b0a1e1fbda&quot;) }&lt;br/&gt;
MongoDB server version: 4.2.2&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="1213952">SERVER-46556</key>
            <summary>Inconstitent count and find results</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="13202">Works as Designed</resolution>
                                        <assignee username="dmitry.agranat@mongodb.com">Dmitry Agranat</assignee>
                                    <reporter username="saivarunvishal@gmail.com">Sai Varun Reddy Daram</reporter>
                        <labels>
                    </labels>
                <created>Tue, 3 Mar 2020 03:09:27 +0000</created>
                <updated>Fri, 27 Oct 2023 13:52:55 +0000</updated>
                            <resolved>Wed, 4 Mar 2020 23:16:05 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="2933599" author="saivarunvishal@gmail.com" created="Wed, 4 Mar 2020 02:12:18 +0000"  >&lt;p&gt;@Dmitry Agranat, snap! This can be closed then.&#160;&lt;/p&gt;</comment>
                            <comment id="2932638" author="dmitry.agranat" created="Tue, 3 Mar 2020 17:38:02 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=saivarunvishal%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;saivarunvishal@gmail.com&quot;&gt;saivarunvishal@gmail.com&lt;/a&gt;, After an unclean shutdown of a mongod, count statistics reported by count() may be inaccurate as &lt;a href=&quot;https://docs.mongodb.com/manual/reference/method/db.collection.count/index.html#accuracy-after-unexpected-shutdown&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;documented here&lt;/a&gt;.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="249769" name="image-2020-03-03-08-34-17-954.png" size="94968" author="saivarunvishal@gmail.com" created="Tue, 3 Mar 2020 03:04:19 +0000"/>
                            <attachment id="249768" name="mongo-rs-1.log" size="84635" author="saivarunvishal@gmail.com" created="Tue, 3 Mar 2020 03:06:18 +0000"/>
                            <attachment id="249767" name="mongo.log" size="17806" author="saivarunvishal@gmail.com" created="Tue, 3 Mar 2020 03:06:18 +0000"/>
                    </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_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 3 Mar 2020 17:38:02 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        3 years, 49 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_17050" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Downstream Team Attention</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16941"><![CDATA[Not Needed]]></customfieldvalue>

                        </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>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            3 years, 49 weeks, 1 day 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>dmitry.agranat@mongodb.com</customfieldvalue>
            <customfieldvalue>saivarunvishal@gmail.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hwyonj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hwmkh3:</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[dmitry.agranat@mongodb.com]]></customfieldvalue>
    

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

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