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

blevesearch / bleve / 26743194951
52%

Build:
DEFAULT BRANCH: master
Ran 01 Jun 2026 08:15AM UTC
Jobs 1
Files 429
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

01 Jun 2026 08:13AM UTC coverage: 52.294% (-0.01%) from 52.304%
26743194951

push

github

web-flow
Regression fix: Cache the vector index size (#2341)

- Currently we always compute the vector index size, irrespective of
whether this size was cached in the snapshot's `cachedMeta` or not. We
use the cached value when triggering the searcher start callback, but do
not check if it exists in the `cachedMeta` before calling the `Size()`
API.
- Due to recent changes, the output of the `Size()` API was fixed but at
the cost of additional computation to get a precise estimate. This
results in a perf regression due to the aforementioned point.
- Fix this issue by performing a `LoadOrStore` operation for the size
instead, where we perform a read to check if the size was cached, and
only compute it if not cached.
- Refactor `cachedMeta` to use a `sync.Map` instead of a map with a RW
mutex as its more suited for the `write-once-read-many` style of usage
which we use it for in this perspective.
- Fix the `TotKNNSearches` to be equal to the number of KNN searchers
created, which mirrors the FTS equivalent `TotTermSearchersFinished`,
currently this stat is equal to `N` * `X` where `N` is the number of
segments, refactor it to report just `X`.

6 of 15 new or added lines in 3 files covered. (40.0%)

12 existing lines in 3 files now uncovered.

19733 of 37735 relevant lines covered (52.29%)

0.59 hits per line

Uncovered Changes

Lines Coverage ∆ File
9
72.15
2.11% index/scorch/snapshot_segment.go

Coverage Regressions

Lines Coverage ∆ File
6
65.91
-0.48% index/scorch/persister.go
5
77.99
-0.63% index/scorch/merge.go
1
72.15
2.11% index/scorch/snapshot_segment.go
Jobs
ID Job ID Ran Files Coverage
1 26743194951.1 01 Jun 2026 08:15AM UTC 429
52.29
GitHub Action Run
Source Files on build 26743194951
  • Tree
  • List 429
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 8fa46fb0 on github
  • Prev Build on master (#26627414173)
  • Next Build on master (#26744921662)
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