ClickHouse / ClickHouse/clickhouse-java

[client-v2] Resource release

Open
#2,649 1 comment 1 reaction 0 assignees View on GitHub
client-api-v2
Dominant language
Java
Stars
1.6k
Forks
636
Avg merge
2d 16h
Merged PRs (30d)
28

Description

## 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.