BigQuery: Retry transient network exceptions wrapped by RuntimeIOException

Aperta
#18,442 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

  • #18443 di @patnaikankit — chiusa senza merge

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
20/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
gcp, java
Ambito
data

Direzione di ricerca

The work is in bigquery/src/main/java/org/apache/iceberg/gcp/bigquery/BigQueryMetastoreClientImpl.java: read the exception-handler interceptor and the retry handler that only matches ConnectException and UnknownHostException, then the internalCreate(Table) method that wraps IOException in RuntimeIOException. Done means wrapped causes of those two exceptions are retried while other runtime exceptions still are not. Pull request #18443 is already open against this issue, so check with the maintainers before starting a parallel fix.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug
Apache Iceberg version

None

Query engine

None

Please describe the bug 🐞

Description

BigQueryMetastoreClientImpl configures retries for ConnectException and UnknownHostException, but its [exception handler](https://github.com/apache/iceberg/blob/0f3131f02fc2560bd122f3b323d13ea935892eb3/bigquery/src/main/java/org/apache/iceberg/gcp/bigquery/BigQueryMetastoreClientImpl.java#L114-L122) aborts on RuntimeException. The [exception handler interceptor](https://github.com/apache/iceberg/blob/0f3131f02fc2560bd122f3b323d13ea935892eb3/bigquery/src/main/java/org/apache/iceberg/gcp/bigquery/BigQueryMetastoreClientImpl.java#L93-L103) does not inspect wrapped causes.

Meanwhile, [internalCreate(Table)](https://github.com/apache/iceberg/blob/0f3131f02fc2560bd122f3b323d13ea935892eb3/bigquery/src/main/java/org/apache/iceberg/gcp/bigquery/BigQueryMetastoreClientImpl.java#L349-L365) catches IOException from the BigQuery table insert and wraps it in RuntimeIOException.

As a result, a transient connection or DNS failure during table creation fails immediately instead of following the configured retry policy.

Expected Behavior

Wrapped ConnectException and UnknownHostException causes should follow the configured retry policy, while unrelated runtime exceptions remain non-retryable.

This report concerns retry classification only; it does not claim that table creation is retried after an ambiguous successful insert.

Willingness to contribute
  • I can contribute a fix for this bug independently
  • I would be willing to contribute a fix for this bug with guidance from the Iceberg community
  • I cannot contribute a fix for this bug at this time
Lingua principale
Java
Stelle
9.4k
Fork
3.7k
Merge medio
2g 15h
PR unite (30g)
169

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di apache/iceberg

Tutte le issue di apache/iceberg

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.