Skip to content

Handle SQLException caused by IOException during delegated connection creation #7

@AndreyLebedenko

Description

@AndreyLebedenko

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions