[MDEV-5883] Deadlock when attempting to update field with same value Created: 2014-03-17 Updated: 2014-05-12 Resolved: 2014-05-12 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 5.5.35-galera, 5.5.36-galera |
| Fix Version/s: | 5.5.38-galera |
| Type: | Bug | Priority: | Major |
| Reporter: | Ralf Kilian | Assignee: | Nirbhay Choubey (Inactive) |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | galera | ||
| Environment: |
Main system:
Tested with multiple systems and versions (see description for details). |
||
| Description |
|
We have a Galera cluster containing two MariaDB servers with multi-master replication. When I try to update a field inside a table using the value the field already has (e. g. update value "test" with "test") I get the following error, no matter if integer, boolean or string.
Below you can find the steps how to reproduce this. I also tried that on a MariaDB server without Galera and there it was executed without any errors:
I've already posted this inside the Galera bug list and received the following answer:
Used systems:
Edit: This bug seems to be already fixed in MariaDB version 10. How to reproduce:
|
| Comments |
| Comment by Nirbhay Choubey (Inactive) [ 2014-05-02 ] | ||||||||||||||||||||||||||||||||||||||||||||
|
Hi Ralf, Node 1 Copyright (c) 2000, 2014, Oracle, SkySQL Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [test]> CREATE DATABASE mytest; MariaDB [test]> USE mytest; MariaDB [mytest]> INSERT INTO `mytest`.`mytable` (`myint`, `mystr`) VALUES ('0', 'test'); MariaDB [mytest]> UPDATE mytable SET myint = 0 WHERE id = 1; MariaDB [mytest]> UPDATE mytable SET mybool = 0 WHERE id = 1; MariaDB [mytest]> UPDATE mytable SET mybool = 0 WHERE id = 1; MariaDB [mytest]> select * from mytable;
---
--- Node 2
---
--- Is there something specific that I am missing (besides CentOS 6.3 as I presume | ||||||||||||||||||||||||||||||||||||||||||||
| Comment by Ralf Kilian [ 2014-05-02 ] | ||||||||||||||||||||||||||||||||||||||||||||
|
Hello, Nirbhay! Thank you for your answer!
This is pretty weird.
I also think that this should not make much difference. Here is the config behind the replication, maybe there is something wrong or missing and this causes the error in some way?
However, we're also using these config lines for the replication with MariaDB 10 and everything works fine there. Thanks in advance! | ||||||||||||||||||||||||||||||||||||||||||||
| Comment by Nirbhay Choubey (Inactive) [ 2014-05-02 ] | ||||||||||||||||||||||||||||||||||||||||||||
|
Still no luck. The wsrep_ config options that you have shared are all standard ones and | ||||||||||||||||||||||||||||||||||||||||||||
| Comment by Ralf Kilian [ 2014-05-06 ] | ||||||||||||||||||||||||||||||||||||||||||||
|
Hello, Nirbhay!
Thanks for the hint, I've removed it (was a left over from the past).
Yes I can. I'm using the default init script to start the service and this is my config /etc/my.cnf.d/server.cnf.
Thanks in advance! | ||||||||||||||||||||||||||||||||||||||||||||
| Comment by Nirbhay Choubey (Inactive) [ 2014-05-07 ] | ||||||||||||||||||||||||||||||||||||||||||||
|
Hi Ralf, | ||||||||||||||||||||||||||||||||||||||||||||
| Comment by Ralf Kilian [ 2014-05-12 ] | ||||||||||||||||||||||||||||||||||||||||||||
|
Hello, Nirbhay!
Thanks a lot for the information! It was not set via command line, but after setting the binlog-format to row (inside the config) it works.
Should I explicitly set the binlog-format there anyway? Thanks in advance! | ||||||||||||||||||||||||||||||||||||||||||||
| Comment by Nirbhay Choubey (Inactive) [ 2014-05-12 ] | ||||||||||||||||||||||||||||||||||||||||||||
|
> Should I explicitly set the binlog-format there anyway? Yes, you should. | ||||||||||||||||||||||||||||||||||||||||||||
| Comment by Ralf Kilian [ 2014-05-12 ] | ||||||||||||||||||||||||||||||||||||||||||||
Thanks a lot. Would mixed format be okay does it have to be row format for some reason? Thanks in advance! | ||||||||||||||||||||||||||||||||||||||||||||
| Comment by Nirbhay Choubey (Inactive) [ 2014-05-12 ] | ||||||||||||||||||||||||||||||||||||||||||||
|
Hi Ralf, | ||||||||||||||||||||||||||||||||||||||||||||
| Comment by Ralf Kilian [ 2014-05-12 ] | ||||||||||||||||||||||||||||||||||||||||||||
|
I see. Thanks again for your help! |