Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-13078

first bulk API batch is one element short of 1000 limit

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.6.0-rc2
    • 2.6.0-rc0
    • Shell
    • Fully Compatible
    • ALL

    Description

      When splitting batches the first batch ends up being 999 elements instead of a 1000. Hence a 3000 batch would be split into
      999, 1000, 1000, 1.

      The reason is that in the addToOperationsList functionthe batch size is incremented and checked before actually adding the last element to the batch.

      Attachments

        Activity

          People

            andreas.nilsson Andreas Nilsson
            andreas.nilsson Andreas Nilsson
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: