wutiangan commented on a change in pull request #4209:
URL: https://github.com/apache/incubator-doris/pull/4209#discussion_r462365309
##########
File path:
fe/fe-core/src/main/java/org/apache/doris/alter/MaterializedViewHandler.java
##########
@@ -102,6 +102,20 @@ public MaterializedViewHandler() {
// table id -> set of running job ids
private Map<Long, Set<Long>> tableRunningJobMap = new
ConcurrentHashMap<>();
+ @Override
+ public void prepare() {
+ for (AlterJobV2 alterJobV2 : alterJobsV2.values()) {
+ if (alterJobV2.getJobState() == AlterJobV2.JobState.PENDING) {
+ try {
+ alterJobV2.analyze();
+ } catch (Exception e) {
+ alterJobV2.cancel("Analyze failed:" + e.getMessage());
+ LOG.warn("Failed to analyze rollup job []",
alterJobV2.getJobId(), e);
Review comment:
```suggestion
LOG.warn("Failed to analyze rollup job [{}]",
alterJobV2.getJobId(), e);
```
----------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]