Repository navigation
Restart the azurite emulator when it crashes, and report process crashes from dmesg - #119808
Merged
Merged
Conversation
`Integration tests (amd_msan, 8/8)` in `MasterCI` for `11f0dc83` failed 13
`test_storage_iceberg_with_spark` Azure tests in a row, all with
`Connection refused` on the blob port, or `Timeout: connect timed out` when
the connection came from the server instead of the harness.
The emulator had died. The host's dmesg records
traps: node[97065] general protection fault ip:7fa9ef269c92 sp:7fa9ed698850 \
error:0 in ld-musl-x86_64.so.1[7fa9ef238000+57000]
at 05:18:33, and the Docker daemon's log shows the container's task exiting at
the same instant, followed by the port mapping's `iptables` rules being
deleted. `clickhouse/azure-storage-azurite:3.35.0` is a mirror of
`mcr.microsoft.com/azure-storage/azurite:3.35.0`, which is `node:22-alpine` -
Node on musl, a combination that aborts like this now and then.
With no restart policy the container stayed exited for the next 21 minutes,
until the session-scoped cluster was torn down and started again, so every
Azure test scheduled onto that worker in between failed the same way. A
restart keeps the crash to the test that hit it: the blob data and the
emulator's metadata live in the container's own filesystem, which a restart
of the same container preserves, and Docker re-programs the port mapping.
This matches every other support service in `compose/` - `mysql`, `mongo`,
`postgres`, `keeper`, `redis`, `hdfs`, `hive`, `nginx` and `coredns` all set
it already.
`wait_azurite_to_start` polls the blob endpoint for 180 seconds and never
looks at the container, so a crash loop at startup times out exactly as it
did before.
https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?REF=master&sha=11f0dc839f845a3b866eddfd16360061f8bdeb2c&name_0=MasterCI&name_1=Integration%20tests%20%28amd_msan%2C%208%2F8%29
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Diagnosing the `azurite` crash above meant downloading the job's `dmesg` artifact and reading it by hand, because nothing in the report mentioned a crash at all - the harness only sees `Connection refused`, and the support container's own log had already been overwritten by the next cluster started in the same instance directory. Print the kernel's process-fault lines next to the memory-kill lines that `print_oom_lines` already prints, on the same two triggers (a failing run and a hard timeout) and with the same caveats about what a buffer that was not cleared, or does not span the run, can establish. Printed rather than turned into a result row, and not filtered by which process faulted: some tests kill a server on purpose, and the kernel names the process but not the container, so no row here could be attributed to the run's outcome. `show_signal:` is matched along with the fault lines themselves because it carries printk's rate-limit count - the report for `11f0dc83` says `show_signal: 28 callbacks suppressed`, so silence under it is not evidence that nothing else crashed. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Contributor
|
Workflow [PR], commit [d048373] Summary: ✅ AI ReviewSummaryAdds Final VerdictStatus: ✅ Approve LLVM Coverage ReportMeasured on commit d048373.
Changed lines: Uncovered code analysis did not run: No coverable C/C++ source files changed (contrib/ is excluded from coverage). Newly covered: +144 lines in 45 files (-149 lines lost coverage) · Details |
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.
Integration tests (amd_msan, 8/8)inMasterCIfor11f0dc83failed 13test_storage_iceberg_with_sparkAzure tests in a row, all of them withConnection refusedon the blob port, orTimeout: connect timed outwhen the connection came from the server instead of the harness:https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?REF=master&sha=11f0dc839f845a3b866eddfd16360061f8bdeb2c&name_0=MasterCI&name_1=Integration%20tests%20%28amd_msan%2C%208%2F8%29
The Azure Blob Storage emulator had died. The job's dmesg records
at 05:18:33, and the Docker daemon's log shows the container's task exiting in the same second and its port mapping's
iptablesrules being deleted 18 ms later.clickhouse/azure-storage-azurite:3.35.0is a mirror ofmcr.microsoft.com/azure-storage/azurite:3.35.0, which is builtFROM node:22-alpine— Node on musl, a combination that aborts like this now and then.The service had no restart policy, so the container stayed exited for the next 21 minutes, until the session-scoped cluster was torn down and started again. Every Azure test scheduled onto that worker in between failed the same way.
Two changes:
azurite1getsrestart: always, which keeps a crash to the test that hit it. The blob data and the emulator's metadata live in the container's own filesystem (the command drops the image's-l /data, so the location is the/opt/azuriteworkdir), which a restart of the same container preserves, and Docker re-programs the port mapping. This is what every other support service incompose/already does —mysql,mongo,postgres,keeper,redis,hdfs,hive,nginx,corednsand the rest.wait_azurite_to_startpolls the blob endpoint for 180 seconds and never looks at the container, so a crash loop at startup times out exactly as it did before.print_oom_linesalready prints, on the same two triggers and with the same caveats. Nothing in the report mentioned a crash at all: the harness sees onlyConnection refused, and the emulator's own log had already been overwritten by the next cluster started in the same instance directory, so diagnosing this meant downloading the dmesg artifact and reading it by hand. The lines are printed rather than turned into a result row, and are not filtered by which process faulted — some tests kill a server on purpose, and the kernel names the process but not the container, so no row here could be attributed to the run's outcome.show_signal:is matched along with the faults because it carries printk's rate-limit count; for this run it says28 callbacks suppressed, so silence under it is not evidence that nothing else crashed.Verified locally by killing the emulator's process from the host (an abnormal exit, not a Docker stop): the port stops listening with
Connection refused, Docker restarts the container, the port mapping comes back and a blob uploaded before the kill is still readable afterwards. The new dmesg scan, run against this job's actualdmesg-follow.log, prints both the fault line and the rate-limit line above.The emulator crash itself is not fixed here — it is in a third-party image — and had no tracking issue, so one is filed.
Related: #119807
Changelog category (leave one):
🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/119808]
Version info
26.9.1.1423(included in26.9and later)