This is an automated email from the ASF dual-hosted git repository.
panxiaolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 654467aa158 [chore](alter job) Fix finished alter job print too much
warning log (#55132)
654467aa158 is described below
commit 654467aa15816ff08686e4d41f239271ede6ac41
Author: xy720 <[email protected]>
AuthorDate: Fri Aug 22 10:40:25 2025 +0800
[chore](alter job) Fix finished alter job print too much warning log
(#55132)
Related PR: #54113
---
.../java/org/apache/doris/alter/MaterializedViewHandler.java | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/alter/MaterializedViewHandler.java
b/fe/fe-core/src/main/java/org/apache/doris/alter/MaterializedViewHandler.java
index 7722b77bfe5..f49d2fe9911 100644
---
a/fe/fe-core/src/main/java/org/apache/doris/alter/MaterializedViewHandler.java
+++
b/fe/fe-core/src/main/java/org/apache/doris/alter/MaterializedViewHandler.java
@@ -165,8 +165,10 @@ public class MaterializedViewHandler extends AlterHandler {
if (tableNotFinalStateJobIdset == null) {
// This could happen when this job is already removed before.
// return false, so that we will not set table's to NORMAL
again.
- LOG.warn("alter job is already removed before. tableId: {},
jobId: {}",
- tableId, jobId);
+ if (LOG.isDebugEnabled()) {
+ LOG.debug("alter job is already removed before. tableId:
{}, jobId: {}",
+ tableId, jobId);
+ }
return false;
}
tableNotFinalStateJobIdset.remove(jobId);
@@ -1479,8 +1481,10 @@ public class MaterializedViewHandler extends
AlterHandler {
LOG.info("set table's state to NORMAL, table id: {}, job id: {}",
alterJob.getTableId(),
alterJob.getJobId());
} else {
- LOG.warn("Failed to remove job from tableNotFinalStateJobMap,
table id: {}, job id: {}",
- alterJob.getTableId(), alterJob.getJobId());
+ if (LOG.isDebugEnabled()) {
+ LOG.debug("Failed to remove job from tableNotFinalStateJobMap,
table id: {}, job id: {}",
+ alterJob.getTableId(), alterJob.getJobId());
+ }
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]