Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-9654

Batch total jobs number is off by one

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: L3 - Default
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.11.0, 7.11.0-alpha2
    • Component/s: engine
    • Labels:
      None

      Description

      We calculate the total number of jobs as (int) Math.ceil(processInstanceCount / invocationsPerBatchJob); in a couple of places (e.g. https://github.com/camunda/camunda-bpm-platform/blob/7.10.0/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/ProcessInstanceModificationBatchCmd.java#L103). Math.ceil does nothing here. Should rather do +1 if mod is != 0.

      We don't seem to use this value internally for batch processing, so the impact is purely on reporting currently.

        Issue Links

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              yana.vasileva Yana Vasileva
              Reporter:
              thorben.lindhauer Thorben Lindhauer
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development