<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:52:24 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-483] MongoException$Network on stale connection pool for selection queries only</title>
                <link>https://jira.mongodb.org/browse/JAVA-483</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;Steps to reproduce&lt;/p&gt;

&lt;p&gt;1. Establish connection to mongo (i.e.: execute a single query)&lt;br/&gt;
2. Pause java process and stop/start mongo process&lt;br/&gt;
3. Perform one or more selection queries in java process (the first selection query ends with the exception below, all remaining queries succeed.)&lt;/p&gt;

&lt;p&gt;This may be the expected behavior in this scenario but was surprising since inserts do not exhibit the behavior.&lt;/p&gt;

&lt;p&gt;Exception:&lt;/p&gt;

&lt;p&gt;com.mongodb.MongoException$Network: can&apos;t call something : /127.0.0.1:27017/connection_test&lt;br/&gt;
	at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:227)&lt;br/&gt;
	at com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:305)&lt;br/&gt;
	at com.mongodb.DBCursor._check(DBCursor.java:369)&lt;br/&gt;
	at com.mongodb.DBCursor._hasNext(DBCursor.java:498)&lt;br/&gt;
	at com.mongodb.DBCursor.hasNext(DBCursor.java:523)&lt;br/&gt;
	at foobar.Testing123.readTest(Testing123.java:65)&lt;br/&gt;
	at foobar.Testing123.main(Testing123.java:38)&lt;br/&gt;
Caused by: java.io.EOFException&lt;br/&gt;
	at org.bson.io.Bits.readFully(Bits.java:37)&lt;br/&gt;
	at org.bson.io.Bits.readFully(Bits.java:28)&lt;br/&gt;
	at com.mongodb.Response.&amp;lt;init&amp;gt;(Response.java:39)&lt;br/&gt;
	at com.mongodb.DBPort.go(DBPort.java:128)&lt;br/&gt;
	at com.mongodb.DBPort.call(DBPort.java:79)&lt;br/&gt;
	at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:218)&lt;br/&gt;
	... 6 more&lt;/p&gt;</description>
                <environment>OSX Lion&lt;br/&gt;
Java 1.6&lt;br/&gt;
Mongo 2.0.0</environment>
        <key id="26016">JAVA-483</key>
            <summary>MongoException$Network on stale connection pool for selection queries only</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="nickmatheson">Nick Matheson</reporter>
                        <labels>
                    </labels>
                <created>Mon, 5 Dec 2011 15:57:03 +0000</created>
                <updated>Tue, 25 Jun 2013 16:51:12 +0000</updated>
                            <resolved>Sat, 10 Mar 2012 20:42:00 +0000</resolved>
                                    <version>2.7.2</version>
                                                    <component>API</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="74883" author="nickmatheson" created="Tue, 20 Dec 2011 22:18:37 +0000"  >&lt;p&gt;Jeff-&lt;/p&gt;

&lt;p&gt;Thanks for the clarification.&lt;/p&gt;

&lt;p&gt;Nick&lt;/p&gt;



</comment>
                            <comment id="73224" author="jeff.yemin" created="Thu, 15 Dec 2011 01:29:52 +0000"  >&lt;p&gt;This is expected behavior when a connection goes stale.  You&apos;ll get the same result on insert if you use WriteConcern.SAFE.&lt;/p&gt;</comment>
                            <comment id="73164" author="jeff.yemin" created="Wed, 14 Dec 2011 20:51:38 +0000"  >&lt;p&gt;Do you have sample code?  I assume you&apos;re not doing slaveOk reads.&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|hrhbhj:</customfieldvalue>

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