imay commented on a change in pull request #1003: Support kafka routine load
URL: https://github.com/apache/incubator-doris/pull/1003#discussion_r277671758
##########
File path: fe/src/main/java/org/apache/doris/transaction/TransactionState.java
##########
@@ -334,14 +280,62 @@ public void setTransactionStatus(TransactionStatus
transactionStatus, TxnStatusC
if (MetricRepo.isInit.get()) {
MetricRepo.COUNTER_TXN_FAILED.increase(1L);
}
- if (txnStateChangeListener != null) {
- txnStateChangeListener.onAborted(this, txnStatusChangeReason);
+ }
+ }
+
+ public void beforeStateTransform(TransactionStatus transactionStatus)
throws TransactionException {
+ // before status changed
+ TxnStateChangeListener listener =
Catalog.getCurrentGlobalTransactionMgr()
+ .getListenerRegistry().getListener(listenerId);
+ if (listener != null) {
Review comment:
If Job is removed, listener will be null
----------------------------------------------------------------
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]