Yuta HIGUCHI

RPCTask: add log about which request failed

Change-Id: I43d83b9695338d4eb1674a58134a398038b8ae0b
...@@ -109,10 +109,12 @@ public class ClusterMessagingProtocolClient implements ProtocolClient { ...@@ -109,10 +109,12 @@ public class ClusterMessagingProtocolClient implements ProtocolClient {
109 109
110 private class RPCTask<I, O> implements Runnable { 110 private class RPCTask<I, O> implements Runnable {
111 111
112 + private final I request;
112 private final ClusterMessage message; 113 private final ClusterMessage message;
113 private final CompletableFuture<O> future; 114 private final CompletableFuture<O> future;
114 115
115 public RPCTask(I request, CompletableFuture<O> future) { 116 public RPCTask(I request, CompletableFuture<O> future) {
117 + this.request = request;
116 this.message = 118 this.message =
117 new ClusterMessage( 119 new ClusterMessage(
118 null, 120 null,
...@@ -139,6 +141,7 @@ public class ClusterMessagingProtocolClient implements ProtocolClient { ...@@ -139,6 +141,7 @@ public class ClusterMessagingProtocolClient implements ProtocolClient {
139 RETRY_INTERVAL_MILLIS, 141 RETRY_INTERVAL_MILLIS,
140 TimeUnit.MILLISECONDS); 142 TimeUnit.MILLISECONDS);
141 } else { 143 } else {
144 + log.warn("RPCTask for {} failed.", request, e);
142 future.completeExceptionally(e); 145 future.completeExceptionally(e);
143 } 146 }
144 } catch (Exception e) { 147 } catch (Exception e) {
......