<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:38:13 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-928] System.IO.EndOfStreamException: Attempted to read past the end of the stream.</title>
                <link>https://jira.mongodb.org/browse/CSHARP-928</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;Since we are using the 1.9 driver we started noticing the following exception popup (11 occurrences). We have 2 occurrences of this happening with 1.8 but it seems to be happening a ton more with 1.9. I&apos;m sorry I don&apos;t have a repro but I believe it had to do with passing hundreds of excludes into a not in condition (which we have fixed). But I figured I&apos;d submit a bug for it just to bring it to your attention:&lt;/p&gt;

&lt;p&gt;System.IO.EndOfStreamException: Attempted to read past the end of the stream.&lt;br/&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.MongoCollection.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.MongoCollection.RunCommandAs&lt;span class=&quot;error&quot;&gt;&amp;#91;TCommandResult&amp;#93;&lt;/span&gt;(IMongoCommand command)&lt;br/&gt;
 at MongoDB.Driver.MongoCollection.Count(CountArgs args)&lt;/p&gt;</description>
                <environment>Microsoft Windows Server 2012 R2 Standard</environment>
        <key id="119215">CSHARP-928</key>
            <summary>System.IO.EndOfStreamException: Attempted to read past the end of the stream.</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="9">Done</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="bniemyjski">Blake Niemyjski</reporter>
                        <labels>
                    </labels>
                <created>Tue, 11 Mar 2014 13:53:30 +0000</created>
                <updated>Wed, 8 May 2019 06:36:44 +0000</updated>
                            <resolved>Fri, 20 Jun 2014 14:40:03 +0000</resolved>
                                    <version>1.9</version>
                                                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="2238194" author="roshni" created="Wed, 8 May 2019 06:36:44 +0000"  >&lt;p&gt;continuously getting this issue? can anyone help me regarding the solution?&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;MongoDB.Driver.MongoConnectionException&lt;br/&gt;
 HResult=0x80131500&lt;br/&gt;
 Message=An exception occurred while receiving a message from the server.&lt;br/&gt;
 Source=MongoDB.Driver.Core&lt;br/&gt;
 StackTrace:&lt;br/&gt;
 at MongoDB.Driver.Core.Connections.BinaryConnection.ReceiveBuffer()&lt;br/&gt;
 at MongoDB.Driver.Core.Connections.BinaryConnection.ReceiveBuffer(Int32 responseTo, CancellationToken cancellationToken)&lt;br/&gt;
 at MongoDB.Driver.Core.Connections.BinaryConnection.ReceiveMessage(Int32 responseTo, IMessageEncoderSelector encoderSelector, MessageEncoderSettings messageEncoderSettings, CancellationToken cancellationToken)&lt;br/&gt;
 at MongoDB.Driver.Core.ConnectionPools.ExclusiveConnectionPool.PooledConnection.ReceiveMessage(Int32 responseTo, IMessageEncoderSelector encoderSelector, MessageEncoderSettings messageEncoderSettings, CancellationToken cancellationToken)&lt;br/&gt;
 at MongoDB.Driver.Core.ConnectionPools.ExclusiveConnectionPool.AcquiredConnection.ReceiveMessage(Int32 responseTo, IMessageEncoderSelector encoderSelector, MessageEncoderSettings messageEncoderSettings, CancellationToken cancellationToken)&lt;br/&gt;
 at MongoDB.Driver.Core.WireProtocol.CommandWireProtocol`1.Execute(IConnection connection, CancellationToken cancellationToken)&lt;br/&gt;
 at MongoDB.Driver.Core.Servers.Server.ServerChannel.ExecuteProtocol&lt;span class=&quot;error&quot;&gt;&amp;#91;TResult&amp;#93;&lt;/span&gt;(IWireProtocol`1 protocol, CancellationToken cancellationToken)&lt;br/&gt;
 at MongoDB.Driver.Core.Servers.Server.ServerChannel.Command&lt;span class=&quot;error&quot;&gt;&amp;#91;TResult&amp;#93;&lt;/span&gt;(DatabaseNamespace databaseNamespace, BsonDocument command, IElementNameValidator commandValidator, Func`1 responseHandling, Boolean slaveOk, IBsonSerializer`1 resultSerializer, MessageEncoderSettings messageEncoderSettings, CancellationToken cancellationToken)&lt;br/&gt;
 at MongoDB.Driver.Core.Operations.BulkUnmixedWriteOperationBase.ExecuteProtocol(IChannelHandle channel, BsonDocument command, Func`1 responseHandling, CancellationToken cancellationToken)&lt;br/&gt;
 at MongoDB.Driver.Core.Operations.BulkUnmixedWriteOperationBase.ExecuteBatch(IChannelHandle channel, BatchableSource`1 requestSource, Int32 originalIndex, CancellationToken cancellationToken)&lt;br/&gt;
 at MongoDB.Driver.Core.Operations.BulkUnmixedWriteOperationBase.ExecuteBatches(IChannelHandle channel, CancellationToken cancellationToken)&lt;br/&gt;
 at MongoDB.Driver.Core.Operations.BulkUnmixedWriteOperationBase.Execute(IChannelHandle channel, CancellationToken cancellationToken)&lt;br/&gt;
 at MongoDB.Driver.Core.Operations.BulkMixedWriteOperation.ExecuteUpdates(IChannelHandle channel, IEnumerable`1 requests, Boolean isLast, CancellationToken cancellationToken)&lt;br/&gt;
 at MongoDB.Driver.Core.Operations.BulkMixedWriteOperation.ExecuteBatch(IChannelHandle channel, Run run, Boolean isLast, CancellationToken cancellationToken)&lt;br/&gt;
 at MongoDB.Driver.Core.Operations.BulkMixedWriteOperation.Execute(IWriteBinding binding, CancellationToken cancellationToken)&lt;br/&gt;
 at MongoDB.Driver.OperationExecutor.ExecuteWriteOperation&lt;span class=&quot;error&quot;&gt;&amp;#91;TResult&amp;#93;&lt;/span&gt;(IWriteBinding binding, IWriteOperation`1 operation, CancellationToken cancellationToken)&lt;br/&gt;
 at MongoDB.Driver.MongoCollectionImpl`1.ExecuteWriteOperation&lt;span class=&quot;error&quot;&gt;&amp;#91;TResult&amp;#93;&lt;/span&gt;(IWriteOperation`1 operation, 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.UpdateOne(FilterDefinition`1 filter, UpdateDefinition`1 update, UpdateOptions options, CancellationToken cancellationToken)&lt;br/&gt;
 at QuoteStar.MongoRepositories.MongoRepository`1.Update&lt;span class=&quot;error&quot;&gt;&amp;#91;T&amp;#93;&lt;/span&gt;(Expression`1 expression, T item)&lt;/p&gt;

