[MDEV-25573] MariaDB and all slaves crash after INSERT to utf8_bin column(index) Created: 2021-04-30 Updated: 2021-05-03 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.4.18 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Critical |
| Reporter: | Jozef Kováč | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Ubuntu 18.4.5 & RHEL 8.3 |
||
| Attachments: |
|
| Description |
|
Looks like some INSERT or index update on column with utf8_bin cause server crash, changing collation to utf8 resolved issue. Some slaves was unable to start at all after crash, during crash recovery applying INSERT from relay_log with cause crash. Setting replicate-ignore-table and manually fixing any inconsistencies helps. Replication also stops with: Error 'Duplicate entry '1|26405' for key 'store_ids_code_uid'' on query. Default database: 'd_w3lngeyumys5ph'. Query: 'INSERT INTO `pohoda_stocks` SET `store_ids_code_uid` = '1|26405', `store_ids` = '1', `code` = '26405', `count` = '10', `countReceivedOrders` = '0', `reservation` = '0'' Again skip error 1062 until all events are applied help. |
| Comments |
| Comment by Alice Sherepa [ 2021-04-30 ] | |||||||||||||||||||||||||||
|
from the log:
| |||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2021-04-30 ] | |||||||||||||||||||||||||||
|
what's the structure of the affected table? What does SHOW CREATE TABLE pohoda_stocks say? | |||||||||||||||||||||||||||
| Comment by Jozef Kováč [ 2021-05-03 ] | |||||||||||||||||||||||||||
|
this was second time for different table, but: CREATE TABLE `pohoda_stocks` ( |