<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:44:43 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-3217] A timeout occured after 30000ms selecting a server using CompositeServerSelector</title>
                <link>https://jira.mongodb.org/browse/CSHARP-3217</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;I&apos;m trying to create a Kubernetes Side-Car container that will help manage the mongo replica set. However, I can&apos;t seem to use the CSharp driver to connect to a mongo instance that was started with the --replSet option. I&apos;d like for my C# application to send the&#160;&lt;br/&gt;
 replSetInitiate command.&#160; However, the driver refuses to connect by throwing a Timeout exception.&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;   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;var _mongoClient = new MongoClient(&quot;mongodb://localhost:30006/?replicaSet=rs0&quot;);&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;var dbAdmin = _mongoClient.GetDatabase(&quot;admin&quot;);&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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-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;var result = await dbAdmin.RunCommandAsync&amp;lt;BsonDocument&amp;gt;(&quot;{replSetInitiate : {} }&quot;);&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;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="1494972">CSHARP-3217</key>
            <summary>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="-1">Unassigned</assignee>
                                    <reporter username="stbraley@gmail.com">Todd Braley</reporter>
                        <labels>
                    </labels>
                <created>Tue, 29 Sep 2020 15:40:23 +0000</created>
                <updated>Fri, 27 Oct 2023 13:24:49 +0000</updated>
                            <resolved>Wed, 30 Sep 2020 21:59:49 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="3420342" author="JIRAUSER1257094" created="Thu, 1 Oct 2020 11:56:18 +0000"  >&lt;p&gt;Thanks, Dmitry&lt;/p&gt;

&lt;p&gt;The direct connection mode works. I didn&apos;t see that in the documentation.&lt;/p&gt;</comment>
                            <comment id="3419650" author="dmitry.lukyanov" created="Wed, 30 Sep 2020 21:20:16 +0000"  >&lt;p&gt;Hey &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=stbraley%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;stbraley@gmail.com&quot;&gt;stbraley@gmail.com&lt;/a&gt; ,&lt;/p&gt;

&lt;p&gt;In addition to Asya&apos;s comment, you cannot connect to an un-initiated replica set without &lt;em&gt;direct&lt;/em&gt; connection mode. You have to use a &lt;em&gt;directconnection=true&lt;/em&gt; (or in older driver versions: &lt;em&gt;connect=direct&lt;/em&gt;) to connect to an un-initiated replica set.&lt;/p&gt;

&lt;p&gt;When replica set will be initialized then you will be able to use the regular connection string with &lt;em&gt;?replicaSet=rs0&lt;/em&gt; and without &lt;em&gt;directconnection=true&lt;/em&gt;.&lt;/p&gt;</comment>
                            <comment id="3417595" author="asya" created="Tue, 29 Sep 2020 23:15:44 +0000"  >&lt;p&gt;Shouldn&apos;t you omit &lt;tt&gt;replicaSet=rs0&lt;/tt&gt; since the replica set doesn&apos;t exist yet?&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|hsq48f:</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>