This is an automated email from the ASF dual-hosted git repository.

dataroaring pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-3.0 by this push:
     new 72ebf34ac92 branch-3.0: [chore](alter job) Fix finished alter job 
print too much warning log #55132 (#55154)
72ebf34ac92 is described below

commit 72ebf34ac92c79914de15ead260dfc600c025248
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Sun Aug 24 15:28:28 2025 +0800

    branch-3.0: [chore](alter job) Fix finished alter job print too much 
warning log #55132 (#55154)
    
    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]

Reply via email to