-
Notifications
You must be signed in to change notification settings - Fork 1k
There is one more column when consuming Alibaba Cloud PolarDB #882
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
Comments
You can open a ticket to PolarDB. It should provide MySQL compatible binlog. |
|
UpdateRowsEventData: UpdateRowsEventData{tableId=11071, includedColumnsBeforeUpdate={0, 1, 2, 3}, includedColumns={0, 1, 2, 3}, rows=[ |
Can you use the first example code (under Replication section) in README to dump every binlog events? So we can see what's happened. |
package main import (
) var ( func init() { func main() { func ObjToJson(param interface{}) []byte { type MyEventHandler struct { func (s *MyEventHandler) OnRotate(header *replication.EventHeader, e *replication.RotateEvent) error { func (s *MyEventHandler) OnDDL(header *replication.EventHeader, nextPos mysql.Position, event *replication.QueryEvent) error { func (s *MyEventHandler) OnXID(header *replication.EventHeader, nextPos mysql.Position) error { func (s *MyEventHandler) OnTableChanged(header *replication.EventHeader, schema string, table string) error { func (s *MyEventHandler) OnGTID(header *replication.EventHeader, gtidEvent mysql.BinlogGTIDEvent) error { func (s *MyEventHandler) OnPosSynced(header *replication.EventHeader, pos mysql.Position, set mysql.GTIDSet, force bool) error { func (s *MyEventHandler) OnRowsQueryEvent(e *replication.RowsQueryEvent) error { func (h *MyEventHandler) String() string { func run() {
} |
I don't understand what you mean. Can you elaborate? |
OK. Let's change to another way to debug. There's a example program under |
=== GTIDEvent === === QueryEvent === === TableMapEvent === === UpdateRowsEventV1 ===
|
You can see the binlog content is wrong indeed. Like
You can open a ticket to PolarDB. |
Then why is it correct for me to use this subscription? com.zendesk mysql-binlog-connector-java 0.29.1
{before=[21, 2, 2211, null], after=[21, 2, 22111, null]} |
you should ask com.zendesk mysql-binlog-connector-java |
CREATE TABLE
test1
(id
bigint(20) NOT NULL COMMENT '主键ID',bill_type
tinyint(2) NOT NULL DEFAULT '1' COMMENT '',collect_no
varchar(32) NOT NULL DEFAULT '' COMMENT '',create_time
timestamp NULL DEFAULT NULL COMMENT '',PRIMARY KEY (
id
) USING BTREE,KEY
f_idx_bgt
((cast(create_time
as date)))) ENGINE=InnoDB
KEY
f_idx_bgt
((cast(create_time
as date)))The table structure is 4 columns, but this index is also defined as columns and becomes 5 columns.
The text was updated successfully, but these errors were encountered: