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

nats-io / nats-server / 20687870425
85%

Build:
DEFAULT BRANCH: main
Ran 04 Jan 2026 06:00AM UTC
Jobs 1
Files 61
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 Jan 2026 12:14PM UTC coverage: 84.62% (+0.07%) from 84.551%
20687870425

push

github

web-flow
[FIXED] Filestore with encryption may erroneously reset meta.key (#7678)

If a server was hard killed and was not able to write the `index.db`
file, or it was corrupted, it would allow the stream to be loaded but
without initializing the keys used for encrypting the `meta.inf` and
`index.db` files. The next graceful shutdown would generate the
`index.db` file, but in so doing would regenerate the `meta.key` as
well. On startup the stream would not be able to load since the
`meta.key` was new, but the `meta.inf` was still encrypted with the old
key.

This PR proposes to simply always recover the keys if the key file
exists, and not rely on the `index.db` recovery path.

Signed-off-by: Maurice van Veen <github@mauricevanveen.com>

74114 of 87585 relevant lines covered (84.62%)

331779.08 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
87.23
0.0% src/github.com/nats-io/nats-server/server/monitor.go
2
92.27
-0.08% src/github.com/nats-io/nats-server/server/route.go
3
93.85
-0.06% src/github.com/nats-io/nats-server/server/client.go
3
79.35
0.0% src/github.com/nats-io/nats-server/server/opts.go
3
86.18
0.02% src/github.com/nats-io/nats-server/server/stream.go
4
93.84
0.12% src/github.com/nats-io/nats-server/server/gateway.go
5
82.32
0.1% src/github.com/nats-io/nats-server/server/filestore.go
7
89.71
-0.39% src/github.com/nats-io/nats-server/server/reload.go
9
73.68
0.22% src/github.com/nats-io/nats-server/server/jetstream_api.go
14
88.19
0.42% src/github.com/nats-io/nats-server/server/raft.go
15
88.53
-0.19% src/github.com/nats-io/nats-server/server/consumer.go
18
83.14
0.26% src/github.com/nats-io/nats-server/server/memstore.go
32
82.43
0.22% src/github.com/nats-io/nats-server/server/jetstream_cluster.go
Jobs
ID Job ID Ran Files Coverage
1 20687870425.1 04 Jan 2026 06:00AM UTC 61
84.62
GitHub Action Run
Source Files on build 20687870425
  • Tree
  • List 61
  • Changed 17
  • Source Changed 0
  • Coverage Changed 17
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #20687870425
  • ee1261ab on github
  • Prev Build on main (#20672454554)
  • Next Build on main (#20705553599)
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