clickhouse-java icon indicating copy to clipboard operation
clickhouse-java copied to clipboard

[client-v2] Resource release

Open chernser opened this issue 1 month ago • 0 comments

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.

chernser avatar Nov 07 '25 18:11 chernser