-
Notifications
You must be signed in to change notification settings - Fork 175
How about skip Fake rotate Event When connection resumed #126
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
To be clear @sean-k1, this isn't an issue for MySQL but rather precisely for MariaDB, correct? |
@Naros No. this issue is related with Mysql and Maraidb, If the binlogfile is filled to size by max_binlog_size, the This means that the first event when communicating with the master will be a rotate event. My current understanding is this. check this one. My env is Mysql 8.0 ![]() ![]() |
@Naros Did you check this one? |
Hi @sean-k1, I'm on the fence with this one. In particular, is there a scenario where a client getting this fake event may be using it for some processing? If we exclude it generally from the event stream, that could break that compatibility. Looking at the source for both MariaDB and MySQL, the if (isConnected()) {
eventLastSeen = System.currentTimeMillis();
updateGtidSet(event);
if (dispatchArtificialEvents || !isArtificialEvent(event)) {
notifyEventListeners(event);
}
updateClientBinlogFilenameAndPosition(event);
} What's your take on this? |
Hello @Naros |
It's there mostly to preserve existing behavior. I think it's something we can re-evaluate later on whether we should hard enforce no delivery without being able to toggle it on/off later based on feedback. For Debezium, what we would do is set the toggle to |
@Naros Oh I understood. |
Uh oh!
There was an error while loading. Please reload this page.
@osheroff
debezium/debezium#4959
debezium users When the connection to the Mysql database is lost, a fake Rotate Event occurs in communication with the master.
so they got Fake Rotate Event. These issues are causing inconvenience to users in debezium.
What do you think about ignoring the fake rotate event in this project?
https://mariadb.com/kb/en/fake-rotate_event/
https://github.com/go-mysql-org/go-mysql/blob/3a75f6a26d8819c2a88629e54c7de0b7698ae05c/replication/backup.go#L59
The text was updated successfully, but these errors were encountered: