Closed dishank-infurnia closed 1 year ago
/cc @shlomi-noach
Confirmed as described, thank you for the report and for the analysis. Fixed in #13773, to be backported to release-17.0
.
Backport to v17
: https://github.com/vitessio/vitess/pull/13789
Overview of the Issue
While taking an incremental backup using
vtctlclient
, the target tablet demotes to a BACKUP type tablet during the backup.I looked through the code (release-17.0 branch) and found that: On
go/vt/vttablet/tabletmanager/rpc_backup.go:83
,engine.ShouldDrainForBackup()
is called to check whether tablet should be drained or not, butbuiltin
engine implementsShouldDrainForBackup
as true always. Incremental backups are not catered for in this function.Reproduction Steps
Take an incremental backup using:
Binary Version
Operating System and Environment details
Log Fragments
No response