Skip to content

Commit

Permalink
ISPN-4083 Do not invalidate null Transport
Browse files Browse the repository at this point in the history
  • Loading branch information
rvansa authored and pruivo committed Apr 4, 2014
1 parent 547f52f commit 8f6b0a7
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -54,8 +54,10 @@ public T execute() {
failedServers.add(te.getServerAddress());
// Invalidate transport since this exception means that this
// instance is no longer usable and should be destroyed.
transportFactory.invalidateTransport(
te.getServerAddress(), transport);
if (transport != null) {
transportFactory.invalidateTransport(
te.getServerAddress(), transport);
}
logErrorAndThrowExceptionIfNeeded(retryCount, te);
} catch (RemoteNodeSuspectException e) {
// Do not invalidate transport because this exception is caused
Expand Down

0 comments on commit 8f6b0a7

Please sign in to comment.