in adb3client/src/main/java/com/alibaba/cloud/analyticdb/adb3client/AdbClient.java [281:301]
private void closeInternal() {
if (pool != null && pool.isRegister(this)) {
try {
tryThrowException();
flush();
} catch (AdbClientException e) {
LOGGER.error("fail when close", e);
}
pool.unregister(this);
if (isEmbeddedPool) {
pool.close();
}
}
if (fixedPool != null && fixedPool.isRegister(this)) {
fixedPool.unregister(this);
if (isEmbeddedFixedPool) {
fixedPool.close();
}
}
}