You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "patnaikankit (via GitHub)" <gi...@apache.org> on 2026/10/10 11:44:10 UTC
[I] BigQuery: Retry transient network exceptions wrapped by RuntimeIOException [iceberg]
patnaikankit opened a new issue, #18442:
URL: https://github.com/apache/iceberg/issues/18442
### 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)](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)](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)`](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
- [x] 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
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [I] BigQuery: Retry transient network exceptions wrapped by RuntimeIOException [iceberg]
Posted by "patnaikankit (via GitHub)" <gi...@apache.org>.
patnaikankit commented on issue #18442:
URL: https://github.com/apache/iceberg/issues/18442#issuecomment-6097202944
Hi, I’m new to contributing to Iceberg. While exploring `BigQueryMetastoreClientImpl`, I noticed that `ConnectException` and `UnknownHostException` are configured as retryable, but get wrapped in `RuntimeIOException` before the retry handler sees them. I opened this issue and have submitted [[PR #18443 ](https://github.com/apache/iceberg/pull/18443)<number>] to address it. I’d appreciate any feedback or guidance. Thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org