camunda-community-hub/camunda-platform-7-custom-batch

CustomBatchBuilder.calculateTotalJobs() uses Integer division

tobiasbehr opened this issue · 1 comments

private int calculateTotalJobs() { return Integer.divideUnsigned(this.batchData.size(), this.batch.getInvocationsPerBatchJob()); }

When batchData.size() == 1500 and getInvocationsPerBatchJob() == 1000, then calculateTotalJobs returns 1 but should return 2.

Many thanks, merged your pull request.