ClickHouse / ClickHouse/clickhouse-cpp
Deadlock on executing special kind of query
- 主要言語
- C
- スター
- 382
- フォーク
- 209
- 平均マージ
- 1日 22時間
- マージ済み PR(30日)
- 13
説明
I try to write a loader from TVS format.
So i run the query like
client.Execute("CREATE TEMPORARY TABLE IF NOT EXISTS test_client (id UInt64, name String)");
client.Execute("insert into test_client FORMAT TSV\n");
and got deadlock in
client.Execute("insert into test_client FORMAT TSV\n");
The client waits answer from server - the ServerCodes::EndOfStream code.
The server also waits something. I think it waits some data. What data format is it waiting?
How to send the data that server waiting?
May be it is bug of the clickhouse server.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
まず、issue に示されている 2 つの client.Execute 呼び出しで deadlock を再現し、次に FORMAT TSV を使用する INSERT クエリの client と server における処理を調査します。INSERT 文の後に server がどのデータを想定しているかを特定し、TSV の読み込みが成功すること、または明確に報告されたエラーになることによって動作を検証します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- cpp
- 領域
- database
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100