[MDEV-9386] Commit failed due to failure of an earlier commit on which this one depends Created: 2016-01-09 Updated: 2022-09-08 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Replication |
| Affects Version/s: | 10.0.23, 10.1 |
| Fix Version/s: | 10.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | Alex | Assignee: | Andrei Elkin |
| Resolution: | Unresolved | Votes: | 1 |
| Labels: | parallelslave | ||
| Description |
|
Hello, Recently the app logic been changed and we are using INSERT + ON DUPLICATE KEY UPDATE Another thing - alter to myisam for a table 30gb with 2 indexes took about 15 minutes, and to innodb (from myisam) around 2 hours. But I guess that's by design. All other myisam tables that have simple insert without primary key working fine as innodb, without any errors. masters have insert delayed which is seen on slave, but I guess slave converts this to simple insert in order to keep same order but maybe this can help as well Thanks, |
| Comments |
| Comment by Elena Stepanova [ 2016-01-11 ] |
|
Please attach your cnf file(s) or, if you already did it in previous reports, point at the one(s) that are applicable to this issue. Can you describe the flow which causes the duplicate keys in the first place? Are they coming from different masters, or does the slave receive direct updates (inserts) which produce the keys which can be later duplicated by the replication events? |
| Comment by Alex [ 2016-01-12 ] |
|
Hi Elena, The master has blackhole tables (previously it was myisam and we've filtered everything in redis to avoid duplicates). So right now every single query enters master and its binary logs. Recently we've switched our app queries to become insert + on duplicate key update, because we still wanted a certain field being updated on slave. So in both situations whenever I tried working with innodb and parallel replication I got the error I've mentioned earlier. Single slave thread works fine with innodb. Thanks! |
| Comment by Alex [ 2016-01-30 ] |
|
I checked the behavior with 10.1 and having same problem |