-
Notifications
You must be signed in to change notification settings - Fork 4k
release-25.4: changefeedccl: force-disable per-table PTS #154478
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -215,15 +215,6 @@ var ProtectTimestampLag = settings.RegisterDurationSetting( | |
10*time.Minute, | ||
settings.PositiveDuration) | ||
|
||
// PerTableProtectedTimestamps enables per-table protected timestamp records | ||
// instead of a single record for all tables in a changefeed. | ||
var PerTableProtectedTimestamps = settings.RegisterBoolSetting( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we'll have to update/skip the per-table PTS benchmark roachtests too There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good call out. Since they those roachtests are generally for multi-table feeds, I'll keep them in but only with per-table pts set to false and remove the actual query that sets the setting. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That run failed with VM preemption for the 50000 table test. It failed while initializing the workload. Started a new run here. I hope it will also be helped by the fact that the backport removing the latency assertion has now been merged. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks like we missed the frontier persistence benchmarks, opened #154832 |
||
settings.ApplicationLevel, | ||
"changefeed.protect_timestamp.per_table.enabled", | ||
"if true, creates separate protected timestamp records for each table in a changefeed; "+ | ||
"if false, uses a single protected timestamp record for all tables", | ||
metamorphic.ConstantWithTestBool("changefeed.protect_timestamp.per_table.enabled", false)) | ||
|
||
// MaxProtectedTimestampAge controls the frequency of protected timestamp record updates | ||
var MaxProtectedTimestampAge = settings.RegisterDurationSetting( | ||
settings.ApplicationLevel, | ||
|
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.
Maybe we should remove this cluster setting altogether since there are no longer any production usages?
Uh oh!
There was an error while loading. Please reload this page.
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.
Pros:
It means that if this builds it's very clear that we didn't miss any cases where the flag could potentially do something. (I think this makes it worthwhile for me, so I'll make the change.)
We could theoretically rename this flag and not have to worry about backwards compatibility to 25.4.
It prevents people from setting this flag which could have implications if they upgrade.
Potential Cons:
I think this would mean we have to touch existing tests that specify this flag (to set it to false) and remove those references as well, that would increase the footprint of this pr by another two tests and mean if we wanted to make any changes to those tests and backport them, there could be more merge conflicts. But we very likely won't backport things that interact with this PTS code.
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.
Yeah these are the two main benefits I was thinking of. Also, similar to the first benefit, if we decide to not add this flag, we won't have to add it to the list of retired settings.