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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to