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

Decoupling JDBCBackendConnection from ConnectionSession #13975

Merged
merged 16 commits into from Dec 7, 2021

Conversation

TeslaCN
Copy link
Member

@TeslaCN TeslaCN commented Dec 7, 2021

Related to #13957

Changes proposed in this pull request:

  • Make abstract class ConnectionSession to final and use it in proxy as possible
  • Rename JDBCConnectionSession to JDBCBackendConnection and extract BackendConnection from it
  • JDBCBackendConnection implements BackendConnection
  • Decoupling JDBCBackendConnection from CommandExecutorTask and push down logic of closing resources to JDBCBackendConnection

@TeslaCN TeslaCN added this to the 5.0.1 milestone Dec 7, 2021
@TeslaCN TeslaCN marked this pull request as ready for review December 7, 2021 10:58
@tristaZero tristaZero merged commit baa9eda into apache:master Dec 7, 2021
TeslaCN added a commit to TeslaCN/shardingsphere that referenced this pull request Dec 7, 2021
sandynz pushed a commit that referenced this pull request Dec 7, 2021
* Revise #13975 and add more tests

* Catch BackendConnectionException and log

* Rename test case

* Add connection id to log error message
@TeslaCN TeslaCN deleted the 13957_extract_backend_connection branch December 8, 2021 02:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants