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

Negative binlog_position #2154

Open
tetnobic opened this issue Feb 13, 2025 · 0 comments
Open

Negative binlog_position #2154

tetnobic opened this issue Feb 13, 2025 · 0 comments

Comments

@tetnobic
Copy link

Hi !
We are receiving this error when trying to restart Maxwell:

ERROR TaskManager - cause:
com.zendesk.maxwell.schema.SchemaStoreException: com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Out of range value for column 'binlog_position' at row 1
  at com.zendesk.maxwell.schema.MysqlSchemaStore.processSQL(MysqlSchemaStore.java:114) ~[maxwell-1.42.3.jar:1.42.3]
  at com.zendesk.maxwell.replication.BinlogConnectorReplicator.processQueryEvent(BinlogConnectorReplicator.java:385) ~[maxwell-1.42.3.jar:1.42.3]
  at com.zendesk.maxwell.replication.BinlogConnectorReplicator.processQueryEvent(BinlogConnectorReplicator.java:407) ~[maxwell-1.42.3.jar:1.42.3]

After some investigation, it seems that the method
getPosition() of the EventHeaderV4 class returns a negative value

We've tried altering the field schemas.binlog_position from int unsigned type to int type and no more error...

Here is the dump of our schemas table :

Image

What can we do to avoid this issue ?
Any help would be appreciated!

Perhaps needs to create an issue at https://github.com/shyiko/mysql-binlog-connector-java ?

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

1 participant