Skip to content

Commit

Permalink
[java client] Cleanup "Connection reset" message in TabletClient
Browse files Browse the repository at this point in the history
It was adding a Channel.toString() which has never been useful, removing.

Change-Id: I4c47df9dbd7183a328fe15cabc2e7a137c6d2184
Reviewed-on: http://gerrit.cloudera.org:8080/4947
Tested-by: Kudu Jenkins
Reviewed-by: Adar Dembo <[email protected]>
  • Loading branch information
jdcryans authored and adembo committed Nov 4, 2016
1 parent 4396659 commit c44c6f3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ <R> void sendRpc(KuduRpc<R> rpc) {

if (failRpc) {
Status statusNetworkError =
Status.NetworkError(getPeerUuidLoggingString() + "Connection reset on " + chan);
Status.NetworkError(getPeerUuidLoggingString() + "Connection reset");
failOrRetryRpc(rpc, new RecoverableException(statusNetworkError));
} else if (tryAgain) {
// This recursion will not lead to a loop because we only get here if we
Expand Down Expand Up @@ -710,7 +710,7 @@ private void cleanup(final Channel chan) {
pending_rpcs = null;
}
Status statusNetworkError =
Status.NetworkError(getPeerUuidLoggingString() + "Connection reset on " + chan);
Status.NetworkError(getPeerUuidLoggingString() + "Connection reset");
RecoverableException exception = new RecoverableException(statusNetworkError);

failOrRetryRpcs(rpcs, exception);
Expand Down

0 comments on commit c44c6f3

Please sign in to comment.