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

blevesearch / bleve / 35708798869
52%

Build:
DEFAULT BRANCH: master
Ran 22 Sep 2026 09:10AM UTC
Jobs 1
Files 441
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

22 Sep 2026 09:09AM UTC coverage: 51.688% (-0.05%) from 51.74%
35708798869

push

github

web-flow
MB-73970: Skip writing fileWriter trailer to index metadata when unset (#2400)

Save() and UpdateWriter() unconditionally appended the file callback id
plus its 4-byte length to index_meta.json, even when no callback was
registered - in that case Id() is "" and the append still writes a
4-byte zero-length trailer after the JSON body.

That trailer breaks any older bleve reader that predates this callback
mechanism: openIndexMeta() there does a single strict json.Unmarshal
with no fallback, so trailing bytes after the closing '}' make it fail
with ErrorIndexMetaCorrupt - even though the index itself is fine and
never used a callback. This surfaced as a hard failure when a pindex's
on-disk files were copied (e.g. via cbgt's file-transfer-based
rebalance) from a node running this bleve version to a node running an
older one.

Only emit the trailer when fileWriter.Id() is non-empty, i.e. when a
callback is actually in use, keeping the no-callback case byte-for-byte
identical to the pre-existing index_meta.json format.

1 of 18 new or added lines in 1 file covered. (5.56%)

16 existing lines in 3 files now uncovered.

20145 of 38974 relevant lines covered (51.69%)

0.58 hits per line

Uncovered Changes

Lines Coverage ∆ File
17
45.0
-6.12% index_meta.go

Coverage Regressions

Lines Coverage ∆ File
7
45.0
-6.12% index_meta.go
7
80.08
-1.34% index/scorch/merge.go
2
72.33
-0.79% index/scorch/snapshot_segment.go
Jobs
ID Job ID Ran Files Coverage
1 35708798869.1 22 Sep 2026 09:10AM UTC 441
51.69
GitHub Action Run
Source Files on build 35708798869
  • Tree
  • List 441
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 32356170 on github
  • Prev Build on master (#33407726069)
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