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 1fdf8520827 branch-3.0: [fix](mtmv)Fix the problem where the job does
not exist, which prevents the deletion of MTMV (#43324)
1fdf8520827 is described below
commit 1fdf852082744e17869033f3195a68b4de4a9ee0
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Thu Nov 7 14:17:24 2024 +0800
branch-3.0: [fix](mtmv)Fix the problem where the job does not exist, which
prevents the deletion of MTMV (#43324)
Cherry-picked from #43080
Co-authored-by: zhangdong <[email protected]>
---
fe/fe-core/src/main/java/org/apache/doris/mtmv/MTMVJobManager.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fe/fe-core/src/main/java/org/apache/doris/mtmv/MTMVJobManager.java
b/fe/fe-core/src/main/java/org/apache/doris/mtmv/MTMVJobManager.java
index 8ffcea423d7..2c03ad16176 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/mtmv/MTMVJobManager.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/mtmv/MTMVJobManager.java
@@ -130,7 +130,7 @@ public class MTMVJobManager implements MTMVHookService {
public void dropMTMV(MTMV mtmv) throws DdlException {
try {
Env.getCurrentEnv().getJobManager()
- .unregisterJob(mtmv.getJobInfo().getJobName(), false);
+ .unregisterJob(mtmv.getJobInfo().getJobName(), true);
} catch (JobException e) {
LOG.warn("drop mtmv job failed, mtmvName: {}", mtmv.getName(), e);
throw new DdlException(e.getMessage());
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]