<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:53: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-1038] MongoException when connecting to a pool of mongos with a majority of them down</title>
                <link>https://jira.mongodb.org/browse/JAVA-1038</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;I&apos;m initializing the Mongo instance (Java object) with the following options:&lt;br/&gt;
2013-10-24 21:30:35,906 &lt;span class=&quot;error&quot;&gt;&amp;#91;http-8080-exec-6&amp;#93;&lt;/span&gt; INFO  Mongo{authority=MongoAuthority{type=Set, serverAddresses=&lt;span class=&quot;error&quot;&gt;&amp;#91;localhost/127.0.0.1:27027, HOST1/10.149.12.79:27027, HOST2/10.154.149.70:27027, HOST3/10.158.33.16:27027&amp;#93;&lt;/span&gt;, credentials={credentials={}}}, options=MongoOptions{description=&apos;null&apos;, connectionsPerHost=40, threadsAllowedToBlockForConnectionMultiplier=5, maxWaitTime=10000, connectTimeout=10000, socketTimeout=30000, socketKeepAlive=false, autoConnectRetry=false, maxAutoConnectRetryTime=0, slaveOk=false, readPreference=secondaryPreferred : { &quot;tags&quot; : [ &lt;/p&gt;
{ &quot;aws-az&quot; : &quot;us-east-1e&quot;}
&lt;p&gt;]}, dbDecoderFactory=DefaultDBDecoder.DefaultFactory, dbEncoderFactory=DefaultDBEncoder.DefaultFactory, safe=false, w=0, wtimeout=0, fsync=false, j=false, socketFactory=javax.net.DefaultSocketFactory@20c66135, cursorFinalizerEnabled=true, writeConcern=WriteConcern &lt;/p&gt;
{ &quot;getlasterror&quot; : 1}
&lt;p&gt; / (Continue Inserting on Errors? false), alwaysUseMBeans=false}}&lt;/p&gt;

&lt;p&gt;HOST1, HOST2 and HOST3 are dead when I start due to a bad config. And I get the following error:&lt;br/&gt;
com.mongodb.MongoException: can&apos;t find a master&lt;br/&gt;
        at com.mongodb.DBTCPConnector.checkMaster(DBTCPConnector.java:517)&lt;br/&gt;
        at com.mongodb.DBTCPConnector.say(DBTCPConnector.java:134)&lt;br/&gt;
        at com.mongodb.DBTCPConnector.say(DBTCPConnector.java:115)&lt;br/&gt;
        at com.mongodb.DBApiLayer$MyCollection.insert(DBApiLayer.java:248)&lt;/p&gt;


&lt;p&gt;If I start with the following options:&lt;br/&gt;
2013-10-24 21:43:13,608 &lt;span class=&quot;error&quot;&gt;&amp;#91;http-8080-exec-19&amp;#93;&lt;/span&gt; INFO  Mongo{authority=MongoAuthority{type=Set, serverAddresses=&lt;span class=&quot;error&quot;&gt;&amp;#91;localhost/127.0.0.1:27027&amp;#93;&lt;/span&gt;, credentials={credentials={}}}, options=MongoOptions{description=&apos;null&apos;, connectionsPerHost=40, threadsAllowedToBlockForConnectionMultiplier=5, maxWaitTime=10000, connectTimeout=10000, socketTimeout=30000, socketKeepAlive=false, autoConnectRetry=false, maxAutoConnectRetryTime=0, slaveOk=false, readPreference=secondaryPreferred : { &quot;tags&quot; : [ &lt;/p&gt;
{ &quot;aws-az&quot; : &quot;us-east-1e&quot;}
&lt;p&gt;]}, dbDecoderFactory=DefaultDBDecoder.DefaultFactory, dbEncoderFactory=DefaultDBEncoder.DefaultFactory, safe=false, w=0, wtimeout=0, fsync=false, j=false, socketFactory=javax.net.DefaultSocketFactory@2cc29d3d, cursorFinalizerEnabled=true, writeConcern=WriteConcern &lt;/p&gt;
{ &quot;getlasterror&quot; : 1}
&lt;p&gt; / (Continue Inserting on Errors? false), alwaysUseMBeans=false}}&lt;/p&gt;

&lt;p&gt;Then it starts fine. It&apos;s as if it ignored the localhost entry in the first case. I can reproduce this at will.&lt;/p&gt;</description>
                <environment></environment>
        <key id="97166">JAVA-1038</key>
            <summary>MongoException when connecting to a pool of mongos with a majority of them down</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="3">Duplicate</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="gforget">Gui Forget</reporter>
                        <labels>
                    </labels>
                <created>Tue, 5 Nov 2013 15:29:41 +0000</created>
                <updated>Tue, 5 Nov 2013 22:46:33 +0000</updated>
                            <resolved>Tue, 5 Nov 2013 22:46:33 +0000</resolved>
                                    <version>2.11.3</version>
                                                    <component>Cluster Management</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="451992" author="jeff.yemin" created="Tue, 5 Nov 2013 22:46:33 +0000"  >&lt;p&gt;Closing as duplicate of &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-996&quot; title=&quot;2.12: Make driver more proactive about setting the new primary&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-996&quot;&gt;&lt;del&gt;JAVA-996&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="451801" author="jeff.yemin" created="Tue, 5 Nov 2013 19:45:09 +0000"  >&lt;p&gt;Hi Gui,&lt;/p&gt;

&lt;p&gt;I can reproduce this at will too.  This is a design flaw, and it will be fixed in the next release.  As a workaround, try setting this system property to a much lower value than the default of 20,000 milliseconds, perhaps to 1000 milliseconds.&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;com.mongodb.updaterConnectTimeoutMS=1000&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;With this setting, It will take 1000 ms to try to connect to each of HOST1, HOST2, and HOST3, before settling on localhost.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="93562">JAVA-996</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <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|hru09z:</customfieldvalue>

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