[fix](stmt-forward) fix result missing (#17173)

This commit is contained in:
奕冷
2023-02-27 18:01:43 +08:00
committed by GitHub
parent d5b1d3403f
commit 0db58800d3

View File

@ -129,7 +129,7 @@ public class MasterOpExecutor {
boolean isReturnToPool = false;
try {
client.forward(params);
result = client.forward(params);
isReturnToPool = true;
} catch (TTransportException e) {
// wrap the raw exception.
@ -146,7 +146,7 @@ public class MasterOpExecutor {
} else {
LOG.warn("Forward statement " + ctx.getStmtId() + " to Master " + thriftAddress + " twice", e);
try {
client.forward(params);
result = client.forward(params);
isReturnToPool = true;
} catch (TException ex) {
throw exception;