Skip to content

crdb: Add ExecuteCtx for configurable retry limits #180

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 12 commits into from
Feb 5, 2025
Merged

Conversation

sean-
Copy link
Contributor

@sean- sean- commented Feb 5, 2025

Adds ExecuteCtx which allows configuring maximum retries through context, alongside the existing Execute function. This enables better control over retry behavior while maintaining compatibility with code using the original Execute.

The new function helps prevent infinite retry loops in environments where bounded retry counts are required, while preserving the existing error handling and retry semantics.

Adds ExecuteCtx which allows configuring maximum retries through context,
alongside the existing Execute function. This enables better control over
retry behavior while maintaining compatibility with code using the original
Execute.

The new function helps prevent infinite retry loops in environments where
bounded retry counts are required, while preserving the existing error
handling and retry semantics.
@sean- sean- self-assigned this Feb 5, 2025
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@sean-
Copy link
Contributor Author

sean- commented Feb 5, 2025

Also, FYI re: the reason for the toolchain bumping and limiting the Go support matrix is because various tools were segfaulting on older versions of Go.

@sean- sean- requested review from rafiss and rail February 5, 2025 18:14
Copy link
Member

@rail rail left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@rafiss rafiss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 2 of 3 files at r4, 1 of 1 files at r9, 2 of 2 files at r11.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @sean-)

@sean- sean- merged commit b5ebaaa into master Feb 5, 2025
3 checks passed
@sean- sean- deleted the add-execute_ctx branch February 5, 2025 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants