Skip to content

Add spring-ydb-retry module (v0.10.0)#226

Merged
KirillKurdyukov merged 2 commits into
mainfrom
dev-spring-ydb-retry
Jun 15, 2026
Merged

Add spring-ydb-retry module (v0.10.0)#226
KirillKurdyukov merged 2 commits into
mainfrom
dev-spring-ydb-retry

Conversation

@KirillKurdyukov

Copy link
Copy Markdown
Collaborator

Summary

Introduces the spring-ydb-retry module as a standalone, releasable Maven artifact and refines its retry API.

  • Pulls the module up to the repository root as an independent module (tech.ydb:spring-ydb-retry) with its own CI/publish workflows.
  • Renames the retry setting maxRetriesmaxAttempts with Spring Retry semantics: maxAttempts counts the total number of attempts including the initial execution (maxAttempts = 3 → initial attempt + up to 2 retries, maxAttempts = 1 → single run without retries). The property ydb.transaction.retry.max-retries becomes ydb.transaction.retry.max-attempts.
  • @YdbTransactional override attributes now use 0 (instead of -1) to inherit the global configuration value; negative values are rejected.
  • Bumps the module version to 0.10.0, updates CHANGELOG.md, and adds a Maven/CI/License version badge to the module README.

Test plan

  • mvn clean test for the retry unit/interceptor test suite (94 tests, green)
  • Integration tests (require Docker/YDB) — run in CI

Made with Cursor

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>
@KirillKurdyukov KirillKurdyukov merged commit 3e8a6c8 into main Jun 15, 2026
4 checks passed
@KirillKurdyukov KirillKurdyukov deleted the dev-spring-ydb-retry branch June 15, 2026 11:09
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