Skip to content

Restart a Comunica endpoint after a crash; release v3.3.2 - #37

Merged
ecrum19 merged 2 commits into
mainfrom
fix/comunica-restart-after-crash
Nov 23, 2026
Merged

ecrum19 merged 2 commits into
mainfrom
fix/comunica-restart-after-crash

Conversation

@ecrum19

@ecrum19 ecrum19 commented Nov 23, 2026

Copy link
Copy Markdown
Owner

Problem

In the vcf-bench-3 large-graph retrieval run (HG005, 1,000,000 records, v3.3.1), the Comunica-COTTAS endpoint's Node worker crashed during q06: a V8 fatal error while freeing memory (Check failed: (result.ptr) != nullptr, SIGTRAP). q06 got IncompleteRead(70 bytes read), q07 Connection reset by peer, and q08–q13 Connection refused. One crash cost eight queries.

#35 (9a00466) restarts the endpoint after a timeout, which fixed the same knock-on failure for Comunica-HDT (q05 timed out, q06–q13 were refused). It does not restart after a crash.

Change

  • Restart after a lost endpoint. A query whose connection is refused or reset, or whose response is cut short, now fails with exit 1 and is not retried. The endpoint is restarted before the next query, as after a timeout, so the suite resumes after the crashed query. A query the endpoint answers with an error (HTTPError, or a URLError without a socket error) still does not restart it.
  • Keep the crash trace. The server log used to be truncated when the endpoint restarted, which would have erased the V8 stack trace. It is now appended to, with a === endpoint restarted after <query> === line before each restart.
  • docs/validation.md describes the behaviour.
  • Release v3.3.2 (scripts/release.py 3.3.2). Since v3.3.1 the only code changes are in src/validation/validation_runner.py (this PR and Record a Comunica timeout as a timeout, not a pass #35), so nothing changes what a conversion writes. The conda sha256 stays a placeholder until the tag exists.

Tests

Four new tests in test/test_query_timeout_marker_unit.py, built from the recorded failure:

  • a crash in q06 fails only q06, and q07 and q08 pass on a restarted endpoint;
  • a refused or reset connection also restarts the endpoint;
  • the crash trace survives the restart in the server log;
  • only a lost connection counts as a lost endpoint.

All four fail on the previous runner. Full unit suite: 1,227 tests OK (24 skipped). release.py --check-tag v3.3.2 passes.

After merge

  1. git tag -a v3.3.2 -m "VCF-RDFizer v3.3.2" on the merge commit, and push the tag.
  2. python3 scripts/release.py 3.3.2 --fetch-conda-sha256, then the conda-forge feedstock.
  3. Build and publish the ecrum19/vcf-rdfizer:3.3.2 image, and record its digest.

🤖 Generated with Claude Code

ecrum19 and others added 2 commits November 23, 2026 10:13
…uery

In the vcf-bench-3 scale run (HG005, 1M records, COTTAS) the endpoint's
Node worker died during q06 (V8 fatal error during garbage collection,
SIGTRAP). q06 got IncompleteRead(70 bytes read), q07 a reset connection,
and q08-q13 were refused: one crash cost eight queries. 9a00466 restarts
the endpoint only after a timeout.

- A query that loses the endpoint (refused or reset connection, or a
  response cut short) fails with exit 1 and is not retried; the endpoint
  is restarted before the next query, as after a timeout. A query the
  endpoint answers with an error still does not restart it.
- The server log is appended to across restarts, with a
  "=== endpoint restarted after <query> ===" line, so the crash's stack
  trace is kept instead of being truncated by the new endpoint.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A patch to semantic validation with the Comunica-backed engines (comunica,
hdt, cottas). A query that hits Comunica's own timeout is recorded as a
timeout, not a pass, and a timeout or a crashed endpoint is followed by an
endpoint restart, so the suite resumes with the next query instead of
losing every remaining one. Nothing changes what a v3.3.1 conversion
writes.

The conda sha256 stays a placeholder until the tag exists. Populate it with
`python3 scripts/release.py 3.3.2 --fetch-conda-sha256` after pushing v3.3.2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@ecrum19
ecrum19 merged commit f1942b3 into main Nov 23, 2026
24 checks passed
@ecrum19
ecrum19 deleted the fix/comunica-restart-after-crash branch November 23, 2026 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants