mirror of https://github.com/tikv/client-java.git
Signed-off-by: ti-srebot <ti-srebot@pingcap.com> Co-authored-by: birdstorm <samuelwyf@hotmail.com>
This commit is contained in:
parent
490b4a1e01
commit
01b391ff2f
|
|
@ -123,9 +123,7 @@ public class KVErrorHandler<RespT> implements ErrorHandler<RespT> {
|
|||
@Override
|
||||
public boolean handleResponseError(BackOffer backOffer, RespT resp) {
|
||||
if (resp == null) {
|
||||
String msg =
|
||||
String.format(
|
||||
"Request Failed with unknown reason for region region [%s]", recv.getRegion());
|
||||
String msg = String.format("Request Failed with unknown reason for [%s]", recv.getRegion());
|
||||
logger.warn(msg);
|
||||
return handleRequestError(backOffer, new GrpcException(msg));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ public class Batch {
|
|||
}
|
||||
|
||||
public BackOffer getBackOffer() {
|
||||
return backOffer;
|
||||
return ConcreteBackOffer.create(backOffer);
|
||||
}
|
||||
|
||||
public TiRegion getRegion() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue