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

Handle SQLException caused by IOException during delegated connection creation #7

Open
AndreyLebedenko opened this issue Oct 17, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@AndreyLebedenko
Copy link
Contributor

Consider the following scenario:

  1. Driver queried the cluster for RO replicas' endpoints.
  2. N records returned of 'active' state.
  3. N records added to the list.
  4. X RO replicas went down.
  5. Application requests connection to be established.
  6. Driver pulls record which points to the replica, which is no longe accessible.
  7. Driver tries to open JDBC connection.
  8. Driver receives SQLException with IOException as cause.

Need to add logic which will:

  1. Handle exception and try to open the connection to the healthy address, respecting the general distribution logic.
  2. Optionally: Remove those records from the list or somehow mark it as down.
@gedl gedl added the enhancement New feature or request label Oct 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants