Add spring-ydb-retry module (v0.10.0)#226
Merged
Merged
Conversation
Align the retry setting with Spring Retry semantics: maxAttempts now counts the total number of attempts including the initial execution, and the ydb.transaction.retry.max-retries property becomes max-attempts. @YdbTransactional override attributes use 0 (instead of -1) to inherit the global configuration value; negative values are rejected. Adds a version badge to the module README. Co-authored-by: Cursor <cursoragent@cursor.com>
c223fe9 to
76bc0dc
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Introduces the
spring-ydb-retrymodule as a standalone, releasable Maven artifact and refines its retry API.tech.ydb:spring-ydb-retry) with its own CI/publish workflows.maxRetries→maxAttemptswith Spring Retry semantics:maxAttemptscounts the total number of attempts including the initial execution (maxAttempts = 3→ initial attempt + up to 2 retries,maxAttempts = 1→ single run without retries). The propertyydb.transaction.retry.max-retriesbecomesydb.transaction.retry.max-attempts.@YdbTransactionaloverride attributes now use0(instead of-1) to inherit the global configuration value; negative values are rejected.0.10.0, updatesCHANGELOG.md, and adds a Maven/CI/License version badge to the module README.Test plan
mvn clean testfor the retry unit/interceptor test suite (94 tests, green)Made with Cursor