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

freeeve / tinykvs / 21180415886
81%

Build:
DEFAULT BRANCH: main
Ran 20 Jan 2026 05:09PM UTC
Jobs 1
Files 27
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

20 Jan 2026 05:06PM UTC coverage: 70.81% (-0.1%) from 70.948%
21180415886

push

github

freeeve
fix(compaction): add SSTable reference counting to prevent use-after-close

Add reference counting to SSTables to prevent concurrent readers from
encountering "file already closed" errors during compaction.

Changes:
- Add refs and markedForRemoval fields to SSTable struct
- Add IncRef/DecRef/MarkForRemoval methods for safe lifecycle management
- Update reader.Get to hold refs while accessing SSTables
- Update ScanPrefix/ScanRange scanners to track and release refs
- Replace direct Close+Remove with MarkForRemoval in compaction

Fixes TestConcurrentReadsDuringCompaction race condition.

50 of 53 new or added lines in 3 files covered. (94.34%)

760 existing lines in 12 files now uncovered.

5594 of 7900 relevant lines covered (70.81%)

405174.35 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
87.31
compaction.go
2
80.58
0.49% sstable.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
92.93
2.3% cmd/tinykvs/shell_sort.go
8
77.33
9.77% query.go
19
63.77
-3.47% batch_parallel.go
27
88.56
-0.23% writer.go
32
88.37
-0.48% types.go
35
79.46
-0.44% batch.go
64
77.78
4.02% store.go
75
57.79
-16.89% cmd/tinykvs/shell.go
111
2.75
0.44% cmd/tinykvs/main.go
117
69.4
-0.24% cmd/tinykvs/shell_select.go
135
85.34
7.67% reader.go
136
59.72
-15.88% convenience.go
Jobs
ID Job ID Ran Files Coverage
1 21180415886.1 20 Jan 2026 05:09PM UTC 27
70.81
GitHub Action Run
Source Files on build 21180415886
  • Tree
  • List 27
  • Changed 17
  • Source Changed 17
  • Coverage Changed 16
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #21180415886
  • 8e256388 on github
  • Prev Build on main (#21101898546)
  • Next Build on main (#21180974037)
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