morningman commented on a change in pull request #703: Change the relationship
between txn and task
URL: https://github.com/apache/incubator-doris/pull/703#discussion_r263334758
##########
File path:
fe/src/main/java/org/apache/doris/load/routineload/RoutineLoadJob.java
##########
@@ -488,72 +502,113 @@ public void plan() throws UserException {
}
@Override
- public void beforeAborted(TransactionState txnState,
TransactionState.TxnStatusChangeReason txnStatusChangeReason)
+ public void beforeAborted(TransactionState txnState, String
txnStatusChangeReason)
throws AbortTransactionException {
readLock();
try {
- if (txnStatusChangeReason != null) {
- switch (txnStatusChangeReason) {
- case TIMEOUT:
- default:
- String taskId = txnState.getLabel();
- if
(routineLoadTaskInfoList.parallelStream().anyMatch(entity ->
entity.getId().equals(taskId))) {
- throw new AbortTransactionException(
- "there are task " + taskId + " related to
this txn, "
- + "txn could not be abort",
txnState.getTransactionId());
- }
- break;
- }
+ String taskId = txnState.getLabel();
+ if (routineLoadTaskInfoList.parallelStream().anyMatch(entity ->
entity.getId().toString().equals(taskId))) {
+ LOG.debug("there are a txn of routine load task will be
aborted");
Review comment:
"there are a txn" ??
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]