Skip to content

chore: directly retrieve connections from ICP when using the ICP#285

Open
karenc-bq wants to merge 1 commit intomainfrom
fix/caching-in-rw
Open

chore: directly retrieve connections from ICP when using the ICP#285
karenc-bq wants to merge 1 commit intomainfrom
fix/caching-in-rw

Conversation

@karenc-bq
Copy link
Contributor

Summary

Description

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

logger.debug(Messages.get("ReadWriteSplittingPlugin.setWriterClient", writerHost.url));
// Verify clients from internal pools.
if (!(await this.isTargetClientUsable(targetClient))) {
logger.debug(Messages.get("ReadWriteSplittingPlugin.failedToConnectToWriter", writerHost.url));
Copy link
Contributor

Choose a reason for hiding this comment

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

So targetClient isn't good. Should we get a new one?

logger.debug(Messages.get("ReadWriteSplittingPlugin.setReaderClient", readerHost.url));
// Verify clients from internal pools.
if (!(await this.isTargetClientUsable(targetClient))) {
logger.debug(Messages.get("ReadWriteSplittingPlugin.failedToConnectToReader", readerHost.url));
Copy link
Contributor

Choose a reason for hiding this comment

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

So targetClient isn't good. Should we get a new one?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think we should log and throw here instead.

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.

3 participants