Fixing multiple issues related to onlineddl/lifecycle#8500
Merged
deepthi merged 1 commit intovitessio:mainfrom Jul 23, 2021
Merged
Conversation
- stale migration analysis did not update completed_timestamp. As result lifecycle would not run - retroactively updating completed_timestamp for existing NULL entries - liveness_timestamp now always set with started_timestamp, so that it is never NULL even if migration didn't report liveness. This is essential for detecting and marking stale migrations - when garbage collecting artifacts, RENAME statement would create collissions between artifacts of same migration. This is now solved by assigning distinct timestamps to artifacts of same migration - on the safe side, though there is no evidence this ever happened, whenever an artifact is added, we set cleanup_timestamp to be NULL Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
deepthi
approved these changes
Jul 21, 2021
Collaborator
There was a problem hiding this comment.
The changes look good.
One question I do have is what happens if someone upgrades to this version of vitess and then downgrades to a previous version? The table definitions in _vt schema will be the new ones. Has code been written to work well in the presence of extra columns?
Collaborator
|
Note: Please make another PR to get this into release-11.0 prior to the GA date. |
Contributor
Author
It has. I don't have a |
2 tasks
Contributor
Author
done: #8517 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes #8498
Fixes #8499 (possibly)
Related Issue(s)
Checklist