<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:58:01 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-2764] MongoTimeoutException: Timedout after 10000 ms while waiting for a server</title>
                <link>https://jira.mongodb.org/browse/JAVA-2764</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;    Envrionment: Three nodes for Replica Set, and used for GridFS.&lt;br/&gt;
    One of the Secondary node delay seriously&#65292;so remove the node, stop instance and rm data, at  last  restart  instance for sync data automatic. &lt;br/&gt;
    Sync data, time to  begin 2018.1.25 11:00:00, and end 2018.1.29 14:38:00.It lasts 4 days. And each node data is 2.5T. &lt;br/&gt;
    But at 2018-01-29 14:26, it suddenly occured error. The deail message is:&lt;br/&gt;
com.mongodb.MongoTimeoutException: Timedout after 10000 ms while waiting for a server that matches {serverSelectors=[ReadPreferenceServerSelector&lt;/p&gt;
{readPreference=primary}
&lt;p&gt;, LatencyMinimizingServerSelector&lt;/p&gt;
{acceptableLatencyDifference=15 ms}
&lt;p&gt;]}. Client view of cluster state is {type=ReplicaSet, servers=[] at com.mongodb.BaseCluster.getServer(BaseCluster.java:82) at com.mongodb.DBTCPConnector.getServer(DBTCPConnector.java:664) at com.mongodb.DBTCPConnector.access$500(DBTCPConnector.java:40) at com.mongodb.DBTCPConnector$MyPort.getConnection(DBTCPConnector.java:513) at com.mongodb.DBTCPConnector$MyPort.get(DBTCPConnector.java:456) at com.mongodb.DBTCPConnector.innerCall(DBTCPConnector.java:288) at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:273) at com.mongodb.DBCollectionImpl.find(DBCollectionImpl.java:84) at com.mongodb.DBCollectionImpl.find(DBCollectionImpl.java:66) at com.mongodb.DBCollection.findOne(DBCollection.java:940) at com.mongodb.DBCollection.findOne(DBCollection.java:914) at com.mongodb.DBCollection.findOne(DBCollection.java:858) at&lt;/p&gt;




&lt;p&gt;    Please help me resolve the question. Thank you very much. &lt;/p&gt;</description>
                <environment>java driver: 2.13.2&lt;br/&gt;
mongodb server version: 3.0.7&lt;br/&gt;
three nodes for Replica Set for GridFS.</environment>
        <key id="490650">JAVA-2764</key>
            <summary>MongoTimeoutException: Timedout after 10000 ms while waiting for a server</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.mongodb.org/images/icons/priorities/critical.svg">Critical - P2</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="ross@mongodb.com">Ross Lawley</assignee>
                                    <reporter username="chenhuayun@sina.com">nycle chen</reporter>
                        <labels>
                            <label>Bug</label>
                            <label>driver</label>
                    </labels>
                <created>Thu, 1 Feb 2018 03:46:46 +0000</created>
                <updated>Fri, 7 Apr 2023 11:41:34 +0000</updated>
                            <resolved>Thu, 1 Feb 2018 09:29:50 +0000</resolved>
                                    <version>2.13.2</version>
                                                    <component>GridFS</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1791565" author="ross@10gen.com" created="Thu, 1 Feb 2018 09:29:31 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=nycle&quot; class=&quot;user-hover&quot; rel=&quot;nycle&quot;&gt;nycle&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;The error reports a failure to connect to the primary server in the replicaset. &lt;br/&gt;
The &quot;&lt;tt&gt;Client view of cluster state is {type=ReplicaSet, servers=[]&lt;/tt&gt;&quot;. This shows that it hasn&apos;t been able to connect to any server, so the first place to check is how the MongoClient is constructed and the connectivity of the application to the cluster.&lt;/p&gt;

&lt;p&gt;Just to let you know, the best place for questions regarding MongoDB usage or the Java driver specifics is the &lt;a href=&quot;https://groups.google.com/forum/#!forum/mongodb-user&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;mongodb-user mailinglist&lt;/a&gt; or &lt;a href=&quot;http://stackoverflow.com&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;stackoverflow&lt;/a&gt; as you will reach a boarder audience there.  If your business requires an answer from MongoDB within a time frame then we do offer &lt;a href=&quot;https://www.mongodb.com/products/production-support&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;production support&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;If you do follow up on one of the above forums, please post a link here and I will endeavour to help there.&lt;/p&gt;

&lt;p&gt;All the best,&lt;/p&gt;

&lt;p&gt;Ross&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|htguin:</customfieldvalue>

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