<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:52: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-553] Change default timeout values in MongoOptions</title>
                <link>https://jira.mongodb.org/browse/JAVA-553</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;Discussion on what default values for which timeouts should be setted is available here : &lt;br/&gt;
&lt;a href=&quot;http://groups.google.com/group/mongodb-dev/browse_thread/thread/6cf754a5ca724d9b?hl=fr&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://groups.google.com/group/mongodb-dev/browse_thread/thread/6cf754a5ca724d9b?hl=fr&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="36395">JAVA-553</key>
            <summary>Change default timeout values in MongoOptions</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="steve.briskin">Steve Briskin</assignee>
                                    <reporter username="jleleu">J&#233;r&#244;me LELEU</reporter>
                        <labels>
                    </labels>
                <created>Mon, 16 Apr 2012 14:58:29 +0000</created>
                <updated>Wed, 29 Aug 2012 20:08:03 +0000</updated>
                            <resolved>Mon, 2 Jul 2012 21:49:30 +0000</resolved>
                                                    <fixVersion>2.9.0</fixVersion>
                                    <component>Configuration</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="158202" author="jeff.yemin" created="Wed, 29 Aug 2012 20:08:03 +0000"  >&lt;p&gt;Closing as part of 2.9.0 release process.&lt;/p&gt;</comment>
                            <comment id="141449" author="auto" created="Tue, 10 Jul 2012 17:58:32 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-06-12T12:03:17-07:00&apos;, u&apos;name&apos;: u&apos;Steve Briskin&apos;, u&apos;email&apos;: u&apos;steve.briskin@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-553&quot; title=&quot;Change default timeout values in MongoOptions&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-553&quot;&gt;&lt;del&gt;JAVA-553&lt;/del&gt;&lt;/a&gt; change connection timeout default from unlimited to 10 sec.&lt;br/&gt;
Branch: ReadPrefs&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/03c5fd083328d342b535c94ce48948d2c39decce&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/03c5fd083328d342b535c94ce48948d2c39decce&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="141443" author="auto" created="Tue, 10 Jul 2012 17:58:23 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-06-12T12:03:17-07:00&apos;, u&apos;name&apos;: u&apos;Steve Briskin&apos;, u&apos;email&apos;: u&apos;steve.briskin@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-553&quot; title=&quot;Change default timeout values in MongoOptions&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-553&quot;&gt;&lt;del&gt;JAVA-553&lt;/del&gt;&lt;/a&gt; change connection timeout default from unlimited to 10 sec.&lt;br/&gt;
Branch: ReadPrefs&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/be5a807e4ec28261b661877b79ad660eabd85599&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/be5a807e4ec28261b661877b79ad660eabd85599&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="136310" author="auto" created="Mon, 25 Jun 2012 15:50:11 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-06-12T12:03:17-07:00&apos;, u&apos;name&apos;: u&apos;Steve Briskin&apos;, u&apos;email&apos;: u&apos;steve.briskin@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-553&quot; title=&quot;Change default timeout values in MongoOptions&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-553&quot;&gt;&lt;del&gt;JAVA-553&lt;/del&gt;&lt;/a&gt; change connection timeout default from unlimited to 10 sec.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/03c5fd083328d342b535c94ce48948d2c39decce&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/03c5fd083328d342b535c94ce48948d2c39decce&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="136305" author="auto" created="Mon, 25 Jun 2012 15:50:00 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-06-12T12:03:17-07:00&apos;, u&apos;name&apos;: u&apos;Steve Briskin&apos;, u&apos;email&apos;: u&apos;steve.briskin@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-553&quot; title=&quot;Change default timeout values in MongoOptions&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-553&quot;&gt;&lt;del&gt;JAVA-553&lt;/del&gt;&lt;/a&gt; change connection timeout default from unlimited to 10 sec.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/be5a807e4ec28261b661877b79ad660eabd85599&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/be5a807e4ec28261b661877b79ad660eabd85599&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="110744" author="jeff.yemin" created="Tue, 17 Apr 2012 17:05:54 +0000"  >&lt;p&gt;Copying conversation (eliot is the responder): &lt;/p&gt;


&lt;p&gt;&amp;gt; - some default values are IMHO very dangerous :&lt;br/&gt;
&amp;gt;  * maxWaitTime : it&apos;s 120 seconds : I would set it to 200 ms&lt;br/&gt;
Most connection pools have no timeout, so I think 120 seconds is a good start.&lt;br/&gt;
Obviously it is too high for certain apps, but I do think its a good default.&lt;/p&gt;

&lt;p&gt;&amp;gt;  * connectTimeout : it&apos;s unlimited : I would set it to 200 ms&lt;br/&gt;
Agree this shouldn&apos;t be unlimited.  200ms is way too aggressive though.&lt;br/&gt;
5 or 10 seconds seems appropriate.&lt;/p&gt;

&lt;p&gt;&amp;gt;  * socketTimeout : it&apos;s unlimited : I would set it to 1 second&lt;br/&gt;
&amp;gt;  * wtimeout : it&apos;s unlimited : I would set it to 1 second&lt;br/&gt;
For both of these, most people expect no timeout for db operations.&lt;/p&gt;</comment>
                            <comment id="110570" author="jleleu" created="Tue, 17 Apr 2012 07:22:00 +0000"  >&lt;p&gt;Jeff, you&apos;re right: it changes the default behaviour of the driver and unexpected timeouts could happened.&lt;br/&gt;
But having no timeout by default makes the driver not ready for production : timeouts are one of the main protection againt system failures.&lt;/p&gt;</comment>
                            <comment id="110496" author="jeff.yemin" created="Tue, 17 Apr 2012 00:53:58 +0000"  >&lt;p&gt;Changing default values is not generally considered backwards compatible.  Have to think about this one.&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|hrghmn:</customfieldvalue>

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