pick https://github.com/apache/doris/pull/38883
This commit is contained in:
@ -34,7 +34,8 @@ public class LabelAlreadyUsedException extends DdlException {
|
||||
}
|
||||
|
||||
public LabelAlreadyUsedException(TransactionState txn) {
|
||||
super("Label [" + txn.getLabel() + "] has already been used, relate to txn [" + txn.getTransactionId() + "]");
|
||||
super("Label [" + txn.getLabel() + "] has already been used, relate to txn [" + txn.getTransactionId()
|
||||
+ "], status [" + txn.getTransactionStatus() + "].");
|
||||
switch (txn.getTransactionStatus()) {
|
||||
case UNKNOWN:
|
||||
case PREPARE:
|
||||
|
||||
@ -1751,6 +1751,9 @@ public class FrontendServiceImpl implements FrontendService.Iface {
|
||||
return result;
|
||||
}
|
||||
try {
|
||||
if (DebugPointUtil.isEnable("FrontendServiceImpl.loadTxnRollback.error")) {
|
||||
throw new UserException("FrontendServiceImpl.loadTxnRollback.error");
|
||||
}
|
||||
loadTxnRollbackImpl(request);
|
||||
} catch (MetaNotFoundException e) {
|
||||
LOG.warn("failed to rollback txn, id: {}, label: {}", request.getTxnId(), request.getLabel(), e);
|
||||
|
||||
Reference in New Issue
Block a user