Sometimes the driver reports: BsonSerializationException

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Critical - P2
    • None
    • Affects Version/s: 1.9.2
    • Component/s: BSON
    • None
    • Environment:
      Windows
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      We insert two types of data to mongodb: AaaChange and InferredChange. They both are derived from the base type Change. But when we query them out occasionally we get error: Unknown discriminator value 'InferredChange'. Attached are the code we used to query mongodb and the exception stack.

        1. BsonException.txt
          3 kB
          John Cheng
        2. QueryMongo.txt
          0.6 kB
          John Cheng

            Assignee:
            Craig Wilson
            Reporter:
            John Cheng
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: