Repository navigation
CI: "Build profile diff" is green when the read-only CI logs cluster rejects the readiness probe for load - #128067
Merged
Merged
Conversation
…cts the readiness probe for load Since 2026-10-26 18:19 UTC the read-only sub-service of the CI logs cluster answers every query, including the `SELECT 1` readiness probe and before authentication, with `Code: 241` (`(total) memory limit exceeded: would use 213.20 GiB ... maximum: 212.40 GiB`). `select` classifies 241 as `LogClusterUnavailable` (green check), but `is_ready` threw the answer away, so every read ended with `LogClusterNotReady` and the check was ERROR in practically every PR. `is_ready` now logs the status and body of a failed probe and, when the server itself answered (the `X-ClickHouse-Exception-Code` header is present), keeps its classification. If no POST was attempted and the last probe was rejected for load (202, 241), `select` raises `LogClusterUnavailable`. A missing secret, no connection, a gateway answer, or any other exception code (516 for a rotated password) still raise `LogClusterNotReady`. https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=127912&sha=0ecac9e802642ebf566075f5145796c9db1fde22&name_0=PR&name_1=Build%20profile%20diff Related: #127912 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
|
Workflow [PR], commit [4e5129b] Summary: ✅
AI ReviewSummaryThe PR classifies readiness probes rejected with server load errors (202 or 241) as Final VerdictStatus: ✅ Approve. |
alexey-milovidov
left a comment
Member
Author
There was a problem hiding this comment.
We have to do it...
This was referenced Oct 28, 2026
Merged
1 task done
This was referenced Oct 28, 2026
Merged
This was referenced Oct 29, 2026
This was referenced Oct 29, 2026
groeneai
added a commit
to groeneai/ClickHouse
that referenced
this pull request
Oct 31, 2026
…answer Resolve the conflicts with 4e5129b (ClickHouse#128067) and 1087a07: - log_cluster.py: master now keeps the classified server answer of a failed readiness probe in `probe_error`. The transport exception of a probe that got no response at all is stored in that same attribute instead of a separate `_probe_error`; `select` only acts on a LogClusterUnavailable there, so the read path is unchanged. - build_profile_hook.py: keep master's artifact list (no symbols upload for objects-only builds) and add the LogClusterUnavailable warning branch after it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
qoega
pushed a commit
to qoega/ClickHouse
that referenced
this pull request
Nov 19, 2026
… logs cluster outage When the read-only sub-service of the CI logs cluster stops answering, every `SELECT 1` readiness probe of `LogCluster.select` raises `requests.exceptions.ReadTimeout`. `is_ready` turned that into a bare False without a `probe_error`, so `select` raised `LogClusterNotReady`, which `build_profile_diff_job.main` does not catch, and the check went red on unrelated PRs (8 of them on 2026-11-06 between 00:00Z and 02:52Z, e.g. job 127646247697 of ClickHouse#129611). The same outage hitting a POST already ends `LogClusterUnavailable` (ClickHouse#121048), and so does a probe the server rejects with 241 (ClickHouse#128067). A probe that raises `ReadTimeout` now records `LogClusterUnavailable` in `probe_error`, and the tail added by ClickHouse#128067 reports the read green as "the endpoint never became ready: the readiness probe timed out: ...". The last probe decides, as there. A `ReadTimeout` (requests 2.33.0, the CI pin) is raised only after the name resolved and a server accepted the connection: a stalled TLS handshake or a stalled answer. Connection refused, an unresolvable name, no SYN-ACK and a certificate mismatch raise `ConnectionError` (`ConnectTimeout` and `SSLError` are subclasses), and the server itself rejects a rotated password with 516. All of those, a missing secret and a gateway answer still end `LogClusterNotReady`, as ruled on ClickHouse#120288. This is the `SELECT 1`-timeout leg left open on ClickHouse#121048. Validated with a throwaway harness against master (real sockets, mocked transport and `main()` end to end); only the probe-timeout cases change. No test is committed for the CI scripts (ClickHouse#119766). Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: #120462
Related: #127912
Build profile diffhas been ERROR in practically every PR since 2026-10-26 18:19 UTC: 529 of the runs in CI DB fail withLogClusterNotReady: the endpoint never became ready(example: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=127912&sha=0ecac9e802642ebf566075f5145796c9db1fde22&name_0=PR&name_1=Build%20profile%20diff).The cause is the read-only sub-service of the CI logs cluster (
LogCluster.READONLY_URL). It answers every query, including theSELECT 1readiness probe, and even before authentication, with:The replica itself needs a restart. That is an infrastructure action outside this repository.
The job already treats Code 241 as an outage of the shared cluster:
selectclassifies it asLogClusterUnavailable, and the check completes green. Butis_readydiscarded the probe's answer (and logged onlyNo connection to LogCluster), so a read that never got past the probe ended asLogClusterNotReady, which fails closed.With this change,
is_readylogs the status and body of a failed probe. When the server itself answered (theX-ClickHouse-Exception-Codeheader is present), it keeps the answer's classification. If no POST was attempted and the last probe was rejected for the server's own load (202, 241),selectraisesLogClusterUnavailable. A missing secret, no connection, a gateway answer (all of which also describe a wrong or deleted endpoint in AWS SSM), or any other exception code (516 for a rotated password) still raiseLogClusterNotReady.Checked with a throwaway script: the live read-only endpoint now gives
LogClusterUnavailable. Mocked 202 givesLogClusterUnavailable. Mocked 516, header-less 502, and a connection error giveLogClusterNotReady.Changelog category (leave one):
🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/128067]
Version info
26.11.1.876-master(included in26.11and later)