You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an additional requirement for this task. We should clean up the metrics when a CDC stream is deleted as well, otherwise it is difficult to tell which stream is active from the metrics point of view, since there will be multiple copies of metrics for the same tablet.
Summary:
Clean up cdc_state rows for deleted streams.
Also, modify catalog manager methods `DeleteCDCStreamsForTables` and `DeleteCDCStream` so that they don't remove the stream entries from the sys catalog and the streams map. Instead, these methods just mark the streams as DELETING, and the catalog manager background thread is responsible for cleaning up these entries. The cleaning up method `DeleteCDCStreams` is responsible for deleting the stream entries from the `cdc_state` table.
Test Plan: Added more code to TestDeleteCDCStream to verify that the stream entries from cdc_state table are deleted once the stream is deleted
Reviewers: rahuldesirazu, nicolas, bogdan, neha
Reviewed By: neha
Subscribers: bogdan, ybase
Differential Revision: https://phabricator.dev.yugabyte.com/D7376
When a CDC stream is deleted, corresponding rows for it from
cdc_state
table should be deleted.The text was updated successfully, but these errors were encountered: