<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:53:33 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-985] Q: dropped connections and data nodes definitions</title>
                <link>https://jira.mongodb.org/browse/JAVA-985</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;I have a few Jboss 5.1 servers which uses MongoDB data set. Till yesterday I had 3 Mongo 2.0 nodes in this dataset. Yesterday I added 2 Mongo 2.4.6 secondaries to this dataset; and after that I see many warnings like that:&lt;/p&gt;

&lt;p&gt;WARNING &lt;span class=&quot;error&quot;&gt;&amp;#91;com.mongodb&amp;#93;&lt;/span&gt; emptying DBPortPool to /x.x.x.x:27017 b/c of error&lt;/p&gt;

&lt;p&gt;&quot;Many&quot; - about 30/day instead of 5/day before. Another thing that I don&apos;t understand - according to jboss log, it started to use 2 new nodes, even I didn&apos;t add them to mongo-ds.xml.&lt;/p&gt;

&lt;p&gt;Any ideas why number of dropped connections increased and why jboss started to use new nodes?&lt;/p&gt;

&lt;p&gt;TIA, Vitaly&lt;/p&gt;

&lt;p&gt;my mongo-ds is:&lt;br/&gt;
&amp;lt;mongo:mongo host=&quot;none&quot; replica-set=&quot;mongo1:27017,mongo2:27017,mongo3:27017&quot;&amp;gt; &amp;lt;mongo:options connections-per-host=&quot;8&quot; threads-allowed-to-block-for-connection-multiplier=&quot;4&quot; connect-timeout=&quot;10000&quot; max-wait-time=&quot;1500&quot; auto-connect-retry=&quot;true&quot; socket-keep-alive=&quot;true&quot; socket-timeout=&quot;10000&quot; slave-ok=&quot;true&quot; write-number=&quot;1&quot; write-timeout=&quot;0&quot; write-fsync=&quot;true&quot; /&amp;gt; &amp;lt;/mongo:mongo&amp;gt;&lt;/p&gt;</description>
                <environment>RHEL5 and 6, MongoDB 2.0 and 2.4.6</environment>
        <key id="92381">JAVA-985</key>
            <summary>Q: dropped connections and data nodes definitions</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="9">Done</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="vitaly_il">Vitaly Karasik</reporter>
                        <labels>
                            <label>connection</label>
                            <label>driver</label>
                            <label>java</label>
                            <label>replication</label>
                    </labels>
                <created>Wed, 2 Oct 2013 10:58:39 +0000</created>
                <updated>Wed, 11 Sep 2019 19:11:49 +0000</updated>
                            <resolved>Wed, 4 Dec 2013 16:12:13 +0000</resolved>
                                    <version>2.4</version>
                                                    <component>Cluster Management</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="465495" author="jeff.yemin" created="Wed, 4 Dec 2013 16:12:06 +0000"  >&lt;p&gt;Hi Vitaly&lt;/p&gt;

&lt;p&gt;Connection reset generally means that the peer dropped the connection.  You&apos;re going to have to look outside the driver to find out the underlying cause of that.  For starters, I&apos;d check the server logs, and if there are no clues there, check any routers that you may have between JBoss and the MongoDB server.&lt;/p&gt;</comment>
                            <comment id="435031" author="vitaly_il" created="Thu, 3 Oct 2013 06:39:13 +0000"  >&lt;p&gt;jboss log mongo connection exception exampe&lt;/p&gt;</comment>
                            <comment id="435029" author="vitaly_il" created="Thu, 3 Oct 2013 06:37:08 +0000"  >&lt;p&gt;Jeff,&lt;br/&gt;
Many thanks!&lt;br/&gt;
I&apos;ll attach part of jboss log.&lt;/p&gt;</comment>
                            <comment id="434528" author="jeff.yemin" created="Wed, 2 Oct 2013 13:58:17 +0000"  >&lt;p&gt;The Java driver, like all the MongoDB drivers, will auto-discover all the nodes in the replica set, even those not in the seed list.  The seed list just gets the driver started.  If you want to limit which servers to read from, please check out the read preference documentation: &lt;a href=&quot;http://docs.mongodb.org/manual/core/read-preference/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://docs.mongodb.org/manual/core/read-preference/&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;As for the errors, I can&apos;t tell what&apos;s happening just from that warning.  Are there exceptions in the logs prior to that warning?&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="32166" name="java_mongo_exception.txt" size="3662" author="vitaly_il" created="Thu, 3 Oct 2013 06:39:13 +0000"/>
                    </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|hrt907:</customfieldvalue>

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