-
Bug
-
Resolution: Duplicate
-
Blocker
-
None
-
0.2.3
-
None
See below for the error including the stacktrace ...
2016-08-15 05:51:00,729 ERROR MySQL|mysql-server-local|snapshot Failed due to error: Aborting snapshot after running 'SELECT * FROM optimis_development.contacts': Java heap space [io.debezium.connector.mysql.SnapshotReader]
java.lang.OutOfMemoryError: Java heap space
at com.mysql.jdbc.Buffer.<init>(Buffer.java:62)
at com.mysql.jdbc.MysqlIO.nextRow(MysqlIO.java:2023)
at com.mysql.jdbc.MysqlIO.readSingleRowSet(MysqlIO.java:3403)
at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:470)
at com.mysql.jdbc.MysqlIO.readResultsForQueryOrUpdate(MysqlIO.java:3105)
at com.mysql.jdbc.MysqlIO.readAllResults(MysqlIO.java:2336)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2729)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2545)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2503)
at com.mysql.jdbc.StatementImpl.executeQuery(StatementImpl.java:1369)
at io.debezium.jdbc.JdbcConnection.query(JdbcConnection.java:277)
at io.debezium.connector.mysql.SnapshotReader.execute(SnapshotReader.java:311)
at io.debezium.connector.mysql.SnapshotReader$$Lambda$132/1065165958.run(Unknown Source)
at java.lang.Thread.run(Thread.java:745)
2016-08-15 05:51:00,806 ERROR MySQL|mysql-server-local|task Task optimis-connector-0 threw an uncaught and unrecoverable exception [org.apache.kafka.connect.runtime.WorkerSourceTask]
2016-08-15 05:51:00,806 ERROR MySQL|mysql-server-local|task Task is being killed and will not recover until manually restarted: [org.apache.kafka.connect.runtime.WorkerSourceTask]
org.apache.kafka.connect.errors.ConnectException: Aborting snapshot after running 'SELECT * FROM optimis_development.contacts': Java heap space
at io.debezium.connector.mysql.AbstractReader.failed(AbstractReader.java:118)
at io.debezium.connector.mysql.SnapshotReader.execute(SnapshotReader.java:388)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.OutOfMemoryError: Java heap space
at com.mysql.jdbc.Buffer.<init>(Buffer.java:62)
at com.mysql.jdbc.MysqlIO.nextRow(MysqlIO.java:2023)
at com.mysql.jdbc.MysqlIO.readSingleRowSet(MysqlIO.java:3403)
at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:470)
at com.mysql.jdbc.MysqlIO.readResultsForQueryOrUpdate(MysqlIO.java:3105)
at com.mysql.jdbc.MysqlIO.readAllResults(MysqlIO.java:2336)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2729)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2545)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2503)
at com.mysql.jdbc.StatementImpl.executeQuery(StatementImpl.java:1369)
at io.debezium.jdbc.JdbcConnection.query(JdbcConnection.java:277)
at io.debezium.connector.mysql.SnapshotReader.execute(SnapshotReader.java:311)
at io.debezium.connector.mysql.SnapshotReader$$Lambda$132/1065165958.run(Unknown Source)
... 1 more
- duplicates
-
DBZ-94 Out of Memory when taking snapshot of large table
- Closed