SELECT FOR UPDATE/SELECT LOCK IN SHARE MODE does not work in PXC, but are allowed for pxc_strict_mode=ENFORCING

Bug #1645621 reported by Grigorijs
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona XtraDB Cluster moved to https://jira.percona.com/projects/PXC
Won't Fix
Undecided
Unassigned

Bug Description

Issuing SELECT FOR UPDATE/SELECT LOCK IN SHARE MODE is working as expected only when used inside one cluster node. If parallel transaction is tried on another node then no limitations are applied on it.

Think right handling would be to deny these operations with ENFORCING pxc_strict_mode, or implement correct handling (so SELECT FOR UPDATE on one node would prevent for example SELECT LOCK IN SHARE MODE on another node)

Current software version is:
ii percona-xtradb-cluster-server-5.7 5.7.14-26.17-1.jessie amd64

Revision history for this message
Kenn Takara (kenn-takara) wrote :

Galera does not provide for this kind of cross-cluster locking. With that said, this functionality has been left in to allow the code to work in single-node writer scenarios.

Revision history for this message
Grigorijs (grigk) wrote :

How I see it, handling of these requests should be same as for other locking operations (LOCK TABLES, GET_LOCK) - depending on pxc_strict_mode silently allowed, warning issued or denied. As by logic it seems to me that underlying LOCK system is the same for all these requests

Revision history for this message
Krunal Bauskar (krunal-bauskar) wrote :

Problem with Select for Update is not always true. So it is better treated as limitation than bug.

Changed in percona-xtradb-cluster:
status: New → Won't Fix
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PXC-1942

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.