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

[do not merge] suggested fix for auto-detect internal connection pooling #37

Closed
wants to merge 3 commits into from

Conversation

crystall-bitquill
Copy link

@crystall-bitquill crystall-bitquill commented Jul 19, 2023

Summary

Description

This will be the suggested to be added to a customer PR (548), to close reader connections after switching to read-write only when internal connection pooling is used.

Additional Reviewers

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@crystall-bitquill crystall-bitquill changed the title suggested fix for auto-detect internal connection pooling [do not merge] suggested fix for auto-detect internal connection pooling Jul 19, 2023
@@ -248,6 +255,10 @@ private boolean isReader(final @NonNull HostSpec hostSpec) {

private void getNewWriterConnection(final HostSpec writerHostSpec) throws SQLException {
final Connection conn = this.pluginService.connect(writerHostSpec, this.properties);
final String driverProtocol = conn.getMetaData().getURL().split("//", 2)[0];

Choose a reason for hiding this comment

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

PluginService may be extended to provide protocol.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants