• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Logflare / logflare / 875092b0840ed6342af0a2570c4dfeea7f07894b-PR-3635
82%
main: 82%

Build:
Build:
LAST BUILD BRANCH: refactor/source-schema-from-flatmap
DEFAULT BRANCH: main
Ran 24 Jun 2026 04:24PM UTC
Jobs 1
Files 487
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

24 Jun 2026 04:10PM UTC coverage: 81.598% (+0.03%) from 81.568%
875092b0840ed6342af0a2570c4dfeea7f07894b-PR-3635

Pull #3635

github

djwhitt
fix(ingest queue): tolerate dead ETS table on add_to_table insert

A BufferProducer owns its per-queue :ets table (no heir), so the table is
reclaimed the moment the producer process exits — routine during
DynamicPipeline scale-down. add_to_table/3 resolves a tid via get_tid
(which liveness-checks the table) and then inserts, leaving a TOCTOU
window: the producer can die between the check and the :ets.insert,
raising ArgumentError that propagates up through dispatch_to_backends and
crashes the whole ingest batch.

Wrap the insert in a try/rescue. On ArgumentError, re-route the batch to
the supervisor-owned startup queue ({sid, bid, nil} /
{:consolidated, bid, nil}) — the same queue a clean producer exit drains
to, and which the scaler treats as a scale-up signal so a new producer
picks it up. Bottom out with {:error, :not_initialized} if the startup
queue is gone too, guarding against recursion. Emit the existing
:stale_table telemetry so the fallback is observable.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Pull Request #3635: fix(ingest queue): tolerate dead ETS table on add_to_table insert

6 of 6 new or added lines in 1 file covered. (100.0%)

2 existing lines in 2 files now uncovered.

13422 of 16449 relevant lines covered (81.6%)

5234.64 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
82.64
-0.83% lib/logflare/backends/adaptor/clickhouse_adaptor/connection_manager.ex
1
14.29
-7.14% lib/logflare/system_metrics/cluster.ex
Jobs
ID Job ID Ran Files Coverage
1 875092b0840ed6342af0a2570c4dfeea7f07894b-PR-3635.1 24 Jun 2026 04:24PM UTC 487
81.6
GitHub Action Run
Source Files on build 875092b0840ed6342af0a2570c4dfeea7f07894b-PR-3635
  • Tree
  • List 487
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #3635
  • PR Base - main (#B413063D...)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc