Deadlock on executing special kind of query
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start by reproducing the deadlock with the two client.Execute calls shown in the issue, then inspect the client and server handling of INSERT queries using FORMAT TSV. Determine what data the server expects after the INSERT statement and verify the behavior with a successful TSV load or a clearly reported error.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- C
- Stars
- 388
- Forks
- 220
- Avg merge
- 1d 25m
- Merged PRs (30d)
- 16
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ClickHouse/clickhouse-cpp
-
bug data-types
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
ClickHouse/clickhouse-cpp#645 ·
Maintainers usually reply within 1 day
-
bug queries
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
ClickHouse/clickhouse-cpp#644 ·
Maintainers usually reply within 1 day
-
bug data-types native-format
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
ClickHouse/clickhouse-cpp#643 ·
Maintainers usually reply within 1 day
-
bug connectivity native-protocol
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
ClickHouse/clickhouse-cpp#638 ·
Maintainers usually reply within 1 day
-
Core SQL test harness: ParseSetAssignments does not skip comments inside SETPossibly taken @puretechteam claimed this 12 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
ClickHouse/clickhouse-cpp#626 · 1 comment ·
Maintainers usually reply within 1 day
All issues in ClickHouse/clickhouse-cpp
Similar issues
-
CF_CFDP_S_SendFileData computes the file checksum from the SB buffer after CFE_SB_TransmitBufferOpen
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
389ds/389-ds-base#8251 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100