Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Report: vreplication error can fail to persist, with insufficient logging #13487

Closed
shlomi-noach opened this issue Jul 13, 2023 · 0 comments · Fixed by #13488
Closed

Bug Report: vreplication error can fail to persist, with insufficient logging #13487

shlomi-noach opened this issue Jul 13, 2023 · 0 comments · Fixed by #13488

Comments

@shlomi-noach
Copy link
Contributor

shlomi-noach commented Jul 13, 2023

Overview of the Issue

It's possible for vreplication's controller to hit an unrecoverable error, e.g. attempting to write an invalid data type / value to the target table. So far so good. The controller logs the error and also attempts to persist it in _vt.vreplication.message:

if isUnrecoverableError(err) || !ct.lastWorkflowError.ShouldRetry() {
log.Errorf("vreplication stream %d going into error state due to %+v", ct.id, err)
if errSetState := vr.setState(binlogplayer.BlpError, err.Error()); errSetState != nil {
return err // yes, err and not errSetState.
}
return nil // this will cause vreplicate to quit the workflow
}

The persisting action itself can fail, which is still accounted for in the above. However, there is no clear indication that the action failed. The controller does return an error, but the message column is still populated with whatever previous value it contained (e.g. Picked source tablet...).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant