[MDEV-31042] Certain tables are missing in innodb storage engine of a TSE enabled database after an incremental backup restore Created: 2023-04-12 Updated: 2023-09-20 Resolved: 2023-09-19 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | mariabackup |
| Affects Version/s: | 10.4.20, 10.2.43, 10.4.29 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Critical |
| Reporter: | Thejaka Kanewala | Assignee: | Aleksey Midenkov |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | mariadb-backup, not-10.5, not-10.6 | ||
| Environment: |
CentOS 7, MacOS |
||
| Issue Links: |
|
||||||||
| Description |
|
Consider the following steps: 1. Suppose there is an encrypted table "t" When we try to access z_t table to t_prime, we get the following error: Further, if the z_t is not empty, we get the following error during incremental backup restore: {{2023-04-12 15:07:28 4631856640 [Note] InnoDB: Starting final batch to recover 56 pages from redo log. To report this bug, see https://mariadb.com/kb/en/reporting-bugs We will try our best to scrape up some info that will hopefully help Server version: 10.2.44-MariaDB-debug Thread pointer: 0x0 |
| Comments |
| Comment by Thejaka Kanewala [ 2023-04-12 ] | |||||||||||||||||||
|
Hello – To fix this issue, I created a PR against the 10.2. branch. The PR is in [1]. The PR includes 3 MTRs and the first two MTRs shows the behavior of the issue when the table is empty and when the table is not empty ( [1] https://github.com/MariaDB/server/pull/2594 My analysis is as follows (also in the PR): The Problem Suppose there is an encrypted table "t" The Cause The step 5 above creates a t.new file. These files are processed To apply the delta, mariabackup finds the proper tablespace file The Fix Therefore, in the fix, when processing t.new files we do not With this, when mariabackup try to find a matching space for z_t.delta.ibd, it will | |||||||||||||||||||
| Comment by Marko Mäkelä [ 2023-04-13 ] | |||||||||||||||||||
|
thejaka, thank you for the report. The MariaDB Server 10.2 series has already reached its end of life (EOL). The last release in that series was 10.2.44 in May 2022. Also MariaDB Server 10.3 will reach EOL in the upcoming 10.3.39 release. Therefore, the fix should target 10.4. Because of | |||||||||||||||||||
| Comment by Aleksey Midenkov [ 2023-04-27 ] | |||||||||||||||||||
|
Reproduces in latest 10.4 (f21664414da):
|