[MCOL-3786] In 1.4.2, columnstoreRestore checks wrong directory for datadir Created: 2020-02-12 Updated: 2023-10-26 Resolved: 2020-04-08 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | None |
| Affects Version/s: | 1.4.2 |
| Fix Version/s: | 1.4.3 |
| Type: | Bug | Priority: | Major |
| Reporter: | Geoff Montee (Inactive) | Assignee: | Daniel Lee (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
In 1.4.2, columnstoreBackup backs up the MariaDB datadir to $umBackupdir/mysql. See the following log snippet:
Based on the above output, we can guess that /var/lib/mysql will be backed up as /tmp/backup/um1/mysql. That is exactly what happens:
Unfortunately, when columnstoreRestore tries to restore /var/lib/mysql, it expects to find the backup at /tmp/backup/um1/db. See the following log snippet:
The problem seems to be caused by an incorrect path in this section of the code in columnstoreRestore:
|
| Comments |
| Comment by Geoff Montee (Inactive) [ 2020-02-12 ] | |||||||||||||||
|
I made the following basic change to columnstoreRestore:
With this change, I was able to restore my backup. | |||||||||||||||
| Comment by David Hill (Inactive) [ 2020-02-21 ] | |||||||||||||||
|
A user did run into this issue of backup not working. I just wanted to add issue number for future reference | |||||||||||||||
| Comment by Ben Thompson (Inactive) [ 2020-03-19 ] | |||||||||||||||
|
Mostly done by Andrew I added some changes to it and add S3 support per | |||||||||||||||
| Comment by Geoff Montee (Inactive) [ 2020-03-27 ] | |||||||||||||||
|
It looks like your fix may be incomplete. Your pull request doesn't even fix the specific line that I pointed out in the issue description above. In your current branch, we can see that the restoreUM() function is still copying from $umBackupDir/db/, rather than $umBackupDir/mysql/:
I see that the restorePMs() function also most likely needs to be fixed: It seems to me that some developer still needs to take a closer look at backuprestore/columnstoreRestore.in, because it doesn't quite look fixed to me yet. | |||||||||||||||
| Comment by Ben Thompson (Inactive) [ 2020-04-02 ] | |||||||||||||||
|
the directory structure is labeled differently but that files system is just local to the backup directory. the destination its restoring should be correct with the @MARIADIR@ renaming the backup directory location from db to mysql is not needed for functionality but could be renamed for consistency. | |||||||||||||||
| Comment by Geoff Montee (Inactive) [ 2020-04-02 ] | |||||||||||||||
|
Ah, I see. Thanks for the clarification. I do see now that the code has changed a bit from the original. Thanks! | |||||||||||||||
| Comment by Daniel Lee (Inactive) [ 2020-04-08 ] | |||||||||||||||
|
Build verified: [dlee@master tools]$ git status
Merge pull request #48 from mariadb-corporation/S3-update S3 update and fixes Verified backup and restore for single server, 2pm combo, and 1um2pm configurations. Also verified single server using S3 storage on AWS. | |||||||||||||||
| Comment by Daniel Lee (Inactive) [ 2020-04-08 ] | |||||||||||||||
|
Verified on ColumnStore 1.4.3-6 |