TxConstants.Service.DEFAULT_DATA_TX_BIND_ADDRESS);
port = configuration.getInt(TxConstants.Service.CFG_DATA_TX_BIND_PORT,
TxConstants.Service.DEFAULT_DATA_TX_BIND_PORT);
LOG.info("Service assumed at " + address + ":" + port);
} else {
Discoverable endpoint = endpointStrategy.pick();
if (endpoint == null) {
LOG.error("Unable to discover tx service.");
throw new TException("Unable to discover tx service.");
}
address = endpoint.getSocketAddress().getHostName();
port = endpoint.getSocketAddress().getPort();
LOG.info("Service discovered at " + address + ":" + port);
}
// now we have an address and port, try to connect a client
if (timeout < 0) {