Skip to content

Retry JdbcClient::execute method #26231

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

kokosing
Copy link
Member

Retry JdbcClient::execute method

So far we were doing a retry only when the connection opening had
intermittent failure.

Notice this is a best effort retrying. There is another execute method
in BaseJdbcClient, however it is not a trivial thing to retry on
statement execution there as it is not safe to retry it without opening
a new connection.

kokosing added 3 commits July 17, 2025 19:48
That way it is easy to simply call a plain query execution on remote
database.
So far we were doing a retry only when the connection opening had
intermittent failure.

Notice this is a best effort retrying. There is another execute method
in BaseJdbcClient, however it is not a trivial thing to retry on
statement execution there as it is not safe to retry it without opening
a new connection.
@cla-bot cla-bot bot added the cla-signed label Jul 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

1 participant