ClickHouse / ClickHouse/clickhouse-java

[jdbc-v2] Handle query timeout in the middle of stream

Offen
#3,077 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
jdbc-v2
Vorherrschende Sprache
Java
Sterne
1.6k
Forks
636
Ø Merge
2 T. 23 Std.
Gemergte PRs (30 T.)
29

Beschreibung

## Description

Query may have execution timeout limit on server. In this case exception will be just `SQLException` not a `SQLTimeoutException`.
JDBC do not make driver throw `SQLTimeoutException` in this case but it would be good to fix for consistency and better error handling.

Requires: https://github.com/ClickHouse/clickhouse-java/issues/2702

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Start with the JDBC-v2 streaming query timeout handling and review the prerequisite issue #2702 before locating the relevant code and tests. Done means a server execution timeout occurring during a stream is exposed as SQLTimeoutException rather than a generic SQLException.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
java
Bereich
database
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Aktiv
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
48/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.