HDDS-869. Fix log message in XceiverClientRatis#sendCommandAsync. Contributed by Lokesh Jain.

This commit is contained in:
Shashikant Banerjee 2018-11-22 18:39:14 +05:30
parent ff2484906c
commit 95d526a270

View File

@ -196,9 +196,11 @@ public XceiverClientAsyncReply sendCommandAsync(
Collection<XceiverClientAsyncReply.CommitInfo> commitInfos = Collection<XceiverClientAsyncReply.CommitInfo> commitInfos =
new ArrayList<>(); new ArrayList<>();
CompletableFuture<ContainerCommandResponseProto> containerCommandResponse = CompletableFuture<ContainerCommandResponseProto> containerCommandResponse =
raftClientReply.whenComplete((reply, e) -> LOG raftClientReply.whenComplete((reply, e) -> LOG.debug(
.info("received reply {} for request: {} exception: {}", request, "received reply {} for request: cmdType={} containerID={}"
reply, e)) + " pipelineID={} traceID={} exception: {}", reply,
request.getCmdType(), request.getContainerID(),
request.getPipelineID(), request.getTraceID(), e))
.thenApply(reply -> { .thenApply(reply -> {
try { try {
// we need to handle RaftRetryFailure Exception // we need to handle RaftRetryFailure Exception