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

Improve prepared statement on failover

    XMLWordPrintable

Details

    • Task
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • all
    • 1.4.3
    • Failover
    • 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

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

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.