This is an automated email from the ASF dual-hosted git repository.
morrysnow pushed a commit to branch branch-3.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.1 by this push:
new ed844fba56a branch-3.1: [chore](alter job) Fix finished alter job
print too much warning log #55132 (#55156)
ed844fba56a is described below
commit ed844fba56a4f449e8c68bb95f8425ec8cfdca1c
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Mon Aug 25 01:25:57 2025 +0800
branch-3.1: [chore](alter job) Fix finished alter job print too much
warning log #55132 (#55156)
Cherry-picked from #55132
Co-authored-by: xy720 <[email protected]>
---
.../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 84def3c6266..9145622871f 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
@@ -162,8 +162,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);
@@ -1233,8 +1235,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]