<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:52:53 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-710] Support max connection idle time and max connection life time</title>
                <link>https://jira.mongodb.org/browse/JAVA-710</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;We are using the 2.10.1 version of the java driver and idle connections are not getting timed out. Please provide support of maxIdleTimeMS property in the java driver or let us know if there a reason this is not implemented.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://docs.mongodb.org/manual/reference/connection-string/#maxIdleTimeMS&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://docs.mongodb.org/manual/reference/connection-string/#maxIdleTimeMS&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;Implementation:&lt;/p&gt;

&lt;p&gt;In MongoClientOptions, the property names are maxConnectionIdleTIme and maxConnectionLifeTime.  In MongoClientURI, the query parameter names are maxIdleTimeMS and maxLifeTimeMS.&lt;/p&gt;</description>
                <environment></environment>
        <key id="58762">JAVA-710</key>
            <summary>Support max connection idle time and max connection life time</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</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="jeff.yemin@mongodb.com">Jeffrey Yemin</assignee>
                                    <reporter username="sraj">Syam Raj</reporter>
                        <labels>
                            <label>driver</label>
                    </labels>
                <created>Sun, 9 Dec 2012 06:39:15 +0000</created>
                <updated>Thu, 6 Apr 2023 15:47:03 +0000</updated>
                            <resolved>Tue, 26 Nov 2013 15:14:17 +0000</resolved>
                                    <version>2.10.1</version>
                                    <fixVersion>2.12.0</fixVersion>
                    <fixVersion>3.0.0</fixVersion>
                                    <component>Connection Management</component>
                                        <votes>6</votes>
                                    <watches>10</watches>
                                                                                                                                                            <comments>
                            <comment id="506706" author="jeff.yemin" created="Thu, 27 Feb 2014 21:33:14 +0000"  >&lt;p&gt;Hi Alexej,&lt;/p&gt;

&lt;p&gt;URI support is available in the latest snapshot, available &lt;a href=&quot;https://oss.sonatype.org/content/repositories/snapshots/org/mongodb/mongo-java-driver/2.12.0-SNAPSHOT/mongo-java-driver-2.12.0-20140227.212513-56.jar&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt;, if you&apos;d like to test that.  I documented the query parameter names in the description.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Jeff&lt;/p&gt;</comment>
                            <comment id="506426" author="jeff.yemin" created="Thu, 27 Feb 2014 16:31:02 +0000"  >&lt;p&gt;Hi Alexej,&lt;/p&gt;

&lt;p&gt;No, you&apos;re not missing anything.  Thanks for catching this.  I neglected to add support in the URI for these options.  I&apos;m working on it today, but until then you can only test using MongoClientOptions.&lt;/p&gt;


&lt;p&gt;Thanks,&lt;br/&gt;
Jeff&lt;/p&gt;</comment>
                            <comment id="506393" author="alexej.kubarev@accedo.tv" created="Thu, 27 Feb 2014 16:02:08 +0000"  >&lt;p&gt;Hi Jeff, was trying to configure the Connection Idle time via the URI options (as part of the uri string) and it seems that this is not supported still?&lt;br/&gt;
Tried both maxConnectionIdleTime and maxIdleTimeMS and getting warning about unsupported option.&lt;/p&gt;

&lt;p&gt;This is pretty understandable as i cant find those options in the source.&lt;br/&gt;
Maybe Im missing something?&lt;/p&gt;</comment>
                            <comment id="506355" author="alexej.kubarev@accedo.tv" created="Thu, 27 Feb 2014 15:21:13 +0000"  >&lt;p&gt;Going to test this together with the &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-1117&quot; title=&quot;2.12.0-rc0 logs JMX InstanceAlreadyExistsException at WARNING level&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-1117&quot;&gt;&lt;del&gt;JAVA-1117&lt;/del&gt;&lt;/a&gt; on your latest snapshot&lt;/p&gt;</comment>
                            <comment id="506345" author="jeff.yemin" created="Thu, 27 Feb 2014 15:08:48 +0000"  >&lt;p&gt;Hi there,&lt;/p&gt;

&lt;p&gt;Interested parties can test the fix with 2.12.0-rc0, available either on &lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/releases/tag/r2.12.0-rc0&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;github&lt;/a&gt; or &lt;a href=&quot;http://central.maven.org/maven2/org/mongodb/mongo-java-driver/2.12.0-rc0/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Maven Central&lt;/a&gt;.  Any takers?&lt;/p&gt;


&lt;p&gt;Thanks,&lt;br/&gt;
Jeff&lt;/p&gt;</comment>
                            <comment id="461750" author="jeff.yemin" created="Tue, 26 Nov 2013 00:54:18 +0000"  >&lt;p&gt;I just pushed the code to master and also pushed a snapshot to Sonatype: &lt;a href=&quot;https://oss.sonatype.org/content/repositories/snapshots/org/mongodb/mongo-java-driver/2.12.0-SNAPSHOT/mongo-java-driver-2.12.0-20131126.005249-6.jar&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://oss.sonatype.org/content/repositories/snapshots/org/mongodb/mongo-java-driver/2.12.0-SNAPSHOT/mongo-java-driver-2.12.0-20131126.005249-6.jar&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Please give it a try and let us know how it&apos;s working for you.&lt;/p&gt;</comment>
                            <comment id="461699" author="eyllo" created="Mon, 25 Nov 2013 23:49:14 +0000"  >&lt;p&gt;Any ideas when this will hit trunk? We are desperate for using this as we have deployed inside Azure and are fighting to stay on the game.&lt;br/&gt;
Thanks!&lt;/p&gt;</comment>
                            <comment id="399607" author="jeff.yemin" created="Fri, 9 Aug 2013 17:53:30 +0000"  >&lt;p&gt;Added maxConnectionIdleTime and maxConnectionLifeTime properties to MongoClientOptions.&lt;br/&gt;
Added maxIdleTimeMS and maxLifeTimeMS to MongoClientURI.&lt;/p&gt;</comment>
                            <comment id="379492" author="jeff.yemin" created="Fri, 12 Jul 2013 02:26:01 +0000"  >&lt;p&gt;Actually, still need to expose these settings via MongoClient, so re-opening&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="67558">JAVA-779</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="21548">JAVA-424</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="111137">JAVA-1113</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="27316">JAVA-499</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                            <subtask id="93889">JAVA-1004</subtask>
                            <subtask id="93890">JAVA-1005</subtask>
                    </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|hrh3xr:</customfieldvalue>

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