BigQuery: Retry transient network exceptions wrapped by RuntimeIOException

Abierto
#18,442 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

  • #18443 de @patnaikankit — cerrado sin fusionar

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
20/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
gcp, java
Área
data

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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
Lenguaje dominante
Java
Estrellas
9.4k
Forks
3.7k
Merge medio
2 d 15 h
PR fusionados (30 d)
169

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de apache/iceberg

Todos los issues de apache/iceberg

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.