Open hongshaoyang opened 10 months ago
We are using GTID based replication (gtid_mode=true
) so I cannot find the corresponding binlog event
Marking this as related to #1432
does maxwell resume normally after the error? I suspect there's a network issue;
Caused by: java.io.EOFException
usually means "somehow the network connection got closed".
It's also possible that your mysql server decided to close the connection. might check its logs
Hey @osheroff , we are running Maxwell in production and are facing this issue more often lately. Maxwell version: 1.41.0 MySQL: Percona MySQL 5.7.34-37
84100931 [WARN] BinlogConnectorReplicator: replicator stopped at position: mysql-bin.132564:349963810 -- restarting
84100940 [WARN] BinlogConnectorReplicator: communications failure in binlog:
com.github.shyiko.mysql.binlog.event.deserialization.EventDataDeserializationException: Failed to deserialize data of EventHeaderV4{timestamp=1710814071000, eventType=EXT_UPDATE_ROWS, serverId=1, headerLength=19, dataLength=217, nextPosition=349964134, flags=0}
at com.github.shyiko.mysql.binlog.event.deserialization.EventDeserializer.deserializeEventData(EventDeserializer.java:341) ~[mysql-binlog-connector-java-0.27.4.jar:0.27.4]
at com.github.shyiko.mysql.binlog.event.deserialization.EventDeserializer.nextEvent(EventDeserializer.java:244) ~[mysql-binlog-connector-java-0.27.4.jar:0.27.4]
at com.github.shyiko.mysql.binlog.BinaryLogClient.listenForEventPackets(BinaryLogClient.java:1051) [mysql-binlog-connector-java-0.27.4.jar:0.27.4]
at com.github.shyiko.mysql.binlog.BinaryLogClient.connect(BinaryLogClient.java:631) [mysql-binlog-connector-java-0.27.4.jar:0.27.4]
at com.github.shyiko.mysql.binlog.BinaryLogClient$7.run(BinaryLogClient.java:932) [mysql-binlog-connector-java-0.27.4.jar:0.27.4]
at java.lang.Thread.run(Thread.java:829) [?:?]
Caused by: java.io.EOFException: Failed to read remaining 5 of 5 bytes from position 880. Block length: 0. Initial block length: 213.
at com.github.shyiko.mysql.binlog.io.ByteArrayInputStream.fill(ByteArrayInputStream.java:115) ~[mysql-binlog-connector-java-0.27.4.jar:0.27.4]
at com.github.shyiko.mysql.binlog.io.ByteArrayInputStream.read(ByteArrayInputStream.java:105) ~[mysql-binlog-connector-java-0.27.4.jar:0.27.4]
at com.github.shyiko.mysql.binlog.event.deserialization.AbstractRowsEventDataDeserializer.deserializeDatetimeV2(AbstractRowsEventDataDeserializer.java:361) ~[mysql-binlog-connector-java-0.27.4.jar:0.27.4]
at com.github.shyiko.mysql.binlog.event.deserialization.AbstractRowsEventDataDeserializer.deserializeCell(AbstractRowsEventDataDeserializer.java:183) ~[mysql-binlog-connector-java-0.27.4.jar:0.27.4]
at com.github.shyiko.mysql.binlog.event.deserialization.AbstractRowsEventDataDeserializer.deserializeRow(AbstractRowsEventDataDeserializer.java:143) ~[mysql-binlog-connector-java-0.27.4.jar:0.27.4]
at com.github.shyiko.mysql.binlog.event.deserialization.UpdateRowsEventDataDeserializer.deserializeRows(UpdateRowsEventDataDeserializer.java:71) ~[mysql-binlog-connector-java-0.27.4.jar:0.27.4]
at com.github.shyiko.mysql.binlog.event.deserialization.UpdateRowsEventDataDeserializer.deserialize(UpdateRowsEventDataDeserializer.java:58) ~[mysql-binlog-connector-java-0.27.4.jar:0.27.4]
at com.github.shyiko.mysql.binlog.event.deserialization.UpdateRowsEventDataDeserializer.deserialize(UpdateRowsEventDataDeserializer.java:33) ~[mysql-binlog-connector-java-0.27.4.jar:0.27.4]
at com.github.shyiko.mysql.binlog.event.deserialization.EventDeserializer.deserializeEventData(EventDeserializer.java:335) ~[mysql-binlog-connector-java-0.27.4.jar:0.27.4]
... 5 more
84101040 [WARN] BinlogConnectorReplicator: replicator stopped at position: mysql-bin.132564:349963810 -- restarting
Since a few days we have a lot of errors like this one in our logs :