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

Is drizzle JDBC support autoreconnect connection string? #14

Open
Haseena opened this issue Jan 2, 2013 · 1 comment
Open

Is drizzle JDBC support autoreconnect connection string? #14

Haseena opened this issue Jan 2, 2013 · 1 comment

Comments

@Haseena
Copy link

Haseena commented Jan 2, 2013

I am using MariaDB 5.5, I tested the auto reconnect feature of the server by setting wait_timeout parameter in the my.ini file. From my code, I created a connection string with autoreconnect option. It is worked fine with mysql jdbc connector. But using drizzle jdbc, it shows an error.

Error log is

SQLException information
Error msg: Could not ping: Incomplete read! Expected 4, got -1
SQLSTATE: 08
Error code: -1
java.sql.SQLNonTransientConnectionException: Could not ping: Incomplete read! Expected 4, got -1
at org.drizzle.jdbc.internal.SQLExceptionMapper.get(SQLExceptionMapper.java:97)
at org.drizzle.jdbc.DrizzleConnection.isValid(DrizzleConnection.java:950)

@krummas
Copy link
Owner

krummas commented Jan 2, 2013

Hi

No it is not yet supported, it is quite difficult to get right with transactions etc

I might have a look and fix it soon

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

2 participants