-
Notifications
You must be signed in to change notification settings - Fork 38.7k
Closed as duplicate
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)status: supersededAn issue that has been superseded by anotherAn issue that has been superseded by anothertype: bugA general bugA general bug
Description
The jitter ratio calculation could throw an ArithmeticException
if spec.delay().toMillis()
returns 0. Additionally, converting to milliseconds may lose precision for sub-millisecond delays.
Retry retry = Retry.backoff(spec.maxAttempts(), spec.delay())
.jitter((double) spec.jitter().toMillis() / spec.delay().toMillis())
.multiplier(spec.multiplier())
.maxBackoff(spec.maxDelay())
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)status: supersededAn issue that has been superseded by anotherAn issue that has been superseded by anothertype: bugA general bugA general bug