He-Pin opened a new pull request, #3267: URL: https://github.com/apache/pekko/pull/3267
### Motivation Backport of #3266 to 1.7.x. The retry API documentation described attempts as the maximum number of attempts, while the established behavior treats attempts as the maximum number of retries after the first attempt. Reviewer feedback further noted that the result-future wording should describe it as the result of the last invoke attempt. ### Modification Clarify the Scala and Java retry documentation and futures guide to describe attempts as retries after the initial attempt, and describe the result future as the result of the last invoke attempt. Add focused Scala and Java assertions that lock the existing retry count semantics, including attempts = 0. ### Result The documented contract now matches the existing retry behavior without changing runtime logic. ### Tests - sbt actor-tests/Test/testOnly org.apache.pekko.pattern.RetrySpec / passed (on main) - sbt actor-tests/Test/testOnly org.apache.pekko.pattern.PatternsTest / passed (on main) ### References Refs #3233, Backport of #3266 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
