mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
fix from Pradeep Soundararajan for removing build dependency on mysql-connector-java https://reviews.apache.org/r/6180
This commit is contained in:
parent
aecaee2d17
commit
ac9dee94ac
BIN
deps/awsapi-lib/mysql-connector-java-5.1.7-bin.jar
vendored
BIN
deps/awsapi-lib/mysql-connector-java-5.1.7-bin.jar
vendored
Binary file not shown.
BIN
deps/cloud-mysql-connector-java-5.1.7-bin.jar
vendored
BIN
deps/cloud-mysql-connector-java-5.1.7-bin.jar
vendored
Binary file not shown.
@ -26,6 +26,7 @@ import java.nio.channels.SocketChannel;
|
||||
import java.rmi.RemoteException;
|
||||
import java.sql.Connection;
|
||||
import java.sql.SQLException;
|
||||
import java.sql.SQLRecoverableException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.Enumeration;
|
||||
@ -801,7 +802,7 @@ public class ClusterManagerImpl implements ClusterManager {
|
||||
|
||||
private boolean isRootCauseConnectionRelated(Throwable e) {
|
||||
while (e != null) {
|
||||
if (e instanceof com.mysql.jdbc.CommunicationsException || e instanceof com.mysql.jdbc.exceptions.jdbc4.CommunicationsException) {
|
||||
if (e instanceof SQLRecoverableException) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user