-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Maxwell metadata corruption for Enum-datatype column #2134
Comments
can you dump the table schema? and also the corresponding row in |
Additional - Mysql Version - 8.0.32, Database Name - th124, Table Name - verifier_task, Issue column - "source_type" Column meta - Table Schema - `-- th124.verifier_task definition CREATE TABLE |
do you know when the final enum value ( |
actually, please dump any row in |
do you know when the final enum value (CONVERSION_TASK ) was added to the table? --> Not sure on this. Please refer - table_id - 26595, schema_id - 5, database_id - 173, name - verifier_task Meta Dump - |
you're not using any filters or blacklists are you? There's only a few theories I can think of:
|
Yes, I am using database BLACKLIST_DB. But the blacklisted counts is around 166 in this deployment. |
Issue - We observed in 'java.lang.ArrayIndexOutOfBoundsException:' error for column-type 'Enum' while building a configuration object (ColumnDef.build) for a database column definition inside 'ColumnDefDeserializer' class. This caused due to column metadata corruption inside 'column' table of Maxwell metabase.
Resolution - As suggested #1297 here, every time Metadata cleanup is not feasible here.
Error log -
02:44:39,474 INFO BinlogConnectorReplicator - Binlog connected. 02:44:39,658 INFO BinlogConnectorReplicator - Binlog disconnected. 02:44:39,667 INFO TaskManager - Stopping 5 tasks 02:44:39,667 ERROR TaskManager - cause: java.lang.ArrayIndexOutOfBoundsException: Index 9 out of bounds for length 9 at com.zendesk.maxwell.schema.columndef.EnumColumnDef.asString(EnumColumnDef.java:29) ~[pe-maxwell.jar:1.29.1] at com.zendesk.maxwell.schema.columndef.EnumColumnDef.asJSON(EnumColumnDef.java:17) ~[pe-maxwell.jar:1.29.1] at com.zendesk.maxwell.schema.columndef.EnumColumnDef.asJSON(EnumColumnDef.java:5) ~[pe-maxwell.jar:1.29.1] at com.zendesk.maxwell.replication.BinlogConnectorEvent.writeData(BinlogConnectorEvent.java:112) ~[pe-maxwell.jar:1.29.1] at com.zendesk.maxwell.replication.BinlogConnectorEvent.buildRowMap(BinlogConnectorEvent.java:162) ~[pe-maxwell.jar:1.29.1] at com.zendesk.maxwell.replication.BinlogConnectorEvent.jsonMaps(BinlogConnectorEvent.java:176) ~[pe-maxwell.jar:1.29.1] at com.zendesk.maxwell.replication.BinlogConnectorReplicator.getTransactionRows(BinlogConnectorReplicator.java:561) ~[pe-maxwell.jar:1.29.1] at com.zendesk.maxwell.replication.BinlogConnectorReplicator.getRow(BinlogConnectorReplicator.java:700) ~[pe-maxwell.jar:1.29.1] at com.zendesk.maxwell.replication.BinlogConnectorReplicator.work(BinlogConnectorReplicator.java:205) ~[pe-maxwell.jar:1.29.1] at com.zendesk.maxwell.util.RunLoopProcess.runLoop(RunLoopProcess.java:34) ~[pe-maxwell.jar:1.29.1] at com.zendesk.maxwell.Maxwell.startInner(Maxwell.java:317) ~[pe-maxwell.jar:1.29.1] at com.zendesk.maxwell.Maxwell.start(Maxwell.java:226) ~[pe-maxwell.jar:1.29.1] at com.zendesk.maxwell.Maxwell.main(Maxwell.java:356) ~[pe-maxwell.jar:1.29.1] 02:44:39,673 INFO TaskManager - Stopping: com.zendesk.maxwell.schema.PositionStoreThread@25d96b94 02:44:39,675 INFO TaskManager - Stopping: com.zendesk.maxwell.producer.PEKafkaProducerWorker@57e4bf5c 02:44:39,675 INFO KafkaProducer - [Producer clientId=producer-1] Closing the Kafka producer with timeoutMillis = 9223372036854775807 ms. 02:44:39,679 INFO TaskManager - Stopping: com.zendesk.maxwell.bootstrap.BootstrapController@1e5b555a 02:44:39,679 INFO TaskManager - Stopping: com.zendesk.maxwell.replication.BinlogConnectorReplicator@69d9b132 02:44:39,683 INFO TaskManager - Stopping: com.zendesk.maxwell.monitoring.MaxwellHTTPServerWorker@364854fe 02:44:39,683 ERROR - Exception occurred during shutdown:
Issue Query -
INSERT INTO columns (id, schema_id, table_id, name, charset, coltype, is_signed, enum_values, column_length) VALUES ('247561', '5', '21201', 'source_type', NULL, 'enum', '0', '["PICKER_TASK","SIDELINED_PICKER_TASK","INVENTORY","CLEANUP_TASK"]', NULL);
The text was updated successfully, but these errors were encountered: