Uploaded image for project: 'MariaDB Connector/J'
  1. MariaDB Connector/J
  2. CONJ-278

Improve prepared statement on failover

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: all
    • Fix Version/s: 1.4.3
    • Component/s: Failover
    • Labels:
      None

      Description

      PreparedStatement have a specific implementation for failover, since the concept is to send only data after a "prepare" has been done.
      When this is used on a slave connection and a failover happen, if the master connection is up, prepare will be done on master to have no interruption and avoid forcing immediatly a reconnection to a slave to avoid a bottleneck that can even lead to JVM crash.

      When a slave connection is recovered, the next execution has to use this slave connection, to avoid long running preparedStatement using master for too long

        Attachments

          Activity

            People

            Assignee:
            diego dupin Diego Dupin
            Reporter:
            diego dupin Diego Dupin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Git Integration