commit 6cc500974d958982e6692d87a6a99354d9f2b50a
Author: David Ames <email address hidden>
Date: Tue Oct 6 15:58:35 2020 -0700
Handle attempts to write to a RO node
Though the charm took pains to avoid it there are states the charm can
get into in which it attempts to write to a read only node.
This change catches the OperationalError error code 1290: "The MySQL server
is running with the --super-read-only option so it cannot execute this
statement" gracefully.
Reviewed: https:/ /review. opendev. org/756410 /git.openstack. org/cgit/ openstack/ charm-mysql- innodb- cluster/ commit/ ?id=6cc500974d9 58982e6692d87a6 a99354d9f2b50a
Committed: https:/
Submitter: Zuul
Branch: master
commit 6cc500974d95898 2e6692d87a6a993 54d9f2b50a
Author: David Ames <email address hidden>
Date: Tue Oct 6 15:58:35 2020 -0700
Handle attempts to write to a RO node
Though the charm took pains to avoid it there are states the charm can
get into in which it attempts to write to a read only node.
This change catches the OperationalError error code 1290: "The MySQL server
is running with the --super-read-only option so it cannot execute this
statement" gracefully.
Change-Id: If9188f5e72701f 4bd7575b09217f3 55fa3d505a2
Closes-Bug: #1882205