select ... for update breaks with multi-writer galera
Bug #1321734 reported by
Chris Ricker
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cisco Openstack |
Fix Released
|
High
|
Chris Ricker | ||
Havana |
Fix Released
|
High
|
Chris Ricker |
Bug Description
The SQL construct "select ... for update" produces undefined results when used on galera databases with multiple writers
OpenStack uses this construct heavily in both nova and neutron, where it can lead to deadlock errors from the database
See the thread starting at http://
Changed in openstack-cisco: | |
status: | In Progress → Fix Committed |
Changed in openstack-cisco: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
To resolve for icehouse, we'll move to a variant of our current active-active multiple writer model
We'll still set up galera across 3 nodes but will configure the HAProxy VIP in front of galera to direct all writes to a single node, with the other two nodes configured as sequential backups to be written to only when the primary node is unavailable
This will avoid the undefined locking semantics seen when using "select ... for update" with multiple writers, but will still be HA