Allow `connect()` (again) while the server is not responding
@florinutz 已经在做这个了。
开始于 2026年9月18日。
评估
这个 Issue 还没有评估数据。
描述
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.
- 主要语言
- Python
- 星标
- 85
- 派生
- 34
- 平均合并
- 3 天 1 小时
- 30 天内合并 PR
- 4
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
crate/crate-python 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
crate/crate-python#794 · 2 条评论 ·
-
bug
难度 4/5 3-5 天 新手友好度 52/100
crate/crate-python#826 ·
-
难度 5/5 一周以上 新手友好度 25/100
crate/crate-python#820 · 1 条评论 ·
-
难度 5/5 一周以上 新手友好度 35/100
crate/crate-python#751 · 7 条评论 ·
-
难度 3/5 1-2 天 新手友好度 35/100
crate/crate-python#729 · 1 条评论 ·
查看 crate/crate-python 的全部 Issue
相似的 Issue
-
agent-ready documentation needs-triage
难度 1/5 1-3 小时 新手友好度 88/100
-
documentation
难度 1/5 1 小时以内 新手友好度 91/100
-
workflow-status page template still says reusable workflows are "triggered only by workflow_call:" 未关闭
难度 1/5 1 小时以内 新手友好度 92/100
-
instance instance add
难度 1/5 1 小时以内 新手友好度 72/100
searxng/searx-instances#939 · 1 条评论 ·
-
area-deployment area-integrations triage:bot-seen
难度 2/5 半天 新手友好度 86/100