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

Logflare / logflare / eb9e1d34c0c45ef01c0e204fee72286696e541cc
81%

Build:
DEFAULT BRANCH: main
Ran 21 Jul 2026 09:09PM UTC
Jobs 1
Files 504
Run time 1min
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

21 Jul 2026 08:54PM UTC coverage: 80.947% (+0.002%) from 80.945%
eb9e1d34c0c45ef01c0e204fee72286696e541cc

push

github

web-flow
fix(clickhouse): trip circuit breaker immediately on TOO_MANY_PARTS (#3711)

When ClickHouse returns error 252 (TOO_MANY_PARTS), a partition already holds
more active parts than `parts_to_throw_insert`. Retrying inserts in that state
creates yet more parts and worsens the condition. Previously the HTTP client
retried the rejected request and the pipeline accumulated the final response
toward the breaker's 20-failures/30s threshold while requeued events kept
hammering the throttled cluster.

- Do not retry `TOO_MANY_PARTS` responses in the HTTP middleware.
- Add `CircuitBreaker.trip/1` to open the breaker immediately, bypassing the
  failure-count threshold; record the open reason in logs and telemetry.
- Route insert failures by shared ClickHouse error classification so code 252
  trips immediately while other errors retain failure counting.
- Cover the current generation-pointer pipeline and the no-HTTP-retry path.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

19 of 21 new or added lines in 3 files covered. (90.48%)

3 existing lines in 2 files now uncovered.

14177 of 17514 relevant lines covered (80.95%)

11524.8 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
90.48
-1.19% lib/logflare/backends/adaptor/clickhouse_adaptor/circuit_breaker.ex
1
93.38
0.15% lib/logflare/backends/adaptor/clickhouse_adaptor/ingester.ex

Coverage Regressions

Lines Coverage ∆ File
2
74.36
-5.13% lib/logflare/sources/counters.ex
1
93.31
-0.29% lib/logflare/backends.ex
Jobs
ID Job ID Ran Files Coverage
1 eb9e1d34c0c45ef01c0e204fee72286696e541cc.1 21 Jul 2026 09:09PM UTC 504
80.95
GitHub Action Run
Source Files on build eb9e1d34c0c45ef01c0e204fee72286696e541cc
  • Tree
  • List 504
  • Changed 7
  • Source Changed 0
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • eb9e1d34 on github
  • Prev Build on main (#62A9CB7F...)
  • Next Build on main (#6C237C46...)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc