branch-2.1: [chore](MTMV) catch all exception when get mtmvs to avoid plan failed #46474 (#46536)

Cherry-picked from #46474

Co-authored-by: morrySnow <zhangwenxin@selectdb.com>
This commit is contained in:
github-actions[bot]
2025-01-08 13:56:18 +08:00
committed by GitHub
parent eda8a26ec8
commit f6ea71ab61

View File

@ -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);
}