Skip to content

Commit

Permalink
[fix][sdk] Add error log
Browse files Browse the repository at this point in the history
  • Loading branch information
githubgxll authored and ketor committed Apr 17, 2024
1 parent e227518 commit 43a7d4e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import io.dingodb.sdk.common.DingoClientException.ExhaustedRetryException;
import io.dingodb.sdk.common.DingoClientException.InvalidRouteTableException;
import io.dingodb.sdk.common.DingoClientException.RequestErrorException;
import io.dingodb.sdk.service.JsonMessageUtils;
import io.dingodb.sdk.service.Caller;
import io.dingodb.sdk.service.ChannelProvider;
import io.dingodb.sdk.service.Service;
Expand Down Expand Up @@ -162,6 +163,7 @@ private <REQ extends Request> RuntimeException generateException(
throw exception;
} else {
handler.onNonConnection(request, options, traceId);
log.error(JsonMessageUtils.toJson(name, traceId, request, null, options));
throw new ExhaustedRetryException(
"Exec [" + traceId + "] [" + name + "] error, " + "transform leader attempts exhausted."
);
Expand Down

0 comments on commit 43a7d4e

Please sign in to comment.