fix from Pradeep Soundararajan for removing build dependency on mysql-connector-java https://reviews.apache.org/r/6180

This commit is contained in:
David Nalley 2012-08-20 13:38:19 -04:00
parent aecaee2d17
commit ac9dee94ac
3 changed files with 2 additions and 1 deletions

Binary file not shown.

View File

@ -26,6 +26,7 @@ import java.nio.channels.SocketChannel;
import java.rmi.RemoteException; import java.rmi.RemoteException;
import java.sql.Connection; import java.sql.Connection;
import java.sql.SQLException; import java.sql.SQLException;
import java.sql.SQLRecoverableException;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Date; import java.util.Date;
import java.util.Enumeration; import java.util.Enumeration;
@ -801,7 +802,7 @@ public class ClusterManagerImpl implements ClusterManager {
private boolean isRootCauseConnectionRelated(Throwable e) { private boolean isRootCauseConnectionRelated(Throwable e) {
while (e != null) { while (e != null) {
if (e instanceof com.mysql.jdbc.CommunicationsException || e instanceof com.mysql.jdbc.exceptions.jdbc4.CommunicationsException) { if (e instanceof SQLRecoverableException) {
return true; return true;
} }