[CONJ-14] Operation hangs when using Ant and MariaDB JDBC Driver Created: 2013-01-14 Updated: 2013-01-18 Resolved: 2013-01-18 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | None |
| Affects Version/s: | 1.1.0 |
| Fix Version/s: | 1.1.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | Fredrik Vihlborg | Assignee: | Vladislav Vaintroub |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | jdbc | ||
| Environment: |
Gentoo Linux 3.0.6 RHEL 6.2 |
||
| Attachments: |
|
| Description |
|
We use MySQL as database, and Ant and JDBC to prepare test databases. We've tried drop, create database, use database, select * from mysql.user, all hangs forever. (One one occasion our build hang approximately 14 hours over night.) This target using MariaDB client, hangs: Output from MySQL in mysqld.sql: This target using MySQL commercial driver, works fine: Output from MySQL in mysqld.sql: |
| Comments |
| Comment by Elena Stepanova [ 2013-01-17 ] |
|
Reproducible on CentOS 5.8 with mysql-5.1.56 and ant 1.8.4. |
| Comment by Elena Stepanova [ 2013-01-17 ] |
|
Here is the difference that makes ant with MariaDB driver fall into an endless loop: public class MyClass catch (Exception e) { System.out.println("Exception: " + e + "\n"); } } Output with MySQL connector: Updated rows (1st get): 0 Output with MariaDB driver: Updated rows (1st get): 0 Ant does this getMoreResults / getUpdateCount dance in a loop until it encounters -1, which in case of MariaDB driver never happens. |
| Comment by Elena Stepanova [ 2013-01-18 ] |
|
Attached build.xml used to test with ant. It has 3 targets: |