Skip to content
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

CALCITE-5009 Transparent JDBC connection re-creation may lead to data… #173

Merged
merged 1 commit into from Apr 2, 2022

Conversation

stoty
Copy link
Contributor

@stoty stoty commented Mar 29, 2022

… loss

Change-Id: Iaf10b6e4d4760cce9a7fabf1762a94501684f23d

@stoty stoty marked this pull request as draft March 30, 2022 04:44
@stoty
Copy link
Contributor Author

stoty commented Mar 31, 2022

I don't think that the checkstyle/rat errors are related to this patch.

@F21
Copy link
Member

F21 commented Apr 1, 2022

I've fixed the build, you should be able to rebase on top of master to get the tests passing.

… loss

CALCITE-903 has introduced a transaprent reconnection feature, which will open
a new server-side connection in case it is expired from the server side connection
cache.

While this is convinient for most read-only analytical workload, this
can cause a number a problems, including data loss for transactional connections.

This patch disables the transparent reconnect feature by default, and adds the
transparent_reconnection property, which re-enables it when set to true.
@stoty stoty marked this pull request as ready for review April 1, 2022 04:37
@stoty
Copy link
Contributor Author

stoty commented Apr 1, 2022

thank you @F21.

@joshelser joshelser self-requested a review April 1, 2022 18:49
Copy link
Member

@joshelser joshelser left a comment

Choose a reason for hiding this comment

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

I was going to suggest that we also update https://github.com/apache/calcite-avatica/blob/master/site/_docs/client_reference.md but I see that it's already out of date. We can merge this change and then go back and make sure the client_reference.md page is updated for all of the user-facing configuration properties (maybe adding the client retries property there, too).

@joshelser joshelser merged commit c014f71 into apache:master Apr 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants