-
Notifications
You must be signed in to change notification settings - Fork 74
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
Error: java.lang.RuntimeException: java.sql.SQLException: Before start of result set #228
Comments
Hello, @hyunjipark. You probably need to use |
Hello @hiroyuki-sato , The error is not caused when inserting data to target server, but is caused while fetching data from source mysql. Thank you |
Hello, @hyunjipark |
@hiroyuki-sato config.yml
Data
** All rows in 'matrix_status1m' table is similar to the rows above. I couldn't post all data as there are about 6000000000 rows in the table. Migration stops after fetching exactly 2147483136 rows of data everytime I try. |
Hello, @hyunjipark Could you tell me the following?
|
Hello, @hiroyuki-sato
Thank you, |
Hello, @hyunjipark You probably hit I suppose you need to fetch data from each partition. |
Hello @hiroyuki-sato , I see. Is this the limitation of cursor.fetch() function? |
Hello, @hyunjipark Not 100% sure, But at least https://github.com/mysql/mysql-connector-j/blob/release/5.1/src/com/mysql/jdbc/RowDataCursor.java#L52 |
Hello,
I am having an issue using embulk-input-mysql for migrating big table (w/ about 6295805825 rows of data)
Migration stops after fetching exactly 2147483136 rows of data, and outputs the following error:
Error: java.lang.RuntimeException: java.sql.SQLException: Before start of result set
The full error is written below.
I have tried migrating several times and always end up failing after migrating 2147483136 rows of data.
Would there be any ideas regarding the cause of such issue?
ENV
openjdk version "1.8.0_312"
OpenJDK Runtime Environment (build 1.8.0_312-b07)
OpenJDK 64-Bit Server VM (build 25.312-b07, mixed mode)
source mysql version: Ver 8.0.19-10 for Linux on x86_64 (Source distribution)
Embulk v0.9.23
USECASE
mysql -> mongodb
input plugin: mysql
output plugin: mongodb_nest
FULLERROR
`org.embulk.exec.PartialExecutionException: java.lang.RuntimeException: java.sql.SQLException: Before start of result set
at org.embulk.exec.BulkLoader$LoaderState.buildPartialExecuteException(BulkLoader.java:340)
at org.embulk.exec.BulkLoader.doRun(BulkLoader.java:566)
at org.embulk.exec.BulkLoader.access$000(BulkLoader.java:35)
at org.embulk.exec.BulkLoader$1.run(BulkLoader.java:353)
at org.embulk.exec.BulkLoader$1.run(BulkLoader.java:350)
at org.embulk.spi.Exec.doWith(Exec.java:22)
at org.embulk.exec.BulkLoader.run(BulkLoader.java:350)
at org.embulk.EmbulkEmbed.run(EmbulkEmbed.java:242)
at org.embulk.EmbulkRunner.runInternal(EmbulkRunner.java:291)
at org.embulk.EmbulkRunner.run(EmbulkRunner.java:155)
at org.embulk.cli.EmbulkRun.runSubcommand(EmbulkRun.java:431)
at org.embulk.cli.EmbulkRun.run(EmbulkRun.java:90)
at org.embulk.cli.Main.main(Main.java:64)
Caused by: java.lang.RuntimeException: java.sql.SQLException: Before start of result set
at org.embulk.input.jdbc.AbstractJdbcInputPlugin.run(AbstractJdbcInputPlugin.java:534)
at org.embulk.exec.LocalExecutorPlugin$ScatterExecutor.runInputTask(LocalExecutorPlugin.java:269)
at org.embulk.exec.LocalExecutorPlugin$ScatterExecutor.access$100(LocalExecutorPlugin.java:194)
at org.embulk.exec.LocalExecutorPlugin$ScatterExecutor$1.call(LocalExecutorPlugin.java:233)
at org.embulk.exec.LocalExecutorPlugin$ScatterExecutor$1.call(LocalExecutorPlugin.java:230)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.sql.SQLException: Before start of result set
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:964)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:897)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:886)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:860)
at com.mysql.jdbc.ResultSetImpl.checkRowPos(ResultSetImpl.java:790)
at com.mysql.jdbc.ResultSetImpl.getLong(ResultSetImpl.java:2654)
at com.mysql.jdbc.ResultSetImpl.getLong(ResultSetImpl.java:2650)
at org.embulk.input.jdbc.getter.LongColumnGetter.fetch(LongColumnGetter.java:25)
at org.embulk.input.jdbc.getter.AbstractColumnGetter.getAndSet(AbstractColumnGetter.java:32)
at org.embulk.input.jdbc.AbstractJdbcInputPlugin.fetch(AbstractJdbcInputPlugin.java:603)
at org.embulk.input.jdbc.AbstractJdbcInputPlugin.run(AbstractJdbcInputPlugin.java:504)
... 8 more
Error: java.lang.RuntimeException: java.sql.SQLException: Before start of result set`
The text was updated successfully, but these errors were encountered: