Skip to content

Simplify transactions in JdbcPageSink#7875

Merged
findepi merged 5 commits intotrinodb:masterfrom
findepi:findepi/less-autocommit
May 10, 2021
Merged

Simplify transactions in JdbcPageSink#7875
findepi merged 5 commits intotrinodb:masterfrom
findepi:findepi/less-autocommit

Conversation

@findepi
Copy link
Copy Markdown
Member

@findepi findepi commented May 10, 2021

No description provided.

@findepi findepi requested review from kokosing and losipiuk May 10, 2021 11:08
@cla-bot cla-bot bot added the cla-signed label May 10, 2021
This ensures the Phoenix connector cannot be used in some unsupported
manner, should some other JDBC driver be presented on the classpath.
@findepi findepi force-pushed the findepi/less-autocommit branch from 04b3412 to a2655f7 Compare May 10, 2021 14:10
Per JDBC spec, a Driver is expected to have new connections in
auto-commit mode. This seems not to be true for `PhoenixDriver`.
@findepi findepi force-pushed the findepi/less-autocommit branch from a2655f7 to 5aa8001 Compare May 10, 2021 14:26
@findepi findepi force-pushed the findepi/less-autocommit branch 3 times, most recently from 9c4b433 to 2a9c887 Compare May 10, 2021 15:24
findepi added 2 commits May 10, 2021 17:25
Explicit transaction management was unnecessary there, since there was
always exactly one statement (`executeBatch`) executed within each
transaction. Leveraging auto-commit allows for simpler code.
@findepi findepi force-pushed the findepi/less-autocommit branch from 2a9c887 to 2011c8d Compare May 10, 2021 15:25
@findepi findepi merged commit 541edbe into trinodb:master May 10, 2021
@findepi findepi deleted the findepi/less-autocommit branch May 10, 2021 19:59
@findepi findepi added this to the 357 milestone May 10, 2021
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.

4 participants