[MDEV-17059] Replication stopped with error 12605 'This xid is already exist' Created: 2018-08-24 Updated: 2023-09-20 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - Spider |
| Affects Version/s: | 10.3 |
| Fix Version/s: | 10.4 |
| Type: | Bug | Priority: | Major |
| Reporter: | Mattias Jonsson | Assignee: | Yuchen Pei |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Linux |
||
| Description |
|
Replication sql thread stopped on error 12605, 'This xid is already exist' No prepared XA on the spider head or its datanodes. After restarting the sql thread it continues, but the rows in mysql.spider_xa/mysql.spider_xa_member tables still remains. Should this row be removed manually or automatically? Slave status after the sql thread stopped:
Content of spider_xa tables after it was stopped (also the same after starting the sql thread).
From error log on spider head:
On all datanodes: (no prepared xa transactions)
Also the error message should be changed to 'This xid already exist', removing ' is'. |
| Comments |
| Comment by Mattias Jonsson [ 2018-08-24 ] | ||||||||||
|
spider xa related settings:
| ||||||||||
| Comment by Mattias Jonsson [ 2018-08-27 ] | ||||||||||
|
Could it be that during a previous crash, the spider_xa and spider_xa_member tables had 'active' rows, that after the crash no longer where active and had no tracking within the spider engine and became orphan? Also since the rows still remained after this error and restarting the replication I would assume it can happen again in the future. So the issue probably is that it is possible to have an inconsistent state in spider_xa and spider_xa_member tables, especially after a crash? |