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

Backport: Fixing multiple issues related to onlineddl/lifecycle #8517

Conversation

shlomi-noach
Copy link
Contributor

Backport suggested by @deepthi in #8500 (comment)

Description

Fixes #8498
Fixes #8499 (possibly)

  • stale migration analysis did not update completed_timestamp. As result lifecycle would not run. Now that's fixed.
  • 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

Related Issue(s)

Checklist

  • Tests were added or are not required
  • Documentation was added or is not required

…ion 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 deepthi merged commit b0a094d into vitessio:release-11.0 Jul 23, 2021
@deepthi deepthi deleted the onlineddl-stale-migration-compeleted-timestamp-release-11 branch July 23, 2021 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants