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.

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 1.9.2
    • Connectivity
    • None
    • Windows 8
      Microsoft Windows Server 2008 R2 Standard

    Description

      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]

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: