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

blevesearch / bleve / 35707736770
52%
master: 52%

Build:
Build:
LAST BUILD BRANCH: fix/index-meta-empty-callback-id-trailer
DEFAULT BRANCH: master
Ran 22 Sep 2026 08:59AM 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 08:55AM UTC coverage: 51.693% (-0.05%) from 51.74%
35707736770

Pull #2400

github

capemox
index_meta: skip file-callback-id trailer when no callback is registered

Save() and UpdateWriter() unconditionally appended the file callback id
plus its 4-byte length to index_meta.json, even when no callback (e.g.
encryption/compression hook) 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.
Pull Request #2400: MB-73970: Skip writing fileWriter trailer to index metadata when unset

1 of 9 new or added lines in 1 file covered. (11.11%)

39 existing lines in 3 files now uncovered.

20147 of 38974 relevant lines covered (51.69%)

0.58 hits per line

Uncovered Changes

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

Coverage Regressions

Lines Coverage ∆ File
31
45.0
-6.12% index_meta.go
6
65.17
-0.5% index/scorch/persister.go
2
72.33
-0.79% index/scorch/snapshot_segment.go
Jobs
ID Job ID Ran Files Coverage
1 35707736770.1 22 Sep 2026 08:59AM UTC 441
51.69
GitHub Action Run
Source Files on build 35707736770
  • Tree
  • List 441
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #2400
  • PR Base - 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