[fix](mtmv) fix mtmv thread interruption issue (#18884)

This commit is contained in:
Mingyu Chen
2023-04-21 22:27:13 +08:00
committed by GitHub
parent 425101bf53
commit 313fab0802

View File

@ -306,7 +306,10 @@ public class MTMVJobManager {
LOG.warn("fail to obtain scheduled info for job [{}]", job.getName());
return true;
}
boolean isCancel = future.cancel(true);
// MUST not set true for "mayInterruptIfRunning".
// Because this thread may doing bdbje write operation, it is interrupted,
// FE may exit due to bdbje write failure.
boolean isCancel = future.cancel(false);
if (!isCancel) {
LOG.warn("fail to cancel scheduler for job [{}]", job.getName());
}