Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Allow `connect()` (again) while the server is not responding

Abierto
#833 0 comentarios 0 reacciones 1 asignado Ver en GitHub

@florinutz ya está trabajando en esto.

Desde el 18/9/2026.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

enhancement

Since 2.3.0, connect() contacts the configured servers and raises ConnectionError when none of them answers (#711). For most programs that is an improvement: the failure arrives where the connection is made, not at the first statement.

A test suite that talks to a cluster while nodes are starting or shutting down now fails inside connect(). crate's blackbox tests hit that and crate pinned crate<2.3 to unblock CI (see crate/crate#20233). The same applies to programs that connect while the server is still coming up (e.g. a CI service container).

Proposal: connect(..., probe=False) skips the check at construction. The server version is then resolved when something first reads lowest_server_version, and an unreachable cluster fails at the first statement, as it did before 2.3.0. The default stays probe=True, so nothing changes for callers who want the early failure.

Lenguaje dominante
Python
Estrellas
85
Forks
34
Merge medio
3 d 1 h
PR fusionados (30 d)
4

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de crate/crate-python

Todos los issues de crate/crate-python

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.