Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-758

Write concern is behaving unexpectably

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.9.3
    • Component/s: API
    • Environment:

      Hi,
      I encounter strange behaviour regarding the writeResult.getN() returned value.

      The first save to a DBCollection seems to be failing, writeResult.getN() being != 1, but in fact, it does save the object, a subsequent find() proves it (see the attache test class, the method theTest).

      After a seemingly failled save, a second save actually return writeResult.getN() being == 1 (see theSecondTest).

      Did I do/understood something wrong?

      Thanks for your precious help!
      Brice.

            Assignee:
            Unassigned Unassigned
            Reporter:
            blaurencin@bestofmedia.com Brice Laurencin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: