[MDEV-11617] Occasional "failed to read page after 10 retries" with partial encrypted backup Created: 2016-12-20 Updated: 2020-05-04 Resolved: 2017-01-09 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Backup |
| Affects Version/s: | 10.1.20 |
| Fix Version/s: | 10.1.22 |
| Type: | Bug | Priority: | Major |
| Reporter: | Andrii Nikitin (Inactive) | Assignee: | Jan Lindström (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
| Sprint: | 10.1.22 |
| Description |
|
Attached test case shows occasional database corruption errors (at least on Windows machine): 161220 23:29:51 [01] Copying .\testdatabase\t2.ibd to F:\m7\mysql-test\var\tmp\backup\testdatabase\t2.ibd Try running with --repeat=100 The same test on Ubuntu 16.04 occasionally results in crash below instead: 161220 23:32:42 [ERROR] mysqld got signal 11 ; |
| Comments |
| Comment by Andrii Nikitin (Inactive) [ 2016-12-21 ] |
|
couldn't make it fail on centos 7 |
| Comment by Andrii Nikitin (Inactive) [ 2016-12-23 ] |
|
With current source state Ubuntu doesn't crash anymore. just shows behavior similar to Windows and sometimes just ends without any error message: 161223 14:15:45 [01] Copying ./test1/ancor.ibd to /m7/mysql-test/var/tmp/backup/test1/ancor.ibd this is how it just ends without any message (I've checked memory usage was just 130M and no trace of problem in system logs) 161223 14:21:29 [01] Copying ./database1/t1.ibd to /m7/mysql-test/var/tmp/backup/database1/t1.ibd
Without encryption it passes 100 runs, while with encryption it fails usually after 10-30 runs, sometimes up to 79 |
| Comment by Vladislav Vaintroub [ 2017-01-04 ] |
|
Jan, could you take a look? i |
| Comment by Jan Lindström (Inactive) [ 2017-01-09 ] |
|
commit a142f5af18d35b65488365e0c219295d900b7f41 fil_space_verify_crypt_checksum() should not use buf_page_is_corrupt because At retry we should also read page 0 again if crypt_data is not yet found. |