Skip to content
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

canal1.1.7版本client从server获取的数据不准 #5277

Open
babymore001 opened this issue Sep 23, 2024 · 2 comments
Open

canal1.1.7版本client从server获取的数据不准 #5277

babymore001 opened this issue Sep 23, 2024 · 2 comments

Comments

@babymore001
Copy link

以下两个表配置到同一个example/instance.properties中,但是前一个可以获取query和update两个数据,后一个却只能获取query
canal.instance.filter.regex=PAYGW.T_TRANSACTION_LOG_.*,PAYGW.T_REFUND_TRANSACTION
以下wei为PAYGW.T_REFUND_TRANSACTION表更新的内容
1727060657963
1727060730695
以下为PAYGW.T_TRANSACTION_LOG_.*表更新的内容
1727060895302
1727060930737
同样配置到配置文件中的内容,怎么一个有UPDATE和QUERY两个事件,一个只有QUERY事件,大家有没有碰到,这个是bug吗

@agapple
Copy link
Member

agapple commented Oct 14, 2024

默认query event是不过滤的,T_REFUND_TRANSACTION的DML query日志是可以默认接收的
另外,是不是规则中间有变化,没有完全生效

@babymore001
Copy link
Author

query事件是靠配置mysql中的一个参数得来的,所以现在奇怪的是同样的配置,同一个数据库的两个表,配置也是一起配的,为什么得不到update事件,但是从mysql的binlog看来确实有输出update事件的,我怀疑是canal server没有正常的将update事件给到我

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

No branches or pull requests

2 participants