spanner: handle unrecognized database default isolation level in PG SHOW statements

Đang mở
#14,967 0 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

@rayudu3745 đang làm issue này rồi.

Từ ngày 12/11/2026.

  • #14981 của @rayudu3745 — đang mở

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
65/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
google-cloud, java, postgresql

Hướng nghiên cứu

This issue follows up on #14904 and names DatabaseMetadata and DatabaseClient as the change points. Read that pull request and its linked review comment, then trace how PostgreSQL isolation level SHOW statements handle UNRECOGNIZED values. Done when those statements return the raw database default and an older client no longer fails with FAILED_PRECONDITION for an unrecognized level.

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

Mô tả

Follow-up to #14904, based on this review comment.

If the database's default_transaction_isolation holds a value this client doesn't recognize, the PostgreSQL isolation level SHOW statements fail with FAILED_PRECONDITION. An older client should keep working with a database that uses a newer default isolation level.

Proposal:

  • Store the raw default_transaction_isolation value in DatabaseMetadata and expose it through DatabaseClient.
  • Return that value from the SHOW statements when the level is UNRECOGNIZED, instead of throwing.
Ngôn ngữ chính
Java
Star
2.1k
Fork
1.2k
Merge trung bình
2 ngày 14 giờ
Pull request đã merge (30 ngày)
192

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 googleapis/google-cloud-java

Tất cả issue của googleapis/google-cloud-java

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.