read-only blocks SELECT statements in PXC
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MySQL patches by Codership |
Fix Released
|
Medium
|
Seppo Jaakola | ||
Percona XtraDB Cluster moved to https://jira.percona.com/projects/PXC |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.3 (Santiago)
Percona-
Percona-
percona-
Percona-
percona-
Percona-
Percona-
#mysql -h1.1.1.1 -P3306 -uptest -p
user ptest has select privilege on this database.
mysql> select * from uniqname_white limit 10;
ERROR 1290 (HY000): The MySQL server is running with the --read-only option so it cannot execute this statement
mysql> show variables like 'read%';
+------
| Variable_name | Value |
+------
| read_buffer_size | 8388608 |
| read_only | ON |
| read_rnd_
+------
mysql>set global read_only=off;
logon with ptest, and execute query
mysql> select * from uniqname_white limit 10;
at this time,query is ok.
the cluster nodes with read_only=on will block normal user query.
Changed in codership-mysql: | |
importance: | Undecided → Medium |
assignee: | nobody → Alex Yurchenko (ayurchen) |
milestone: | none → 5.5.30-24.8 |
status: | New → Confirmed |
Changed in codership-mysql: | |
milestone: | 5.5.30-24.8 → 5.5.31-23.7.4 |
assignee: | Alex Yurchenko (ayurchen) → nobody |
Changed in percona-xtradb-cluster: | |
status: | Incomplete → Triaged |
milestone: | none → 5.5.31-25 |
Changed in codership-mysql: | |
milestone: | 5.5.31-23.7.5 → 5.5.32-23.7.6 |
Changed in codership-mysql: | |
assignee: | nobody → Seppo Jaakola (seppo-jaakola) |
status: | Confirmed → In Progress |
Changed in percona-xtradb-cluster: | |
status: | Triaged → Fix Committed |
Changed in codership-mysql: | |
status: | Fix Committed → Fix Released |
Changed in percona-xtradb-cluster: | |
status: | Fix Committed → Fix Released |
case 1 is ok:
begin;
use abc;
select count(*) from id_seq;
rollback;
case 2 get an error:
set autocommit=0;
use abc;
select count(*) from id_seq;
commit;
ERROR 1290 (HY000): The MySQL server is running with the --read-only option so it cannot execute this statement
case 3 get an error:
set autocommit=1;
use abc;
select count(*) from id_seq;
ERROR 1290 (HY000): The MySQL server is running with the --read-only option so it cannot execute this statement