ClickHouse / ClickHouse/clickhouse-cpp
Deadlock on executing special kind of query
- Langage dominant
- C
- Étoiles
- 382
- Forks
- 209
- Merge moyen
- 2 j 19 h
- PR mergées (30 j)
- 14
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.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Commencez par reproduire le deadlock avec les deux appels à client.Execute présentés dans l’issue, puis examinez la gestion par le client et le serveur des requêtes INSERT utilisant FORMAT TSV. Déterminez quelles données le serveur attend après l’instruction INSERT et vérifiez le comportement avec un chargement TSV réussi ou une erreur clairement signalée.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- cpp
- Domaine
- database
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100