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

When will the length of event.Rows be 0 or nil? #811

Open
zhanghaiyang9999 opened this issue Aug 7, 2023 · 4 comments
Open

When will the length of event.Rows be 0 or nil? #811

zhanghaiyang9999 opened this issue Aug 7, 2023 · 4 comments

Comments

@zhanghaiyang9999
Copy link

Used the following codes:
ev, err := streamer.GetEvent(contx)
event := ev.Event.(*replication.RowsEvent)
when ev.Header.EventType is replication.WRITE_ROWS_EVENTv1 or replication.WRITE_ROWS_EVENTv2,in most cases, the event.Rows have values, but in few cases in test environment, the event.Rows's length is 0 or nil when the ev.Header.EventType is replication.WRITE_ROWS_EVENTv1 or replication.WRITE_ROWS_EVENTv2. is it normal case?

@lance6716
Copy link
Collaborator

you can check the content of binlog with other tools like mysqlbinlog to verify. this library should have similar output as mysqlbinlog

@zhanghaiyang9999
Copy link
Author

you can check the content of binlog with other tools like mysqlbinlog to verify. this library should have similar output as mysqlbinlog

Thanks @lance6716 ,What do you think are the possible causes?

@lance6716
Copy link
Collaborator

you can check the content of binlog with other tools like mysqlbinlog to verify. this library should have similar output as mysqlbinlog

Thanks @lance6716 ,What do you think are the possible causes?

I didn't meet this problem before. first please check this library works the same as official mysqlbinlog. if so, that's a question to MySQL.

@dveeden
Copy link
Collaborator

dveeden commented Oct 27, 2023

I think we need either more information about this or we should close this issue.

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

3 participants