-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Bugfix/Backport to v15: Fix schema migrations requested_timestamp zero values #12263
Bugfix/Backport to v15: Fix schema migrations requested_timestamp zero values #12263
Conversation
…g table schema Signed-off-by: Shlomi Noach <[email protected]>
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
If a new flag is being introduced:
If a workflow is added or modified:
Bug fixes
Non-trivial changes
New/Existing features
Backward compatibility
|
I don't think we want this as:
I'm not sure we need to do anything for the older releases — since I'm not even sure that OnlineDDL was GA/production-ready (in v14) back when the original bug that led to the 0 date values for the I do agree that we should implement a more general solution in the new |
The GA was production ready in I'm open to all options. |
@mattlord a compromise would be
Re (2), why would we have to go back all the way to v13? In any case, which releases we fix this issue in is orthogonal to how we fix it. Whether it is a This seems like a lower-impact fix for a patch release than using WithDDL. |
We need a resolution whether this should or should not go into v15 🙏 |
Hello @shlomi-noach, does this PR must go onto this week's |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Echoing @deepthi and @shlomi-noach's comments, this looks like a practical low impact solution to solve potential blockers for existing 15.0 clusters.
Fixes #12261
The fix in #12262 cannot be backported because of how internal schema management was redesigned in #11520
The solution in this PR is to fix the actual values. They should not be zero. They should have some timestamp value, which we borrow from
added_timestamp
column.An
UPDATE
query runs on PRIMARY tablet initialization, just after table is created and before the rest of DDLs kick. So it runs once in the lifetime of the tablet. It's a full table scan query, but_vt.schema_migrations
is never too large.Description
Related Issue(s)
Checklist
Deployment Notes