Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-1059

RunCommand replSetReconfig System.IO.EndOfStreamException: Attempted to read past the end of the stream.

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.9.2
    • Component/s: Connectivity
    • None
    • Environment:
      Windows 8
      Microsoft Windows Server 2008 R2 Standard

      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.

      at MongoDB.Bson.IO.ByteBufferFactory.LoadFrom(Stream stream)
      at MongoDB.Driver.Internal.MongoConnection.ReceiveMessage[TDocument](BsonBinaryReaderSettings readerSettings, IBsonSerializer serializer, IBsonSerializationOptions serializationOptions)
      at MongoDB.Driver.Operations.CommandOperation`1.Execute(MongoConnection connection)
      at MongoDB.Driver.MongoDatabase.RunCommandAs[TCommandResult](IMongoCommand command, IBsonSerializer resultSerializer, IBsonSerializationOptions resultSerializationOptions)
      at MongoDB.Driver.MongoDatabase.RunCommandAs[TCommandResult](IMongoCommand command)
      at MongoDB.Driver.MongoDatabase.RunCommand(IMongoCommand command)
      at [MYCODE]

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            stephenw Stephen Weaver
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: