Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

Disconnection from postgres-compatible google cloud AlloyDB instance hangs

Offen
#962 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
35/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
gcp, postgresql, python
Bereich
cloud, databases

Rechercherichtung

Beginnen Sie beim Aufruf von connection.disconnect() in der bereitgestellten AlloyDB-auth-proxy-Reproduktion und führen Sie sie gegen das gemeldete Google Cloud AlloyDB-Setup aus. Vergleichen Sie das Verhalten mit einer lokalen PostgreSQL-Installation und dem bestehenden psycopg2-Verhalten; abgeschlossen ist die Aufgabe, wenn die Ursache des Hängers identifiziert ist und asyncpg für dieses Setup sauber die Verbindung trennt.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

  • asyncpg version: 0.26.0
  • PostgreSQL version: Google AlloyDB, postgres 14.4 compatible
  • Do you use a PostgreSQL SaaS? If so, which? Can you reproduce
    the issue with a local PostgreSQL install?
    : I cannot reproduce the issue on a local postgres, no.
  • Python version: 3.10
  • Platform: Macos
  • Do you use pgbouncer?: No
  • Did you install asyncpg with pip?: Yes
  • If you built asyncpg locally, which version of Cython did you use?: NA
  • Can the issue be reproduced under both asyncio and
    uvloop?
    : I have not tried to reproduce under uvloop

I am connecting to an AlloyDB instance on Google Cloud (currently, these are available for free testing). I can connect and queries run as expected. However, connection.disconnect() hangs. I cannot reproduce this behavior locally; disconnection happens as expected. Synchronous database work with psycopg2, for example, works as expected.

This code reproduces the behavior I am seeing (running through the alloydb-auth-proxy as is required):

import asyncpg
conn = await asyncpg.connect(ALLOYDB_URI)
conn.disconnect() # hangs

I'll put in a ticket with Google as well if nothing obvious turns up here.

Vorherrschende Sprache
Python
Sterne
8.1k
Forks
469
Ø Merge
4 T. 1 Std.
Gemergte PRs (30 T.)
14

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus MagicStack/asyncpg

Alle Issues in MagicStack/asyncpg

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.