Batch total jobs number is off by one

XMLWordPrintable

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

      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.

        This is the controller panel for Smart Panels app

              Assignee:
              Yana Vasileva
              Reporter:
              Thorben Lindhauer
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: