<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:38: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>[CSHARP-1059] RunCommand replSetReconfig System.IO.EndOfStreamException: Attempted to read past the end of the stream. </title>
                <link>https://jira.mongodb.org/browse/CSHARP-1059</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;Every time the configuration is different than the previous call to replSetReconfig, RunCommand on the MongoDatabase object in the C# driver throws the following exception.&lt;/p&gt;

&lt;p&gt;at MongoDB.Bson.IO.ByteBufferFactory.LoadFrom(Stream stream)&lt;br/&gt;
at MongoDB.Driver.Internal.MongoConnection.ReceiveMessage&lt;span class=&quot;error&quot;&gt;&amp;#91;TDocument&amp;#93;&lt;/span&gt;(BsonBinaryReaderSettings readerSettings, IBsonSerializer serializer, IBsonSerializationOptions serializationOptions)&lt;br/&gt;
at MongoDB.Driver.Operations.CommandOperation`1.Execute(MongoConnection connection)&lt;br/&gt;
at MongoDB.Driver.MongoDatabase.RunCommandAs&lt;span class=&quot;error&quot;&gt;&amp;#91;TCommandResult&amp;#93;&lt;/span&gt;(IMongoCommand command, IBsonSerializer resultSerializer, IBsonSerializationOptions resultSerializationOptions)&lt;br/&gt;
at MongoDB.Driver.MongoDatabase.RunCommandAs&lt;span class=&quot;error&quot;&gt;&amp;#91;TCommandResult&amp;#93;&lt;/span&gt;(IMongoCommand command)&lt;br/&gt;
at MongoDB.Driver.MongoDatabase.RunCommand(IMongoCommand command)&lt;br/&gt;
at &lt;span class=&quot;error&quot;&gt;&amp;#91;MYCODE&amp;#93;&lt;/span&gt;&lt;/p&gt;</description>
                <environment>Windows 8&lt;br/&gt;
Microsoft Windows Server 2008 R2 Standard</environment>
        <key id="157252">CSHARP-1059</key>
            <summary>RunCommand replSetReconfig System.IO.EndOfStreamException: Attempted to read past the end of the stream. </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="9">Done</resolution>
                                        <assignee username="robert@mongodb.com">Robert Stam</assignee>
                                    <reporter username="stephenw">Stephen Weaver</reporter>
                        <labels>
                    </labels>
                <created>Tue, 9 Sep 2014 19:57:57 +0000</created>
                <updated>Mon, 5 Feb 2018 20:29:22 +0000</updated>
                            <resolved>Mon, 5 Feb 2018 20:29:22 +0000</resolved>
                                    <version>1.9.2</version>
                                                    <component>Connectivity</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="1795728" author="rstam" created="Mon, 5 Feb 2018 20:29:22 +0000"  >&lt;p&gt;The server closed the socket which results in the reader getting an EndOfStreamException.&lt;/p&gt;</comment>
                            <comment id="715319" author="stephenw" created="Wed, 10 Sep 2014 03:50:29 +0000"  >&lt;p&gt;Ok, that makes sense. Thanks for the quick response, Craig.&lt;/p&gt;</comment>
                            <comment id="715132" author="craiggwilson" created="Tue, 9 Sep 2014 22:29:54 +0000"  >&lt;p&gt;Hi Stephen,&lt;/p&gt;

&lt;p&gt;Yes, it will work. MongoDB kills the connections when a node changes from and to certain states. This manifests itself to us as an end of stream as we are expecting a reply from a command like this, but it will never come. And since we don&apos;t necessarily know what command you are running, there isn&apos;t a whole lot we can do to make this a better message. I&apos;ll leave this open to see if we can come up with something.&lt;/p&gt;

&lt;p&gt;Thanks for the report.&lt;/p&gt;</comment>
                            <comment id="715001" author="stephenw" created="Tue, 9 Sep 2014 20:22:43 +0000"  >&lt;p&gt;It is interesting to note that reconfigure does work even when the exception is thrown.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                                                <inwardlinks description="backports">
                                        <issuelink>
            <issuekey id="481640">CSHARP-2146</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </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|hsmean:</customfieldvalue>

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