<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:54:51 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-1535] com.mongodb.DBPortPool gotError WARNING: emptying DBPortPool to /ip:port b/c of error</title>
                <link>https://jira.mongodb.org/browse/JAVA-1535</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;My JAVA application is run on Tomcat Server with a single MongoDB. This error occurs some times a day. &lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Here is an exception message.&lt;br/&gt;
----------------------------------------------------------------------------------------------------&lt;br/&gt;
com.mongodb.DBPortPool gotError&lt;br/&gt;
WARNING: emptying DBPortPool to /172.20.1.4:27017 b/c of error&lt;br/&gt;
java.net.SocketException: Connection reset&lt;br/&gt;
	at java.net.SocketInputStream.read(SocketInputStream.java:189)&lt;br/&gt;
	at java.net.SocketInputStream.read(SocketInputStream.java:121)&lt;br/&gt;
	at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)&lt;br/&gt;
	at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)&lt;br/&gt;
	at java.io.BufferedInputStream.read(BufferedInputStream.java:345)&lt;br/&gt;
	at org.bson.io.Bits.readFully(Bits.java:46)&lt;br/&gt;
	at org.bson.io.Bits.readFully(Bits.java:33)&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:40)&lt;br/&gt;
	at com.mongodb.DBPort.go(DBPort.java:142)&lt;br/&gt;
	at com.mongodb.DBPort.call(DBPort.java:92)&lt;br/&gt;
	at com.mongodb.DBTCPConnector.innerCall(DBTCPConnector.java:244)&lt;br/&gt;
	at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:216)&lt;br/&gt;
	at com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:288)&lt;br/&gt;
	at com.mongodb.DB.command(DB.java:262)&lt;br/&gt;
	at com.mongodb.DB.command(DB.java:244)&lt;br/&gt;
	at com.mongodb.DBCollection.getCount(DBCollection.java:985)&lt;br/&gt;
	at com.mongodb.DBCursor.size(DBCursor.java:602)&lt;br/&gt;
	at com.mysema.query.mongodb.MongodbQuery.list(MongodbQuery.java:271)&lt;br/&gt;
	at org.springframework.data.mongodb.repository.support.QueryDslMongoRepository.findAll(QueryDslMongoRepository.java:93)&lt;br/&gt;
	at sun.reflect.GeneratedMethodAccessor6078.invoke(Unknown Source)&lt;br/&gt;
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;br/&gt;
	at java.lang.reflect.Method.invoke(Method.java:483)&lt;br/&gt;
	at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.executeMethodOn(RepositoryFactorySupport.java:358)&lt;br/&gt;
	at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:343)&lt;br/&gt;
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)&lt;br/&gt;
	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)&lt;br/&gt;
	at com.sun.proxy.$Proxy586.findAll(Unknown Source)&lt;br/&gt;
----------------------------------------------------------------------------------------------------&lt;/li&gt;
	&lt;li&gt;The code about connecting MongoDB is not different. Here is the code.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;MongoClientOptions options = MongoClientOptions.builder()&lt;br/&gt;
              .connectionsPerHost(50).build();&lt;br/&gt;
MongoClient client = new MongoClient(new ServerAddress(dbHost, dbPort), &lt;br/&gt;
					Arrays.asList(credential), options);&lt;br/&gt;
----------------------------------------------------------------------------------------------------&lt;br/&gt;
I can&apos;t even guess whether it&apos;s caused by a Network problem or a MongoDB java driver.&lt;/p&gt;

&lt;p&gt;This issue is really worrying..Please, help me.&lt;/p&gt;</description>
                <environment>mongo-java-driver-2.11.4.jar, Java 8, Tomcat 8, MongoDB 2.6.3</environment>
        <key id="167750">JAVA-1535</key>
            <summary>com.mongodb.DBPortPool gotError WARNING: emptying DBPortPool to /ip:port b/c of error</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="3">Duplicate</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="okclaire">Claire Lee</reporter>
                        <labels>
                            <label>com.mongodb.DBPortPool</label>
                            <label>connection</label>
                            <label>socket</label>
                    </labels>
                <created>Thu, 6 Nov 2014 20:18:26 +0000</created>
                <updated>Wed, 11 Sep 2019 19:11:35 +0000</updated>
                            <resolved>Thu, 6 Nov 2014 20:22:11 +0000</resolved>
                                    <version>2.11.4</version>
                                                    <component>Connection Management</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="758142" author="jeff.yemin" created="Thu, 6 Nov 2014 20:21:50 +0000"  >&lt;p&gt;This looks identical to &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-1534&quot; title=&quot;com.mongodb.DBPortPool gotError WARNING: emptying DBPortPool to /ip:port b/c of error&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-1534&quot;&gt;&lt;del&gt;JAVA-1534&lt;/del&gt;&lt;/a&gt;.&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|hs3qdz:</customfieldvalue>

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