[Fix](executor) Fix insert select not close coordinator #32571
This commit is contained in:
@ -172,6 +172,7 @@ public abstract class AbstractInsertExecutor {
|
||||
onFail(t);
|
||||
return;
|
||||
} finally {
|
||||
coordinator.close();
|
||||
executor.updateProfile(true);
|
||||
QeProcessorImpl.INSTANCE.unregisterQuery(ctx.queryId());
|
||||
}
|
||||
|
||||
@ -634,7 +634,11 @@ public class Coordinator implements CoordInterface {
|
||||
@Override
|
||||
public void close() {
|
||||
if (queryQueue != null && queueToken != null) {
|
||||
queryQueue.returnToken(queueToken);
|
||||
try {
|
||||
queryQueue.returnToken(queueToken);
|
||||
} catch (Throwable t) {
|
||||
LOG.error("error happens when coordinator close ", t);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user