Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-1715

Incorrect Upserted count in BulkWriteResult

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 1.4.0, 1.3.4
    • Fix Version/s: 1.4.2
    • Component/s: CRUD
    • Security Level: Public
    • Labels:
      None
    • Environment:
      software platform

      Description

      Getting wrong upserted count when high number of model is bulk upserted.

      Steps to replicate:

      Try to bulk upsert n no models using.

      if n <= 100000 results is n

      if n > 100000 result is (n % 100000)

        Attachments

        1. main.go
          1 kB
        2. Screenshot from 2020-08-13 21-23-14.png
          Screenshot from 2020-08-13 21-23-14.png
          279 kB

          Activity

            People

            Assignee:
            isabella.siu Isabella Siu
            Reporter:
            ankushgoyal030@gmail.com Ankush Goyal
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: