Yulei-Yang commented on code in PR #17342:
URL: https://github.com/apache/doris/pull/17342#discussion_r1125590916
##########
fe/fe-core/src/main/java/org/apache/doris/alter/AlterHandler.java:
##########
@@ -140,7 +142,20 @@ public Long
getAlterJobV2Num(org.apache.doris.alter.AlterJobV2.JobState state, l
}
public Long getAlterJobV2Num(org.apache.doris.alter.AlterJobV2.JobState
state) {
- return alterJobsV2.values().stream().filter(e -> e.getJobState() ==
state).count();
+ Long counter = 0L;
+
+ for (AlterJobV2 job : alterJobsV2.values()) {
Review Comment:
fixed
##########
fe/fe-core/src/main/java/org/apache/doris/alter/MaterializedViewHandler.java:
##########
@@ -1146,6 +1147,24 @@ public List<List<Comparable>>
getAlterJobInfosByDb(Database db) {
return rollupJobInfos;
}
+ public List<List<Comparable>> getAllAlterJobInfos() {
Review Comment:
fixed
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]