&lt;p&gt;Inner Exception 1:&lt;br/&gt;
EndOfStreamException: Attempted to read past the end of the stream.&lt;/p&gt;</comment>
                            <comment id="714911" author="stephenw" created="Tue, 9 Sep 2014 18:54:50 +0000"  >&lt;p&gt;Has this been addressed? I&apos;m running into the same problem when running RunCommand and executing replSetReconfig.&lt;/p&gt;

&lt;p&gt;I can make this happen at will. It will happen every time the configuration is different than the previous call to replSetReconfig. If I run the same command twice in a row, the second one works just fine.&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;

&lt;p&gt;Made a new issue because this one is closed: (&lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-1059&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/CSHARP-1059&lt;/a&gt;)&lt;/p&gt;</comment>
                            <comment id="513233" author="bniemyjski" created="Tue, 11 Mar 2014 14:06:09 +0000"  >&lt;p&gt;I&apos;m not sure as this error happens randomly. We have a bunch from last two weeks at random and then one two months ago and then one 10 months ago. We did make this change (&lt;a href=&quot;https://github.com/exceptionless/Exceptionless/commit/70cbb061c326189ca5262cd9c8d3de305c6f01da&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/exceptionless/Exceptionless/commit/70cbb061c326189ca5262cd9c8d3de305c6f01da&lt;/a&gt;) as we seen it was really expensive.. take a look at line 484 on Error Repository. Since pushing we haven&apos;t seen anything happen but then again this error was random. I&apos;ll let you know if we see it again, but I figured I would report it just to be safe &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;.&lt;/p&gt;
</comment>
                            <comment id="513226" author="craiggwilson" created="Tue, 11 Mar 2014 13:59:48 +0000"  >&lt;p&gt;Hey Blake, thanks for the report (and thanks for testing with the 1.9 rc0).  &lt;/p&gt;

&lt;p&gt;Just to clarify what you saying:  Now that you have fixed the &quot;not&quot; problem, you are not experiencing this issue any longer.  Is this correct?  It still sounds like something is going on, but it&apos;s good there is a way to workaround it.&lt;/p&gt;

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

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