remove addToPreAbsentAndBlackPresent when getConnection exception
@@ -165,12 +165,7 @@ public abstract class AbstractHostValidator implements HostValidator {
}
protected Connection getConnection(HostSpec host) throws SQLException {
- try {
return connectionFactory.getPooledConnectionForHost(host);
- } catch (SQLException e) {
- addToPreAbsentAndBlackPresent(host);
- throw e;
- }
}
private boolean isDestroy() {
@@ -241,11 +236,6 @@ public abstract class AbstractHostValidator implements HostValidator {
removeFromPreBlackList(hostSpec);
}
- private void addToPreAndRemoveFromBlack(HostSpec hostSpec) {
- addToPreAbsent(hostSpec);
- removeFromBlackList(hostSpec);
- }
-
protected void removeFromAllBlackList(HostSpec hostSpec) {
removeFromBlackList(hostSpec);
removeFromPreBlackList(hostSpec);
