ClickHouse / ClickHouse/clickhouse-java
[client-v2] Resource release
- 主要言語
- Java
- スター
- 1.6k
- フォーク
- 636
- 平均マージ
- 2日 23時間
- マージ済み PR(30日)
- 29
説明
## 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.
コントリビューションガイド
調査の方向性
まず client-v2 の queryRecords フローと Records の close ライフサイクルを追跡します。次に ConnectionRequestTimeoutException と Insert/Command の操作パスを調べ、リソース解放の動作を確認します。要求された孤立レスポンスのガードレール、プール枯渇の診断、タイムリーなリソース解放が定義され、テストでカバーされていれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java
- 領域
- databases
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 静か
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 35/100