Skip to content

Comments

Adds OnTableNotFound() error handler to Canal#1105

Merged
lance6716 merged 4 commits intogo-mysql-org:masterfrom
dbnski:OnTableNotFound
Feb 23, 2026
Merged

Adds OnTableNotFound() error handler to Canal#1105
lance6716 merged 4 commits intogo-mysql-org:masterfrom
dbnski:OnTableNotFound

Conversation

@dbnski
Copy link
Contributor

@dbnski dbnski commented Feb 22, 2026

Addresses #1093 by introducing a new OnTableNotFound() handler that receives the complete event for whatever it wants to do with it. The handler can subsequently return an error (new default behavior), which will fail the stream, or nil to ignore and skip the problem (old default behavior). It also fixes a minor issue where the e variable holding the event would previously be shadowed by an error var taking the same name.

@dbnski
Copy link
Contributor Author

dbnski commented Feb 22, 2026

I made the handler name very specific, because there don't seem to be any other use cases that would really need handling in a similar manner.

Copy link
Collaborator

@lance6716 lance6716 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. please check dveeden's comment

dbnski and others added 2 commits February 23, 2026 13:23
@lance6716 lance6716 merged commit f2adacf into go-mysql-org:master Feb 23, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants