Skip to content

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 ebyhr, hashhar and wendigo 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