yiguolei commented on code in PR #9106: URL: https://github.com/apache/incubator-doris/pull/9106#discussion_r854767848
########## fe/fe-core/src/main/java/org/apache/doris/transaction/DatabaseTransactionMgr.java: ########## @@ -124,10 +124,10 @@ public class DatabaseTransactionMgr { // count the number of running txns of database, except for the routine load txn - private int runningTxnNums = 0; + private volatile int runningTxnNums = 0; // count only the number of running routine load txns of database - private int runningRoutineLoadTxnNums = 0; + private volatile int runningRoutineLoadTxnNums = 0; Review Comment: Do we meet errors using int? If there are any errors, I think you'd better add comment here. -- 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-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org