clickhouse-java
clickhouse-java copied to clipboard
[client-v2] Resource release
Description
Recently we have found that while using queryRecords leads to error when user forget to close Records object what leads to a connection leaking. We need to review and put some guard rails even this a misuse problem.
We need to:
- Think about detecting orphan response objects somehow
- We need to put more information into ConnectionRequestTimeoutException because it indicates that pool is empty
- We need to review Insert/Command operation code to make sure resource are release as soon as they can.