Skip to content

Commit 857a0eb

Browse files
authored
[fix](export) remove task from map finally(#51171) (#51206)
bp #51171
1 parent eb15bf5 commit 857a0eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fe/fe-core/src/main/java/org/apache/doris/scheduler/manager/TransientTaskManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public Long addMemoryTask(TransientTaskExecutor executor) throws JobException {
6363
}
6464

6565
public void cancelMemoryTask(Long taskId) throws JobException {
66-
TransientTaskExecutor transientTaskExecutor = taskExecutorMap.get(taskId);
66+
TransientTaskExecutor transientTaskExecutor = taskExecutorMap.remove(taskId);
6767
if (transientTaskExecutor != null) {
6868
transientTaskExecutor.cancel();
6969
}

0 commit comments

Comments
 (0)