-
Notifications
You must be signed in to change notification settings - Fork 102
When the incremental backup only has DDL, the incremental restore has problems #652
Comments
This is by design. Only one drop table DDL won't work, in order to avoid data lost. |
But when I create an empty table, perform an incremental backup. |
In my test with v4.0.9 br, the empty table can be restored during incremental restoration, could you please provide more details about the operation and |
E.g: Delete the database test, first perform a full recovery based on backupData, and check that the table t1 exists in the database test. Then perform incremental recovery based on backupDataIncr, and check that the database test still has only table t1 and no table t2. |
That's strange. |
oh, I found this PR fixed it, but didn't cherry-pick to release-4.0, so master br doesn't has such problem. this fix will take into v4.0.10 |
OK,THANKS |
#658 merged, so we can close this issue for now. |
Please answer these questions before submitting your issue. Thanks!
If possible, provide a recipe for reproducing the error.
1.Create a table t1, do full backup to get backupData
2.Drop this table t1 , do incremental backup to get backupData-incr
3.Restore record in backupData
4. Restore record in backupData-incr
Note: Only one drop DDL operation between LastTS and backupTS.
The database should drop table t1 after restore record in backupData-incr.
Table t1 still exists in the database after incremental recovery
4.0.8
The text was updated successfully, but these errors were encountered: