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

Aberta
#14,967 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

@rayudu3745 já está trabalhando nisso.

Desde 12/11/2026.

  • #14981 de @rayudu3745 — aberto

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
65/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
google-cloud, java, postgresql

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.
Linguagem predominante
Java
Estrelas
2.1k
Forks
1.2k
Merge médio
2d 14h
PRs com merge (30d)
192

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de googleapis/google-cloud-java

Todas as issues de googleapis/google-cloud-java

Issues semelhantes

Mais issues de Java

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.