Allow `connect()` (again) while the server is not responding
@florinutz is already working on this.
Since Sep 18, 2026.
Assessment
This issue has not been assessed yet.
Description
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.
- Dominant language
- Python
- Stars
- 85
- Forks
- 34
- Avg merge
- 3d 1h
- Merged PRs (30d)
- 4
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from crate/crate-python
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
crate/crate-python#794 · 2 comments ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 52/100
crate/crate-python#826 ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
crate/crate-python#820 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
crate/crate-python#751 · 7 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
crate/crate-python#729 · 1 comment ·
All issues in crate/crate-python
Similar issues
-
Add: hunch Open
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
AbdelStark/awesome-typesafe#104 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
DiamondLightSource/dodal#2211 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
openml/openml-python#1749 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
sipyourdrink-ltd/bernstein#6191 ·