ClickHouse / ClickHouse/clickhouse-java

[client-v2] Resource release

Aperta
#2,649 1 commento 1 reazione 0 assegnatari Vedi su GitHub
client-api-v2
Lingua principale
Java
Stelle
1.6k
Fork
636
Merge medio
2g 23h
PR unite (30g)
29

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.