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

MapReduce.Duration throws an exception

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 0.9
    • 0.9
    • None
    • None

    Description

      I think this is 0.9, I pulled earlier this evening November 28th, 2010.

      This is trivial, but I noticed the Duration property is throwing an exception:

      MongoDB.DriverOnlineTests.Jira.CSharpMapReduce.CSharpMapReduceTests.MapReduce:
      System.InvalidCastException : Unable to cast object of type 'MongoDB.Bson.BsonInt32' to type 'MongoDB.Bson.BsonDouble'.

      Attached is an integration test reproducing the issue.

      Also, inside of CommandResult there are two properties:

      • ErrorMessage : "Unknown Error"
      • Ok : true

      Not sure if those should be that way.

      Attachments

        Activity

          People

            robert@mongodb.com Robert Stam
            robert.schooley Robert Schooley
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: