-
Notifications
You must be signed in to change notification settings - Fork 4.1k
changefeedccl: db-level feeds: fail the feed if the watched db is dropped/renamed #159198
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
base: master
Are you sure you want to change the base?
changefeedccl: db-level feeds: fail the feed if the watched db is dropped/renamed #159198
Conversation
|
Your pull request contains more than 1000 changes. It is strongly encouraged to split big PRs into smaller chunks. 🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf. |
e79b7a6 to
dc55dfb
Compare
If you specify a table in a database-level changefeed that's in another database, it will return a terminal error instead of an assertion-failed error. Epic: None Release note: None
Previously the tableset watcher would incorrectly report table drops for databases and schemas. This is now fixed. Epic: none Release note: None
Add a table watcher check to the change frontier before saving progress. If we encounter a new table, save progress up to that point and then die. Fixes: cockroachdb#148834 Release note: None
Use filters from changefeed details to filter tables in db-level feeds. Fixes: cockroachdb#156859 Release note: None
32c5a2b to
a4adfed
Compare
|
@andyyang890 and I discussed instead checking for the database drop in the schema feed. One issue with this is that polling and validating table descriptors is paused when schema locked is active. So while schema locked is active, this wouldn't be running to check if the database has been dropped. So, I'm going to keep checking in the tableset watcher for the database drop. Additionally, this works in the case of the changefeed hibernating while there's an empty tableset, since there will be a watcher running but not a schema feed. |
…pped This patch fails a db-level changefeed when its watched database is dropped. Epic: CRDB-55919 Fixes: cockroachdb#156780 Release note (sql change): A database-level changefeed will now fail when its watched database is dropped.
a4adfed to
5bef842
Compare
This patch fails a db-level changefeed when its watched database is dropped.
Epic: CRDB-55919
Fixes: #156780
Release note (sql change): A database-level changefeed will now fail when its watched database is dropped.