ClickHouse / ClickHouse/clickhouse-java
BatchUpdateException during inserts with jdbc driver
- Langage dominant
- Java
- Étoiles
- 1.6k
- Forks
- 636
- Merge moyen
- 2 j 23 h
- PR mergées (30 j)
- 29
Description
Hello. I have an issue with connection to Clickhouse with the driver (version 0.4.6).
The problems with Inserts. There is an exception:
`java.sql.BatchUpdateException: Unexpected end of file from server, server ClickHouseNode [uri=http://clickhouse.dwh.staging.com:8123/default]@-971229636
at com.clickhouse.jdbc.SqlExceptionUtils.batchUpdateError(SqlExceptionUtils.java:107)
at com.clickhouse.jdbc.internal.InputBasedPreparedStatement.executeAny(InputBasedPreparedStatement.java:154)
at com.clickhouse.jdbc.internal.AbstractPreparedStatement.executeLargeBatch(AbstractPreparedStatement.java:85)`
I've tried change some timeouts on ClickHouse side, I've tested with several versions of driver. Still have this kind of problems.
Inserts 10k-100k
ch version - 23.3.8
driver - 0.4.6
It's not a blocker for me, because with retries the data is inserted but have at least 10 exceptions per hour.
Could you please give me some advice?
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par les emplacements de la trace de pile dans com.clickhouse.jdbc.SqlExceptionUtils, InputBasedPreparedStatement et AbstractPreparedStatement, puis reproduisez des insertions de 10k–100k lignes avec driver 0.4.6 contre ClickHouse 23.3.8. Le travail sera considéré comme terminé lorsque la cause des erreurs inattendues de fin de fichier sera identifiée et que la BatchUpdateException récurrente pourra être évitée sans recourir aux tentatives répétées.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- java
- Domaine
- databases
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 28/100