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

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


The following commit(s) were added to refs/heads/branch-2.1 by this push:
     new ab7f5ba2acb branch-2.1: [fix](mtmv)After failure, one should quickly 
return to avoid repeated failures #44174 (#44204)
ab7f5ba2acb is described below

commit ab7f5ba2acb50c203f05588c24cbed5b6c795791
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Tue Nov 19 11:05:15 2024 +0800

    branch-2.1: [fix](mtmv)After failure, one should quickly return to avoid 
repeated failures #44174 (#44204)
    
    Cherry-picked from #44174
    
    Co-authored-by: zhangdong <zhangd...@selectdb.com>
---
 .../src/main/java/org/apache/doris/mtmv/MTMVRewriteUtil.java   | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/mtmv/MTMVRewriteUtil.java 
b/fe/fe-core/src/main/java/org/apache/doris/mtmv/MTMVRewriteUtil.java
index 5e17673a068..7b7d743a36b 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/mtmv/MTMVRewriteUtil.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/mtmv/MTMVRewriteUtil.java
@@ -64,10 +64,16 @@ public class MTMVRewriteUtil {
                 res.add(partition);
                 continue;
             }
-            try {
-                if (refreshContext == null) {
+            if (refreshContext == null) {
+                try {
                     refreshContext = MTMVRefreshContext.buildContext(mtmv);
+                } catch (AnalysisException e) {
+                    LOG.warn("buildContext failed", e);
+                    // After failure, one should quickly return to avoid 
repeated failures
+                    return res;
                 }
+            }
+            try {
                 if (MTMVPartitionUtil.isMTMVPartitionSync(refreshContext, 
partition.getName(),
                         mtmvRelation.getBaseTablesOneLevel(),
                         Sets.newHashSet())) {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to