[MDEV-19073] FTS row mismatch after crash recovery Created: 2019-03-28 Updated: 2019-10-25 Resolved: 2019-10-25 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB |
| Affects Version/s: | 10.1, 10.2, 10.3, 10.4 |
| Fix Version/s: | 10.2.28, 10.1.42, 10.3.19, 10.4.9 |
| Type: | Bug | Priority: | Major |
| Reporter: | Thirunarayanan Balathandayuthapani | Assignee: | Thirunarayanan Balathandayuthapani |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | upstream | ||
| Issue Links: |
|
||||||||
| Description |
|
The following test case gives the unexpected result after crash recovery.
Redo log part went wrong for committed fts transaction. |
| Comments |
| Comment by Thirunarayanan Balathandayuthapani [ 2019-03-28 ] | |||||||||||||||||||||||||||||||||||||||||||||
|
I can able to repeat the failure in MySQL-5.6
| |||||||||||||||||||||||||||||||||||||||||||||
| Comment by Thirunarayanan Balathandayuthapani [ 2019-04-02 ] | |||||||||||||||||||||||||||||||||||||||||||||
|
I can able to repeat the failure in MySQL-5.7. | |||||||||||||||||||||||||||||||||||||||||||||
| Comment by Thirunarayanan Balathandayuthapani [ 2019-04-05 ] | |||||||||||||||||||||||||||||||||||||||||||||
|
InnoDB FTS writes synced doc id to FTS_CONFIG table. While recovery or initializing FTS index, it reads the doc id from Problem is that we store synced doc_id as doc_id + 1. I don't know the reason behind it. While recovery, InnoDB FTS read the | |||||||||||||||||||||||||||||||||||||||||||||
| Comment by Thirunarayanan Balathandayuthapani [ 2019-04-05 ] | |||||||||||||||||||||||||||||||||||||||||||||
|
Above test case is used to repeat mysql-5.7 failure. | |||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2019-04-05 ] | |||||||||||||||||||||||||||||||||||||||||||||
|
thiru says that this is related to how the FTS_DOC_ID is being stored in the internal CONFIG table. | |||||||||||||||||||||||||||||||||||||||||||||
| Comment by Thirunarayanan Balathandayuthapani [ 2019-10-23 ] | |||||||||||||||||||||||||||||||||||||||||||||
|
Patch is in bb-10.1-thiru. Please take a look whenever it is possible | |||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2019-10-25 ] | |||||||||||||||||||||||||||||||||||||||||||||
|
I cleaned up the test case, to avoid introducing new server restarts (which are slow). |