<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:52:46 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-652] The connection to mongo db is not closed</title>
                <link>https://jira.mongodb.org/browse/JAVA-652</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt; The connection to the mongo DB server is not closed, when we are connecting to it using Replica server set.&lt;/p&gt;

&lt;p&gt;The java program is not terminated and I need to manually terminate the java program.&lt;/p&gt;

&lt;p&gt;The issue has been observed if we use replica server set only &lt;/p&gt;</description>
                <environment>Windows</environment>
        <key id="51500">JAVA-652</key>
            <summary>The connection to mongo db is not closed</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="hkonakanchi">Harshavardhan Konakanchi</reporter>
                        <labels>
                            <label>replicaset</label>
                    </labels>
                <created>Wed, 26 Sep 2012 15:06:13 +0000</created>
                <updated>Thu, 28 Mar 2013 11:26:58 +0000</updated>
                            <resolved>Thu, 28 Mar 2013 11:26:58 +0000</resolved>
                                    <version>2.9.1</version>
                                                    <component>Connection Management</component>
                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="234359" author="auto" created="Tue, 8 Jan 2013 19:13:45 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-10-09T01:28:03Z&apos;, u&apos;email&apos;: u&apos;jeff.yemin@10gen.com&apos;, u&apos;name&apos;: u&apos;Jeff Yemin&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-652&quot; title=&quot;The connection to mongo db is not closed&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-652&quot;&gt;&lt;del&gt;JAVA-652&lt;/del&gt;&lt;/a&gt;: Synchronizing on correct object in close method&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/f71837e81e5832894329b7e32d20b56ce60a15c6&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/f71837e81e5832894329b7e32d20b56ce60a15c6&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="234342" author="auto" created="Tue, 8 Jan 2013 19:07:10 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-10-09T01:28:03Z&apos;, u&apos;email&apos;: u&apos;jeff.yemin@10gen.com&apos;, u&apos;name&apos;: u&apos;Jeff Yemin&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-652&quot; title=&quot;The connection to mongo db is not closed&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-652&quot;&gt;&lt;del&gt;JAVA-652&lt;/del&gt;&lt;/a&gt;: Synchronizing on correct object in close method&lt;br/&gt;
Branch: 2.10.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/f71837e81e5832894329b7e32d20b56ce60a15c6&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/f71837e81e5832894329b7e32d20b56ce60a15c6&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="173356" author="auto" created="Wed, 10 Oct 2012 15:37:39 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-10-08T18:28:03-07:00&apos;, u&apos;email&apos;: u&apos;jeff.yemin@10gen.com&apos;, u&apos;name&apos;: u&apos;Jeff Yemin&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-652&quot; title=&quot;The connection to mongo db is not closed&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-652&quot;&gt;&lt;del&gt;JAVA-652&lt;/del&gt;&lt;/a&gt;: Synchronizing on correct object in close method&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/e257252298e70dd8e0bf6f7d893b4ecae86332e5&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/e257252298e70dd8e0bf6f7d893b4ecae86332e5&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="172731" author="jeff.yemin" created="Tue, 9 Oct 2012 01:37:43 +0000"  >&lt;p&gt;If anyone can test the release-2.9.x branch, I&apos;d appreciate it.&lt;/p&gt;</comment>
                            <comment id="172729" author="auto" created="Tue, 9 Oct 2012 01:30:29 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-10-08T18:28:03-07:00&apos;, u&apos;email&apos;: u&apos;jeff.yemin@10gen.com&apos;, u&apos;name&apos;: u&apos;Jeff Yemin&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-652&quot; title=&quot;The connection to mongo db is not closed&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-652&quot;&gt;&lt;del&gt;JAVA-652&lt;/del&gt;&lt;/a&gt;: Synchronizing on correct object in close method&lt;br/&gt;
Branch: release-2.9.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/f71837e81e5832894329b7e32d20b56ce60a15c6&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/f71837e81e5832894329b7e32d20b56ce60a15c6&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="172682" author="jjflyboy" created="Mon, 8 Oct 2012 22:09:13 +0000"  >&lt;p&gt;The 2.8.0 version of the Mongo driver appears to have corrected our problem.  Open connections in our staging environment which is JBoss AS and JDK 6 are holding steady at around 15 versus the hundreds of open connections we were seeing before.  Running locally I see only two that are left open from a scheduled app that is using the Quartz scheduler and the log for Mongo library.  Thanks for your help.&lt;/p&gt;</comment>
                            <comment id="170068" author="jeff.yemin" created="Mon, 1 Oct 2012 20:54:05 +0000"  >&lt;p&gt;Please let me know either way.&lt;/p&gt;</comment>
                            <comment id="170037" author="jjflyboy" created="Mon, 1 Oct 2012 20:09:45 +0000"  >&lt;p&gt;I&apos;ll try to replicate w/ the 2.8.0 version, but we&apos;re hoping that will fix it.&lt;/p&gt;</comment>
                            <comment id="169932" author="jeff.yemin" created="Mon, 1 Oct 2012 17:58:33 +0000"  >&lt;p&gt;Can you provide a small test program that reproduces this problem?  The latter would be particularly useful, as my test programs all terminate as I would expect.  If you&apos;re unable to do that, can you try to reproduce with 2.8.0?&lt;/p&gt;</comment>
                            <comment id="169875" author="jjflyboy" created="Mon, 1 Oct 2012 16:50:56 +0000"  >&lt;p&gt;Is there an earlier version of the driver that does not have this problem?  We are using a replica set w/ one slave and have an app we are trying to release to production that is getting an OutOfMemoryError due to this issue.&lt;/p&gt;</comment>
                            <comment id="168660" author="jeff.yemin" created="Thu, 27 Sep 2012 11:57:28 +0000"  >&lt;p&gt;Can you see what threads are still running in a debugger or with a thread dump? &lt;/p&gt;</comment>
                            <comment id="168596" author="hkonakanchi" created="Thu, 27 Sep 2012 05:47:43 +0000"  >&lt;p&gt;I had tried using  mongo.close() &amp;amp; DBTCPConnector.close()&lt;/p&gt;</comment>
                            <comment id="168277" author="jeff.yemin" created="Wed, 26 Sep 2012 15:33:27 +0000"  >&lt;p&gt;Are you calling the Mongo#close method?  This will interrupt all the background threads.&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|hrj2r3:</customfieldvalue>

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