private SnappyException unexpectedError(Throwable t, HostAddress host) { this.controlHost = null; if (this.controlLocator != null) { this.controlLocator.getOutputProtocol().getTransport().close(); this.controlLocator = null; } return ThriftExceptionUtil.newSnappyException(SQLState.JAVA_EXCEPTION, t, host != null ? host.toString() : null, t.getClass(), t.getMessage()); }
failedServers.add(controlHost); controlLocator.getOutputProtocol().getTransport().close(); failedServers = failoverToAvailableHost(failedServers, true, te); if (failure == null) {