<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:43:11 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>[CSHARP-2665] System.TimeoutException:&#8220;A timeout occured after 30000ms selecting a server using CompositeServerSelector</title>
                <link>https://jira.mongodb.org/browse/CSHARP-2665</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;&#160; I was Running a mongodb cluster with 1 primary and 2 secondry , and the auth was turned off .&lt;/p&gt;

&lt;p&gt;&#160; If i use this connection &quot;mongodb://192.168.0.243:27017&quot; ,it works fine , but if i use this connection &quot;mongodb://192.168.0.243:27017,192.168.0.242:27017,192.168.0.246:27017&quot; ,it throw a timeout exception .&lt;br/&gt;
  Exception details :&lt;br/&gt;
 system.TimeoutException&lt;br/&gt;
  HResult=0x80131505&lt;br/&gt;
  Message=A timeout occured after 30000ms selecting a server using CompositeServerSelector{ Selectors = MongoDB.Driver.MongoClient+AreSessionsSupportedServerSelector, LatencyLimitingServerSelector&lt;/p&gt;
{ AllowedLatencyRange = 00:00:00.0150000 }
&lt;p&gt; }. Client view of cluster state is { ClusterId : &quot;1&quot;, ConnectionMode : &quot;ReplicaSet&quot;, Type : &quot;ReplicaSet&quot;, State : &quot;Disconnected&quot;, Servers : [{ ServerId: &quot;&lt;/p&gt;
{ ClusterId : 1, EndPoint : &quot;10.36.0.4:27017&quot; }
&lt;p&gt;&quot;, EndPoint: &quot;10.36.0.4:27017&quot;, State: &quot;Disconnected&quot;, Type: &quot;Unknown&quot;, LastUpdateTimestamp: &quot;2019-07-11T10:05:57.1551274Z&quot; }, { ServerId: &quot;&lt;/p&gt;
{ ClusterId : 1, EndPoint : &quot;10.39.0.5:27017&quot; }
&lt;p&gt;&quot;, EndPoint: &quot;10.39.0.5:27017&quot;, State: &quot;Disconnected&quot;, Type: &quot;Unknown&quot;, LastUpdateTimestamp: &quot;2019-07-11T10:05:57.1550598Z&quot; }, { ServerId: &quot;&lt;/p&gt;
{ ClusterId : 1, EndPoint : &quot;10.42.0.2:27017&quot; }
&lt;p&gt;&quot;, EndPoint: &quot;10.42.0.2:27017&quot;, State: &quot;Disconnected&quot;, Type: &quot;Unknown&quot;, LastUpdateTimestamp: &quot;2019-07-11T10:05:57.1551144Z&quot; }] }.&lt;br/&gt;
  Source=MongoDB.Driver.Core&lt;br/&gt;
  StackTrace:&lt;br/&gt;
   at MongoDB.Driver.Core.Clusters.Cluster.ThrowTimeoutException(IServerSelector selector, ClusterDescription description)&lt;br/&gt;
   at MongoDB.Driver.Core.Clusters.Cluster.WaitForDescriptionChangedHelper.HandleCompletedTask(Task completedTask)&lt;br/&gt;
   at MongoDB.Driver.Core.Clusters.Cluster.WaitForDescriptionChanged(IServerSelector selector, ClusterDescription description, Task descriptionChangedTask, TimeSpan timeout, CancellationToken cancellationToken)&lt;br/&gt;
   at MongoDB.Driver.Core.Clusters.Cluster.SelectServer(IServerSelector selector, CancellationToken cancellationToken)&lt;br/&gt;
   at MongoDB.Driver.MongoClient.AreSessionsSupportedAfterServerSelection(CancellationToken cancellationToken)&lt;br/&gt;
   at MongoDB.Driver.MongoClient.AreSessionsSupported(CancellationToken cancellationToken)&lt;br/&gt;
   at MongoDB.Driver.OperationExecutor.StartImplicitSession(CancellationToken cancellationToken)&lt;br/&gt;
   at MongoDB.Driver.MongoCollectionImpl`1.UsingImplicitSession&lt;span class=&quot;error&quot;&gt;&amp;#91;TResult&amp;#93;&lt;/span&gt;(Func`2 func, CancellationToken cancellationToken)&lt;br/&gt;
   at MongoDB.Driver.MongoCollectionImpl`1.BulkWrite(IEnumerable`1 requests, BulkWriteOptions options, CancellationToken cancellationToken)&lt;br/&gt;
   at MongoDB.Driver.MongoCollectionBase`1.&amp;lt;&amp;gt;c_&lt;em&gt;DisplayClass64_0.&amp;lt;InsertOne&amp;gt;b&lt;/em&gt;_0(IEnumerable`1 requests, BulkWriteOptions bulkWriteOptions)&lt;br/&gt;
   at MongoDB.Driver.MongoCollectionBase`1.InsertOne(TDocument document, InsertOneOptions options, Action`2 bulkWrite)&lt;br/&gt;
   at MongoDB.Driver.MongoCollectionBase`1.InsertOne(TDocument document, InsertOneOptions options, CancellationToken cancellationToken)&lt;br/&gt;
   at Comteck_k8s_ha_test_web.Startup.Configure(IApplicationBuilder app, IHostingEnvironment env) in C:\Users\Admin\source\repos\test\Startup.cs:line 75&lt;br/&gt;
&#160;&lt;/p&gt;</description>
                <environment>asp net core 2.2    vs 2017   windows 10</environment>
        <key id="852764">CSHARP-2665</key>
            <summary>System.TimeoutException:&#8220;A timeout occured after 30000ms selecting a server using CompositeServerSelector</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="13202">Works as Designed</resolution>
                                        <assignee username="scott.lhommedieu@mongodb.com">Scott L&apos;Hommedieu</assignee>
                                    <reporter username="377973147@qq.com">ding songjie</reporter>
                        <labels>
                    </labels>
                <created>Thu, 11 Jul 2019 10:14:37 +0000</created>
                <updated>Fri, 27 Oct 2023 13:24:56 +0000</updated>
                            <resolved>Tue, 23 Jul 2019 20:40:23 +0000</resolved>
                                    <version>2.8.1</version>
                                                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="2339865" author="scott.lhommedieu" created="Tue, 23 Jul 2019 20:40:23 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=377973147%40qq.com&quot; class=&quot;user-hover&quot; rel=&quot;377973147@qq.com&quot;&gt;377973147@qq.com&lt;/a&gt;&lt;br/&gt;
This behavior is not ideal but it is expected behavior based on the driver spec.  There is ongoing investigation into how we may be able to improve this behavior natively with in the server and drivers. &lt;/p&gt;

&lt;p&gt;This issue is also detailed &lt;a href=&quot;https://github.com/helm/charts/issues/1569#issuecomment-446011045&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt; &lt;br/&gt;
It is a byproduct the SDAM spec that is expressed &lt;a href=&quot;https://github.com/mongodb/specifications/blob/master/source/server-discovery-and-monitoring/server-discovery-and-monitoring.rst#clients-use-the-hostnames-listed-in-the-replica-set-config-not-the-seed-list&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Importantly:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;This spec requires clients to connect to the hostnames listed in the ismaster response. Furthermore, if the response is from a primary, the client MUST remove all hostnames not listed&lt;br/&gt;
...&lt;br/&gt;
Thus, replica set members must be reachable from the client by the hostnames listed in the replica set config.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;There is currently no change suitable in the driver alone to remedy this issue.  We will continue to pursue improvement in coordination with the server through &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-36603&quot; title=&quot;Support for multiple hostnames and IPs in MongoDB replica sets for high availability&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-36603&quot;&gt;SERVER-36603&lt;/a&gt; &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|hv2q27:</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>