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

Write concern is behaving unexpectably

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 2.9.3
    • API

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: