This change adds retry behavior in initMavenBuild and initImageBuild when attempting to auto-increment the release. This works around the race condition case where two such calls in parallel attempt to choose the same NVR.
This involves a minor, backwards-compatible api change. The getNextRelease hub call now accepts a new optional integer parameter incr for adjusting release increment (previously it was always 1).
This is an update of PR#3080
Fixes: https://pagure.io/koji/issue/3079
This change adds retry behavior in
initMavenBuildandinitImageBuildwhen attempting to auto-increment the release. This works around the race condition case where two such calls in parallel attempt to choose the same NVR.This involves a minor, backwards-compatible api change. The
getNextReleasehub call now accepts a new optional integer parameterincrfor adjusting release increment (previously it was always1).