Skip to content

Fix RetryBackoffSpec multiplier handling of fractional values #4048

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 1, 2025

Conversation

chemicL
Copy link
Member

@chemicL chemicL commented Jun 30, 2025

RetryBackoffSpec#multiplier accepts a double value. However, the calculation is only taking the integer part for calculating the next power. This change avoids using Duration#multipliedBy(long) and operates on long values in nanos.

@chemicL chemicL added this to the 3.7.8 milestone Jun 30, 2025
@chemicL chemicL requested a review from a team as a code owner June 30, 2025 21:13
@chemicL chemicL added the type/bug A general bug label Jun 30, 2025
@chemicL chemicL merged commit cd881ce into 3.7.x Jul 1, 2025
10 checks passed
chemicL added a commit that referenced this pull request Jul 1, 2025
Signed-off-by: Dariusz Jędrzejczyk <[email protected]>
@chemicL chemicL deleted the exponential-backoff-double-precision branch July 1, 2025 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug A general bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant