BigQuery: Retry transient network exceptions wrapped by RuntimeIOException

Đang mở
#18,442 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

  • #18443 của @patnaikankit — đã đóng, không merge

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
20/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
gcp, java
Lĩnh vực
data

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
Java
Star
9.4k
Fork
3.7k
Merge trung bình
2 ngày 15 giờ
Pull request đã merge (30 ngày)
169

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của apache/iceberg

Tất cả issue của apache/iceberg

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.