Streaming two tables results in Communication Failure using JDBC connector mysql-connector-java-3.0.16-ga
Posted by: Man yam
Date: January 13, 2005 03:35PM

Hi all

I am trying to scan two large tables in parallel.
I open two connections and set the statement fetchsize to
Integer.MIN_VALUE to stream both the tables.

During the middle of the scanning one of the connection goes away
with the following error message.

java.sql.SQLException: Communication link failure: java.io.EOFException, underlying cause: null

java.io.EOFException
at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1394)
at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:1570)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1929)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1906)
at com.mysql.jdbc.MysqlIO.nextRow(MysqlIO.java:997)
at com.mysql.jdbc.RowDataDynamic.nextRecord(RowDataDynamic.java:313)
at com.mysql.jdbc.RowDataDynamic.next(RowDataDynamic.java:285)
at com.mysql.jdbc.ResultSet.next(ResultSet.java:2490)

I am able to stream one table without a problem but not both
simultaneously even though I use two different connections.

Is this a bug in MySQL Driver or am
I doing something wrong ?

Any help is greatly appreciated
Thanks
Man Yam

Options: ReplyQuote


Subject
Written By
Posted
Streaming two tables results in Communication Failure using JDBC connector mysql-connector-java-3.0.16-ga
January 13, 2005 03:35PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.