-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
upgrades: backfill new jobs cols/table #137728
base: master
Are you sure you want to change the base?
Conversation
This comment was marked as off-topic.
This comment was marked as off-topic.
d5e20a7
to
c12dff0
Compare
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.
Nice test! Only important question is around user_name
being an empty string.
jobutils.WaitForJobToSucceed(t, sqlDB, 1006) | ||
jobutils.WaitForJobToFail(t, sqlDB, 1008) | ||
|
||
// Let's look at the jobs table before the backfill. |
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.
Note to self: when you hook up SHOW JOBS, we should run historical queries at timestamps before/during the migrations.
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.
We can do that, but note that the type of gates we are using in all of these changes resolve to the version value as of the txn time, so if you run a historical your query to before V25_1_JobsBackfill was committed, SHOW won't use any of these tables.
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.
right, i think this would be a good test to have in your next pr since we were burned by this during the last jobs migration.
Release note: none. Epic: none.
Release note: none.
Epic: none.