[fix](group commit) handle group commit create plan error (#31757)

This commit is contained in:
meiyi
2024-03-05 18:55:03 +08:00
committed by yiguolei
parent 7b51c4aaca
commit eea9b56f69
6 changed files with 27 additions and 44 deletions

View File

@ -1687,12 +1687,11 @@ public class FrontendServiceImpl implements FrontendService.Iface {
try {
loadTxnRollbackImpl(request);
} catch (MetaNotFoundException e) {
String msg = "failed to rollback txn" + request.getTxnId();
LOG.warn(msg, e);
LOG.warn("failed to rollback txn, id: {}, label: {}", request.getTxnId(), request.getLabel(), e);
status.setStatusCode(TStatusCode.NOT_FOUND);
status.addToErrorMsgs(e.getMessage());
} catch (UserException e) {
LOG.warn("failed to rollback txn {}: {}", request.getTxnId(), e.getMessage());
LOG.warn("failed to rollback txn, id: {}, label: {}", request.getTxnId(), request.getLabel(), e);
status.setStatusCode(TStatusCode.ANALYSIS_ERROR);
status.addToErrorMsgs(e.getMessage());
} catch (Throwable e) {