Repository navigation
Conversation
`get_profiles` ends with a liveness check of the left server and then of
the right one. Its only caller runs it as `( get_profiles ) || { restart &&
( get_profiles ) ; }`, so errexit is off inside it and its status is that of
the last command, the right check. A dead patched (right) server therefore
gets restarted and its system logs exported again from disk, but a dead
reference (left) server does not: its `left-*.tsv` dumps stay empty,
`analyze_queries` and `report` fail on them with
`CANNOT_EXTRACT_TABLE_STRUCTURE ... the file is empty`, the job reports
"Errors while building the report." instead of the run error, and
`Insert historical data` fails on the missing `all-query-metrics.tsv`.
Chain the two checks, so that a dead server on either side takes the
existing restart path. Seen on master b9e4bb8 (5/6) and 1ece88b (6/6) and
on one PR run (iceberg_s3, 3/3); in the same days four runs whose patched
server died got a correct report.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Collaborator
Author
Internal second-model review: adjudication log (click to expand)Pre-publication review by an independent model (engine: codex) plus my own review of head 87d7adf: no findings. |
Collaborator
Author
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-5:20261118-143100 |
Contributor
|
Workflow [PR], commit [87d7adf] Summary: ✅
AI ReviewSummary
Final VerdictStatus: ✅ Approve |
This was referenced Nov 18, 2026
Do not block startup on an unreachable
DataLakeCatalog catalog replayed from stored metadata
#132097
Merged
This branch has not been deployed
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: #129874
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
The performance comparison now restarts the reference server when it died during the tests, so its logs are exported and the report is built with the run error instead of failing with
Errors while building the report.Description
When the reference (left) server dies during the tests, the performance comparison does not restart it to export its system logs. Its
left-*.tsvdumps stay empty,analyze_queriesandreportfail on them (CANNOT_EXTRACT_TABLE_STRUCTURE ... the file is empty), the job reportsErrors while building the report.instead of1 errors, andInsert historical datafails on the missingall-query-metrics.tsv.get_profilesruns with errexit disabled, because its caller is( get_profiles ) || { restart && ( get_profiles ) ; }, so it returned the status of its last command, the check of the right server. A dead patched server is restarted and its logs are exported from disk; a dead reference server is not. The change chains the two checks, so either death takes the existing restart path.Seen on master (5/6 on b9e4bb85, 6/6 on 1ece88b8) and on one PR run. In the same days, four runs whose patched server died got a correct report.
Validation: I replayed the
get_profilesstage and everything after it on the CI artifact of master b9e4bb8 5/6, with real servers and one of them killed. Before the change, a dead left server gives the CI job's exact errors and no report. After it, the left server is restarted, the logs it wrote before the kill are exported,report/errors.logis empty, and the report reads1 errors, 1 fasterwith thejit_sort_decimalrun error. A dead right server and two live servers give the same result before and after.Workflow [PR]
Sync PR [sync-upstream/pr/132710]