This is an automated email from the ASF dual-hosted git repository.
morrysnow 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 f151a061007 branch-3.0: [chore](MTMV) catch all exception when get
mtmvs to avoid plan failed #46474 (#46535)
f151a061007 is described below
commit f151a061007d0739e56e83eb20c3ebd3f67b2fbc
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Tue Jan 7 19:09:13 2025 +0800
branch-3.0: [chore](MTMV) catch all exception when get mtmvs to avoid plan
failed #46474 (#46535)
Cherry-picked from #46474
Co-authored-by: morrySnow <[email protected]>
---
.../src/main/java/org/apache/doris/mtmv/MTMVRelationManager.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/mtmv/MTMVRelationManager.java
b/fe/fe-core/src/main/java/org/apache/doris/mtmv/MTMVRelationManager.java
index f8f92e25d38..f3939cb47ea 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/mtmv/MTMVRelationManager.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/mtmv/MTMVRelationManager.java
@@ -90,7 +90,7 @@ public class MTMVRelationManager implements MTMVHookService {
if (isMVPartitionValid(mtmv, ctx, forceConsistent)) {
res.add(mtmv);
}
- } catch (AnalysisException e) {
+ } catch (Exception e) {
// not throw exception to client, just ignore it
LOG.warn("getTable failed: {}", tableInfo.toString(), e);
}
@@ -107,7 +107,7 @@ public class MTMVRelationManager implements MTMVHookService
{
for (BaseTableInfo tableInfo : mvInfos) {
try {
mtmvs.add((MTMV) MTMVUtil.getTable(tableInfo));
- } catch (AnalysisException e) {
+ } catch (Exception e) {
// not throw exception to client, just ignore it
LOG.warn("getTable failed: {}", tableInfo.toString(), e);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]