<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:52:32 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>[JAVA-542] CursorNotFound Exception</title>
                <link>https://jira.mongodb.org/browse/JAVA-542</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;Scott asked me to open this bug. We have been seeing CursorNotFound exceptions very infrequently in production. I added some client side logging the result of which is the following:&lt;/p&gt;

&lt;p&gt;resultSize=242 queryTime=0 toListTime=108 server=localhost:27021 cursorId=0&lt;br/&gt;
resultSize=375 queryTime=0 toListTime=27 server=localhost:27021 cursorId=0&lt;br/&gt;
resultSize=227 queryTime=0 toListTime=130 server=localhost:27021 cursorId=0&lt;br/&gt;
resultSize=242 queryTime=0 toListTime=179 server=localhost:27021 cursorId=0&lt;/p&gt;

&lt;p&gt;The toListTime is the time in ms that it took to read the entire cursor into memory. We do this immediately after the query to get the closest thing to a snapshot view of the world when the query occurred. We were getting odd data races otherwise.&lt;/p&gt;</description>
                <environment>Scala 2.9, Java 1.6, Ubuntu 10.04, MongoDB 2.0.1</environment>
        <key id="33232">JAVA-542</key>
            <summary>CursorNotFound Exception</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="jeff.yemin@mongodb.com">Jeffrey Yemin</assignee>
                                    <reporter username="bdarfler">Benjamin Darfler</reporter>
                        <labels>
                    </labels>
                <created>Sun, 18 Mar 2012 23:49:07 +0000</created>
                <updated>Wed, 4 Dec 2013 16:07:33 +0000</updated>
                            <resolved>Tue, 4 Sep 2012 01:29:14 +0000</resolved>
                                    <version>2.0</version>
                                                    <component>Performance</component>
                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="184578" author="raman.yushkou@mtvncontractor.com" created="Fri, 9 Nov 2012 15:49:29 +0000"  >&lt;p&gt;We have faced with this issue on following configuration:&lt;br/&gt;
db version: 2.0.2 &lt;br/&gt;
java driver version: 2.8.0&lt;/p&gt;

&lt;p&gt;Can we reopen this ticket?&lt;/p&gt;</comment>
                            <comment id="159979" author="jeff.yemin" created="Tue, 4 Sep 2012 01:29:14 +0000"  >&lt;p&gt;Haven&apos;t heard back from you in a while, so closing this out.  Please re-open if necessary.&lt;/p&gt;</comment>
                            <comment id="157236" author="jeff.yemin" created="Mon, 27 Aug 2012 22:05:32 +0000"  >&lt;p&gt;Were you able to add numGetMores to your logging?  If so, can you report the results?&lt;/p&gt;</comment>
                            <comment id="100013" author="bdarfler" created="Mon, 19 Mar 2012 03:29:07 +0000"  >&lt;p&gt;Whatever Casbah 2.1.5.0 wraps.&lt;/p&gt;</comment>
                            <comment id="100012" author="scotthernandez" created="Mon, 19 Mar 2012 03:21:47 +0000"  >&lt;p&gt;Please add numGetMores() to the logging. I may have been pre-mature suggesting we move this to a java issue as it may still be sharding related. The next sample should help us see if it is java related or server related.&lt;/p&gt;

&lt;p&gt;What version of the java driver library are you using?&lt;/p&gt;</comment>
                            <comment id="100011" author="bdarfler" created="Mon, 19 Mar 2012 03:14:19 +0000"  >&lt;p&gt;The collection has an average document size of 400 bytes. I&apos;m not sure of the numGetMores() value. &lt;/p&gt;

&lt;p&gt;I can add it to our logging the next time this happens.&lt;/p&gt;

&lt;p&gt;Those runs are only when we got CursorNotFound exceptions. I wouldn&apos;t say things were necessarily slow.&lt;/p&gt;

&lt;p&gt;This is a sharded system. Additionally, I believe this occurs after we manually move chunks around.&lt;/p&gt;</comment>
                            <comment id="100006" author="scotthernandez" created="Mon, 19 Mar 2012 02:59:21 +0000"  >&lt;p&gt;What is the document size for these queries and what is the value of numGetMores() from the cursor for these runs? Basically, did they require more than one round-trip?&lt;/p&gt;

&lt;p&gt;Were these runs when you got a CursorNotFound, or just when things were slow?&lt;/p&gt;

&lt;p&gt;These also came from a aharded system, correct?&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrgj07:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>10022</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>