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

PrepareStatement on master reconnection after a failover

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.4.3
    • Fix Version/s: 1.4.4
    • Component/s: Failover
    • Labels:
      None

      Description

      When using prepareStatement on server side and cache prepareStatement is activate (default configuration) on a master-slaves configuration :

      If the prepareStatement is to be executed on master, after a failover, the first execution will work, but next executions will be executed on slaves.
      Resulting error will be :
      "The MySQL server is running with the --read-only option so it cannot execute this statement"

      This concern only version 1.4.3

        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