Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions go/vt/vttablet/tabletmanager/healthcheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ func (agent *ActionAgent) runHealthCheck() {
}

func (agent *ActionAgent) runHealthCheckLocked() {
agent.checkLock()
// read the current tablet record and tablet control
agent.mutex.Lock()
tablet := proto.Clone(agent._tablet).(*topodatapb.Tablet)
Expand Down
5 changes: 3 additions & 2 deletions go/vt/vttablet/tabletmanager/rpc_backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,10 @@ func (agent *ActionAgent) Backup(ctx context.Context, concurrency int, logger lo
if err := agent.refreshTablet(bgCtx, "after backup"); err != nil {
return err
}
// and re-run health check to be sure to capture any replication delay
// not needed for online backups because it will continue to run per schedule
agent.runHealthCheckLocked()
}
// and re-run health check to be sure to capture any replication delay
agent.runHealthCheckLocked()

return returnErr
}
Expand Down