-
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
changefeedccl: protect system.role_members using protected timestamps #131027
Conversation
3ab267d
to
7acc4d4
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.
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @asg0451 and @stevendanna)
pkg/ccl/changefeedccl/protected_timestamps.go
line 53 at r1 (raw file):
keys.ZonesTableID, // Required for CDC Queries. // TODO: do we need any other tables, such as `keys.UsersTableID`?
Please add an issue number for this TODO so it doesn't get lost. I'd be in favor of keeping #128806 open to investigate other required tables.
pkg/ccl/changefeedccl/protected_timestamps_test.go
line 547 at r1 (raw file):
Previously, stevendanna (Steven Danna) wrote…
I wonder if we could make this test less synthetic. Could we instead start a changefeed at a cursor with a cdc expression that should trigger the failure?
The purpose of this test is to validate the effectiveness of the PTS record, so I think using AOST to validate is ok here that it's not GC'd and therefore usable. It seems like there should be a way to turn it into a table-driven test with a case for each protected table, which will make this extendable if we need to protect more tables in the future.
7acc4d4
to
438f1e1
Compare
4f123bb
to
1ce2b84
Compare
1ce2b84
to
4e6e04b
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.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @asg0451 and @stevendanna)
-- commits
line 7 at r2:
Change this to Informs so the issue doesn't close. Also update the PR's first comment in github.
Adds `system.role_members` to the list of system tables that are protected by changefeeds. Informs: cockroachdb#128806 See also: cockroachdb#130622 Release note (bug fix): Fix a bug which could result in changefeeds using cdc queries failing due to a system table being GC'd.
4e6e04b
to
f6472f3
Compare
bors r=rharding6373 |
Encountered an error creating backports. Some common things that can go wrong:
You might need to create your backport manually using the backport tool. error creating merge commit from f6472f3 to blathers/backport-release-23.2-131027: POST https://api.github.com/repos/cockroachdb/cockroach/merges: 409 Merge conflict [] you may need to manually resolve merge conflicts with the backport tool. Backport to branch 23.2.x failed. See errors above. error creating merge commit from f6472f3 to blathers/backport-release-24.1-131027: POST https://api.github.com/repos/cockroachdb/cockroach/merges: 409 Merge conflict [] you may need to manually resolve merge conflicts with the backport tool. Backport to branch 24.1.x failed. See errors above. error creating merge commit from f6472f3 to blathers/backport-release-24.2-131027: POST https://api.github.com/repos/cockroachdb/cockroach/merges: 409 Merge conflict [] you may need to manually resolve merge conflicts with the backport tool. Backport to branch 24.2.x failed. See errors above. 🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf. |
blathers backport 24.1 24.2 23.2 |
Encountered an error creating backports. Some common things that can go wrong:
You might need to create your backport manually using the backport tool. error creating merge commit from f6472f3 to blathers/backport-release-23.2-131027: POST https://api.github.com/repos/cockroachdb/cockroach/merges: 409 Merge conflict [] you may need to manually resolve merge conflicts with the backport tool. Backport to branch 23.2 failed. See errors above. 🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf. |
Adds
system.role_members
to the list of systemtables that are protected by changefeeds.
Informs: #128806
See also: #130622
Release note (bug fix): Fix a bug which could
result in changefeeds using cdc queries failing
due to a system table being GC'd.