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

Merged
merged 3 commits into from
Jul 24, 2025

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.

@cla-bot cla-bot bot added the cla-signed label Jul 17, 2025
kokosing added 3 commits July 23, 2025 21:16
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.
@kokosing kokosing force-pushed the origin/master/003_retry branch from a79d1e3 to 5a4132c Compare July 23, 2025 19:26
@kokosing kokosing requested review from wendigo, ebyhr and hashhar July 23, 2025 20:46
@kokosing kokosing merged commit 9521b65 into trinodb:master Jul 24, 2025
125 of 126 checks passed
@github-actions github-actions bot added this to the 477 milestone Jul 24, 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.

2 participants