Compatibility: preserve root cause on connection timeouts with PG16 parameters
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 18/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- Python
- Estrellas
- 385
- Forks
- 393
- Merge medio
- 4 d 22 h
- PR fusionados (30 d)
- 21
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de OCA/rest-framework
-
bug stale
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
OCA/rest-framework#612 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
-
Migration to version 20.0Abiertohelp wanted no stale work in progress
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
OCA/rest-framework#648 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 12/100
OCA/rest-framework#621 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 25/100
OCA/rest-framework#617 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Migration to version 19.0Posiblemente ocupada @Churnika-Chaudhari la tomó hace 22 días. Abiertohelp wanted no stale work in progress
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
OCA/rest-framework#567 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de OCA/rest-framework
Issues similares
-
add entry to blockAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 65/100
StevenBlack/hosts#3299 ·
-
`garak --report` overwrites the input report when its name has no ".report"Posiblemente ocupada @0z5a la tomó hoy. Abiertoneeds-triage
Dificultad 2/5 Medio día Aptitud para principiantes 72/100
Los mantenedores suelen responder en 2 días
-
plot_graph crashes when a mesh node has no m2m edgePosiblemente ocupada @tygvi la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
mllam/neural-lam#883 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
future-agi/future-agi#4092 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
transcript analytics: a text whose only protected spans the prose pass redacts is withheld wholeAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
WingedGuardian/GENesis-AGI#4641 ·
Los mantenedores suelen responder en 1 día