<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:51:40 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-179] Use weakrefs for static list of Mongo instances</title>
                <link>https://jira.mongodb.org/browse/JAVA-179</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;Use weakrefs for Mongo instances create by static methods.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://github.com/scotthernandez/mongo-java-driver/commit/483b0372d37a3f699cacee7af852cfb809e08cbc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/scotthernandez/mongo-java-driver/commit/483b0372d37a3f699cacee7af852cfb809e08cbc&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="13299">JAVA-179</key>
            <summary>Use weakrefs for static list of Mongo instances</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="eliot">Eliot Horowitz</assignee>
                                    <reporter username="scotthernandez">Scott Hernandez</reporter>
                        <labels>
                    </labels>
                <created>Sat, 9 Oct 2010 01:31:28 +0000</created>
                <updated>Fri, 29 Oct 2010 02:48:53 +0000</updated>
                            <resolved>Sun, 17 Oct 2010 13:29:55 +0000</resolved>
                                    <version>2.2</version>
                                    <fixVersion>2.3</fixVersion>
                                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="19274" author="auto" created="Sun, 17 Oct 2010 13:29:57 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;login&apos;: &apos;erh&apos;, &apos;name&apos;: &apos;Eliot Horowitz&apos;, &apos;email&apos;: &apos;eliot@10gen.com&apos;}
&lt;p&gt;Message: let you have your own static Mongo pool, but not global &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-179&quot; title=&quot;Use weakrefs for static list of Mongo instances&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-179&quot;&gt;&lt;del&gt;JAVA-179&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo-java-driver/commit/abf2275582151d2f1748af983a8791909575b709&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo-java-driver/commit/abf2275582151d2f1748af983a8791909575b709&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="19273" author="auto" created="Sun, 17 Oct 2010 13:18:26 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;login&apos;: &apos;erh&apos;, &apos;name&apos;: &apos;Eliot Horowitz&apos;, &apos;email&apos;: &apos;eliot@10gen.com&apos;}
&lt;p&gt;Message: some more work on MongoURI and removing some static&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-83&quot; title=&quot;Only move _id when necessary **all drivers**&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-83&quot;&gt;&lt;del&gt;JAVA-83&lt;/del&gt;&lt;/a&gt; &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-179&quot; title=&quot;Use weakrefs for static list of Mongo instances&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-179&quot;&gt;&lt;del&gt;JAVA-179&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo-java-driver/commit/0a0af2734e13bea5028bb7aa37a0d9dc945b50a6&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo-java-driver/commit/0a0af2734e13bea5028bb7aa37a0d9dc945b50a6&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="19033" author="eliot" created="Sat, 9 Oct 2010 01:54:00 +0000"  >&lt;p&gt;Yeah  - that&apos;s kind of what i was thinking.&lt;br/&gt;
Will think about more.&lt;/p&gt;</comment>
                            <comment id="19032" author="scotthernandez" created="Sat, 9 Oct 2010 01:49:44 +0000"  >&lt;p&gt;What about a sep. singleton class (MongoCache/Factory) which manages this? It can have methods like the statics on Mongo but can also have a flush/clear method that you can call to move all the Mongo instances into weakrefs so that they can be garbabe collected if they want. It can be made very clear that working with the factory requires managing the life-time of the Mongo instances in a special way, manually. &lt;/p&gt;</comment>
                            <comment id="19031" author="eliot" created="Sat, 9 Oct 2010 01:41:44 +0000"  >&lt;p&gt;Right - that was the idea.&lt;/p&gt;

&lt;p&gt;Maybe we can make a seperate thing for this instead of that static method...&lt;/p&gt;

&lt;p&gt;Will think about&lt;/p&gt;</comment>
                            <comment id="19030" author="scotthernandez" created="Sat, 9 Oct 2010 01:38:29 +0000"  >&lt;p&gt;As long as they are being used they will stick around. &lt;/p&gt;

&lt;p&gt;The purpose is to always have them avail? That means they will not get cleaned up until the classloader is collected?&lt;/p&gt;</comment>
                            <comment id="19029" author="eliot" created="Sat, 9 Oct 2010 01:34:38 +0000"  >&lt;p&gt;That kind of defeats the purpose...&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|hrhcsv:</customfieldvalue>

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