Skip to content

2.1 behavior in standard, adaptive strats#6871

Open
dagnir wants to merge 1 commit intofeature/master/2026-new-retriesfrom
dongie/retry-strategy-v2_1_option
Open

2.1 behavior in standard, adaptive strats#6871
dagnir wants to merge 1 commit intofeature/master/2026-new-retriesfrom
dongie/retry-strategy-v2_1_option

Conversation

@dagnir
Copy link
Copy Markdown
Contributor

@dagnir dagnir commented Apr 16, 2026

Motivation and Context

Support the 2.1 behavior changes in adaptive and standard strategies. This includes the change in constant values based on 2.0 and 2.1, and the application of a different cost for throttling retries in 2.1.

The 2.1 behavior is implemented as an overload of the builder() method that accepts a boolean to select between 2.0 and 2.1. The no-arg version defaults to false, i.e. 2.0.

Modifications

Testing

  • New unit tests to verify use of different constants.

Screenshots (if appropriate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Checklist

  • I have read the CONTRIBUTING document
  • Local run of mvn install succeeds
  • My code follows the code style of this project
  • My change requires a change to the Javadoc documentation
  • I have updated the Javadoc documentation accordingly
  • I have added tests to cover my changes
  • All new and existing tests passed
  • I have added a changelog entry. Adding a new entry must be accomplished by running the scripts/new-change script and following the instructions. Commit the new file created by the script in .changes/next-release with your changes.
  • My change is to implement 1.11 parity feature and I have updated LaunchChangelog

License

  • I confirm that this pull request can be released under the Apache 2 license

@dagnir dagnir requested a review from a team as a code owner April 16, 2026 20:12
Support the 2.1 behavior changes in adaptive and standard strategies.
This includes the change in constant values based on 2.0 and 2.1, and
the application of a different cost for throttling retries in 2.1.

The 2.1 behavior is implemented as an overload of the builder() method
that accepts a boolean to select between 2.0 and 2.1. The no-arg version
defaults to false, i.e. 2.0.
@dagnir dagnir force-pushed the dongie/retry-strategy-v2_1_option branch from 0ddd231 to ed0a8d5 Compare April 16, 2026 20:22
@sonarqubecloud
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant