<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:53:14 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-857] read failure when takes too long</title>
                <link>https://jira.mongodb.org/browse/JAVA-857</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;when i read mongodb with code below:&lt;br/&gt;
cursor = col.findAll();&lt;br/&gt;
cursor.addOption(Bytes.QUERYOPTION_NOTIMEOUT);&lt;br/&gt;
while(cursor.hasNext()) {&lt;br/&gt;
func(cursor.next())&lt;br/&gt;
}&lt;br/&gt;
If func takes a little longer than 20 ms, i find maybe not all tuples in the collection are visited and there is no exception thrown.The colleciton is not very big and just has about 2m small tuples. It occurs sometimes but not every time. Is it a bug in mongoDB driver.?&lt;/p&gt;</description>
                <environment></environment>
        <key id="79892">JAVA-857</key>
            <summary>read failure when takes too long</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="-1">Unassigned</assignee>
                                    <reporter username="whwhzzz">Wang Han</reporter>
                        <labels>
                    </labels>
                <created>Fri, 21 Jun 2013 05:57:35 +0000</created>
                <updated>Fri, 24 Jan 2014 05:06:47 +0000</updated>
                            <resolved>Fri, 24 Jan 2014 05:06:47 +0000</resolved>
                                    <version>2.10.1</version>
                                                    <component>Connection Management</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="465636" author="jeff.yemin" created="Wed, 4 Dec 2013 18:57:37 +0000"  >&lt;p&gt;Wang,&lt;/p&gt;

&lt;p&gt;Do you have any updates?  If not, I&apos;m going to close this ticket.&lt;/p&gt;

&lt;p&gt;Thanks!&lt;/p&gt;</comment>
                            <comment id="379802" author="jeff.yemin" created="Fri, 12 Jul 2013 14:22:54 +0000"  >&lt;p&gt;So you&apos;re missing documents even without a slow function in the loop?  Are you using any read preference (like reading from a secondary)?  Also, how do you know if you are missing documents?  Since other threads are writing to the collection concurrently, how do you know how many documents should be returned?  Can you provide specific numbers of how many seem to be missing, and of the missing ones, which ones are missing?&lt;/p&gt;


&lt;p&gt;Thanks,&lt;br/&gt;
Jeff&lt;/p&gt;</comment>
                            <comment id="367111" author="whwhzzz" created="Tue, 25 Jun 2013 08:43:27 +0000"  >&lt;p&gt;someone has the same problem with me and he posted in google group:&lt;br/&gt;
&lt;a href=&quot;https://groups.google.com/forum/#!topic/mongodb-user/JXLx7Gu_b74&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://groups.google.com/forum/#!topic/mongodb-user/JXLx7Gu_b74&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="366247" author="whwhzzz" created="Mon, 24 Jun 2013 08:22:28 +0000"  >&lt;p&gt;There are two threads read all from the collection . And about 5 thread randomly read and write to the same collection. &lt;br/&gt;
If i changed this code to &lt;br/&gt;
when i read mongodb with code below:&lt;br/&gt;
cursor = col.findAll();&lt;br/&gt;
cursor.addOption(Bytes.QUERYOPTION_NOTIMEOUT);&lt;br/&gt;
List&amp;lt;T&amp;gt; list = new LinkedList&amp;lt;T&amp;gt;()&lt;br/&gt;
while(cursor.hasNext()) &lt;/p&gt;
{ list.add(cursor.next()); }

&lt;p&gt;if so, the list has all the tuples read from this collection.&lt;/p&gt;

&lt;p&gt;It works OK in a single-machine but failed as above when using replica set.&lt;/p&gt;

</comment>
                            <comment id="364968" author="jeff.yemin" created="Fri, 21 Jun 2013 14:11:31 +0000"  >&lt;p&gt;If the cursor timed out, you would get an exception, so I&apos;m not sure what&apos;s going on here.  We will try to reproduce it.&lt;/p&gt;

&lt;p&gt;Since you say that it does not happen every time, is there any pattern that you can discern?&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|hrgaov:</customfieldvalue>

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