Compatibility: preserve root cause on connection timeouts with PG16 parameters
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 18/100
Direzione di ricerca
The issue names no file, function or test. Start by reproducing the problem with a multi-host PostgreSQL DSN that uses target_session_attrs or sslnegotiation, and find where the connection fallback loop catches and re-raises errors. Done would mean the original timeout is chained or preserved in the traceback, which the maintainers would need to agree on first, since the expected behaviour is not yet specified.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Hi everyone,
While working with PostgreSQL 16 multi-host DSNs that utilize newer connection parameters like target_session_attrs or sslnegotiation, we noticed that fallback connection attempts can sometimes obscure the original root cause during network timeouts. This can occasionally make diagnosing connectivity issues in clustered environments a bit trickier than necessary.
Environment
- Python 3.12
- Linux / Ubuntu 22.04
- OCA/rest-framework (current main)
- psycopg / psycopg2 (PostgreSQL 16 connection handling)
Steps to Reproduce
- Configure a multi-host PostgreSQL DSN in Odoo utilizing
target_session_attrs=read-writeorsslnegotiation=direct. - Simulate a network timeout or unreachable primary node where fallback logic is triggered.
- Observe the resulting exception traceback.
Expected Behavior
The underlying root cause and original timeout exception should be preserved or clearly chained in the traceback to facilitate faster debugging.
Actual Behavior
The original network timeout context can sometimes be swallowed during the fallback iteration across connection attempts.
Happy to submit a quick PR for this if the maintainers are open to it!
Reported by Usman Ghias · Senior Systems & Backend Architect · Open for Select Senior Remote & Consulting Roles
- Lingua principale
- Python
- Stelle
- 385
- Fork
- 393
- Merge medio
- 4g 22h
- PR unite (30g)
- 21
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di OCA/rest-framework
-
bug stale
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
OCA/rest-framework#612 · 4 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Migration to version 20.0Apertahelp wanted no stale work in progress
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
OCA/rest-framework#648 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 12/100
OCA/rest-framework#621 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 25/100
OCA/rest-framework#617 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Migration to version 19.0Forse già presa @Churnika-Chaudhari l’ha presa 22 giorni fa. Apertahelp wanted no stale work in progress
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
OCA/rest-framework#567 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di OCA/rest-framework
Issue simili
-
add entry to blockAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 65/100
StevenBlack/hosts#3299 ·
-
`garak --report` overwrites the input report when its name has no ".report"Forse già presa @0z5a l’ha presa oggi. Apertaneeds-triage
Difficoltà 2/5 Mezza giornata Idoneità per principianti 72/100
I maintainer di solito rispondono entro 2 giorni
-
plot_graph crashes when a mesh node has no m2m edgeForse già presa @tygvi l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
mllam/neural-lam#883 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
future-agi/future-agi#4092 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
transcript analytics: a text whose only protected spans the prose pass redacts is withheld wholeAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
WingedGuardian/GENesis-AGI#4641 ·
I maintainer di solito rispondono entro 1 giorno