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

codenotary / immudb / 30523860198
85%

Build:
DEFAULT BRANCH: master
Ran 30 Jul 2026 07:51AM UTC
Jobs 1
Files 311
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

30 Jul 2026 07:43AM UTC coverage: 84.998% (+0.04%) from 84.96%
30523860198

push

gh-ci

vchaindz
fix(multiapp): serve ReadAt from a detached handle on cache eviction race

A foreground ReadAt cache-miss opens and caches a chunk via singleflight,
then re-acquires it from the cache to take its ref. A concurrent insert
(another foreground miss or a background prefetch) could evict or replace
that just-inserted entry in between, so the re-acquire returned
cache.ErrKeyNotFound and ReadAt failed with a spurious "key not found"
for a perfectly valid, readable offset.

This surfaced as flaky failures in
embedded/appendable/remoteapp.TestWritePastFirstChunk (~3/8 full-package
runs), introduced by the parallel-prefetch / range-fetch read path.

Fix: when the post-open re-acquire misses, the data is still readable, so
re-open a detached, self-closing handle (refs=1, evicted) for that single
read instead of erroring. The detached handle is released exactly once by
ReadAt, which performs the underlying Close, so there is no leak.

Adds TestMultiAppConcurrentReadEvictionRace, which deterministically
reproduces the race (small cache + prefetch + concurrent sequential
readers) — 10/10 "key not found" before the fix, 0/20 after, clean under
-race.

14 of 17 new or added lines in 2 files covered. (82.35%)

4 existing lines in 1 file now uncovered.

45251 of 53238 relevant lines covered (85.0%)

126357.56 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
86.97
1.83% embedded/appendable/multiapp/multi_app.go

Coverage Regressions

Lines Coverage ∆ File
4
83.79
0.0% embedded/store/immustore.go
Jobs
ID Job ID Ran Files Coverage
1 30523860198.1 30 Jul 2026 07:51AM UTC 311
85.0
Source Files on build 30523860198
  • Tree
  • List 311
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • f88bfb9b on github
  • Prev Build on master (#30469546308)
  • Next Build on master (#30524793846)
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