Repository navigation
Conversation
…mory like a read While the read-only CI logs endpoint is over its total memory limit, the server rejects every HTTP query at the early memory check that runs before authentication (`checkUserNameNotEmptyAndServerHasEnoughMemory` in `authenticateUserByHTTP.cpp`), `SELECT 1` included: 500 with `X-ClickHouse-Exception-Code: 241`. `select` already reads that answer on a POST as `LogClusterUnavailable`, but when every readiness probe of a run got it, the run never reached a POST and ended `LogClusterNotReady`, so one server state gave opposite verdicts depending on which request caught it (2026-10-15 13:32-14:14Z: 9 PRs red, one green by 241 in the same minute). `is_ready` stays a bool. It now keeps its last non-2xx answer and logs it through `_classify` instead of "No connection to LogCluster", which hid the status and code. `select` ends `LogClusterUnavailable` only when every failed probe was such a load answer (202 or 241 with the exception header); any other failed probe (no secret, a raising readiness check, a transport error, a headerless gateway answer, any other code, `1 != 1`) is sticky and keeps `LogClusterNotReady`, so the causes the ruling on ClickHouse#120288 keeps red stay red. Related: ClickHouse#120462 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…read saw an outage `select` consulted the probes only when no attempt reached its POST. Once a read had got a load answer (241) or raised at the transport level, a later or earlier probe that the server rejected for another reason (516 for a rotated password, any other code, a non-numeric code header) was ignored, and the run ended `LogClusterUnavailable`, which the build profile diff reports green. Each failed probe that the server answered with a non-load code is now kept, and when a read was attempted that verdict is raised after the loop instead of the read's outage. A probe that got no server answer after a read (transport error, headerless gateway answer, missing secret) still reads as an outage, and a run that never reached a read is classified exactly as before. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Internal second-model review: adjudication log (click to expand)Pre-publication review by an independent model (engine: codex; 2 rounds, 2 findings) plus my own review (two rounds, nits only).
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-8:20261016-035600 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-40:20261016-034000 |
|
cc @alexey-milovidov @leshikus, could you review this? When every readiness probe gets the memory-limit rejection ( |
|
Workflow [PR], commit [46d2cbe] Summary: ✅
AI ReviewSummaryReviewed PR #126200 at Final VerdictStatus: ✅ Approve. |
Build profile diff (arm_release)Commit See the job log for details. |
CI finish ledger - e5f34ddEvery failure below has an owner: a fixing PR (mine or external), or a full-effort fix task
Session id: cron:our-pr-ci-monitor:20261016-103005 |
|
Fixing PR for the It is not RSS drift: the log stops at 53.1 GiB RSS (container limit 53.65 GiB) while a failed secondary of |
Related: #120462
Related: #121048
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Not required: CI-only change.
Description
Build profile diffwent red on 9 pull requests on 2026-10-15, 13:32-14:14 UTC, withLogClusterNotReady: the endpoint never became ready, for example https://github.com/ClickHouse/ClickHouse/actions/runs/38733099660/job/116464087359.The read-only CI logs endpoint was over its total memory limit, so the server rejected every HTTP query,
SELECT 1included, at the early memory check before authentication:500withX-ClickHouse-Exception-Code: 241. On a POST,selectalready reports that answer asLogClusterUnavailable(green, nothing compared). A run whose 8 readiness probes all got it never posted and endedLogClusterNotReady(red), so one server state gave both colours in the same minute. The probe logged onlyNo connection to LogCluster, as in #120462, so those runs got an answer too.is_readystays a bool, but remembers and logs its last non-2xx answer. A run whose probes never passed endsLogClusterUnavailableonly when every probe got a load answer (202or241with the exception header); any other failed probe keepsLogClusterNotReady, and a later probe never overwrites it: a missing secret, a transport error, a headerless gateway answer, an authentication failure, any other code. A probe the server rejected for anything but its load also keeps a run red after a read saw an outage. #121048 (comment) offered a follow-up for theSELECT 1-timeout leg; the leg that mattered in practice is the load answer. As the memory check precedes authentication, a rotated password stays hidden only while every probe of a run lands in a memory window.Validated locally (no test for CI infrastructure): a stub server ran 28 probe/read scenarios against this file and master's, all as expected over three byte-identical runs. A real
26.10.1.1server withmax_server_memory_usagebelow its idle RSS answeredSELECT 1with500+241: master'sselectendedLogClusterNotReady, this oneLogClusterUnavailable; a wrong password at a normal limit still endsLogClusterNotReady.Workflow [PR]
Sync PR [sync-upstream/pr/126200]