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

remove non-informative error message that is printed on every restart #5190

Merged
merged 1 commit into from
Sep 13, 2019

Conversation

deepthi
Copy link
Member

@deepthi deepthi commented Sep 13, 2019

We run alter statements to add a db_name column to local_metadata and shard_metadata tables. These alters are only expected to succeed the first time, and are expected to fail on every subsequent vttablet restart.
The Expected error message is annoying and not helpful, hence it has been removed.

Signed-off-by: deepthi deepthi@planetscale.com

log.Errorf("Unexpected error executing %v: %v", sql, err)
return err
}
}
}
sql := fmt.Sprintf(sqlUpdateLocalMetadataTable, dbName)
if _, err := conn.ExecuteFetch(sql, 0, false); err != nil {
log.Errorf("unexpected error executing %v: %v, continuing. Please check the data in _vt.local_metadata and take corrective action", sql, err)
log.Errorf("Unexpected error executing %v: %v, continuing. Please check the data in _vt.local_metadata and take corrective action.", sql, err)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should just remove 'Unexpected' from these messages (including the one above).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. I squashed the commits since the changes are so trivial.

@rafael
Copy link
Member

rafael commented Sep 13, 2019

I think this good to merge after @sougou comment is addressed

…, cleanup error messages

Signed-off-by: deepthi <deepthi@planetscale.com>
@deepthi
Copy link
Member Author

deepthi commented Sep 13, 2019

Comments have been addressed and CI is passing. I can merge this if one of @sougou / @rafael approves.

@sougou sougou merged commit 2c170a9 into vitessio:master Sep 13, 2019
@deepthi deepthi deleted the ds-rm-expected-errmsg branch May 14, 2020 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants