You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/02/23 03:17:14 UTC
[GitHub] [incubator-doris] Henry2SS commented on a change in pull request #8195: fix show routine load task error
Henry2SS commented on a change in pull request #8195:
URL: https://github.com/apache/incubator-doris/pull/8195#discussion_r812529682
##########
File path: fe/fe-core/src/main/java/org/apache/doris/load/routineload/RoutineLoadJob.java
##########
@@ -1299,7 +1300,14 @@ protected abstract boolean checkCommitInfo(RLTaskTxnCommitAttachment rlTaskTxnCo
public List<List<String>> getTasksShowInfo() {
List<List<String>> rows = Lists.newArrayList();
- routineLoadTaskInfoList.stream().forEach(entity -> rows.add(entity.getTaskShowInfo()));
+ routineLoadTaskInfoList.stream().forEach(entity -> {
+ try {
+ entity.setTxnStatus(Catalog.getCurrentCatalog().getGlobalTransactionMgr().getDatabaseTransactionMgr(dbId).getTransactionState(entity.getTxnId()).getTransactionStatus());
+ rows.add(entity.getTaskShowInfo());
+ } catch (AnalysisException e) {
+ LOG.warn("failed to setTxnStatus db: {}, txnId: {}", dbId, entity.getTxnId());
Review comment:
Done.
--
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.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org