You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "shedar (via GitHub)" <gi...@apache.org> on 2023/12/12 11:03:09 UTC
Re: [I] [Bug] Catalog connections not released [doris]
shedar commented on issue #27263:
URL: https://github.com/apache/doris/issues/27263#issuecomment-1851816907
I was able to reproduce connections growing with jdbc postgresql catalog, on refresh+select cycle.
```sql
refresh catalog pg_jdbc_app;
select * from pg_jdbc_app.public.data limit 20;
```
From looking at source code, it seems, that [setUninitialized](https://github.com/apache/doris/blob/master/fe/fe-core/src/main/java/org/apache/doris/datasource/ExternalCatalog.java#L290) doesn't trigger onClose, and onClose is [used by JdbcExternalCatalog](https://github.com/apache/doris/blob/master/fe/fe-core/src/main/java/org/apache/doris/datasource/jdbc/JdbcExternalCatalog.java#L74) to release connections. So after refresh a new jdbc client is created with a new connection, increasing the count
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org