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

nats-io / nats-server / 20705553599
85%

Build:
DEFAULT BRANCH: main
Ran 05 Jan 2026 06:04AM 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.609% (-0.01%) from 84.62%
20705553599

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>

74105 of 87585 relevant lines covered (84.61%)

361855.38 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
93.89
0.04% src/github.com/nats-io/nats-server/server/client.go
2
72.46
0.0% src/github.com/nats-io/nats-server/server/avl/seqset.go
2
94.0
0.16% src/github.com/nats-io/nats-server/server/gateway.go
3
88.79
0.26% src/github.com/nats-io/nats-server/server/consumer.go
3
86.44
-0.05% src/github.com/nats-io/nats-server/server/events.go
3
87.2
-0.04% src/github.com/nats-io/nats-server/server/monitor.go
3
79.45
0.1% src/github.com/nats-io/nats-server/server/opts.go
7
54.4
-0.47% src/github.com/nats-io/nats-server/server/jetstream_errors_generated.go
7
86.1
-0.09% src/github.com/nats-io/nats-server/server/stream.go
9
90.04
-0.28% src/github.com/nats-io/nats-server/server/server.go
14
82.91
0.59% src/github.com/nats-io/nats-server/server/filestore.go
17
73.49
-0.2% src/github.com/nats-io/nats-server/server/jetstream_api.go
22
82.94
-0.21% src/github.com/nats-io/nats-server/server/memstore.go
34
87.29
-0.9% src/github.com/nats-io/nats-server/server/raft.go
47
82.05
-0.39% src/github.com/nats-io/nats-server/server/jetstream_cluster.go
Jobs
ID Job ID Ran Files Coverage
1 20705553599.1 05 Jan 2026 06:04AM UTC 61
84.61
GitHub Action Run
Source Files on build 20705553599
  • 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 #20705553599
  • ee1261ab on github
  • Prev Build on main (#20687870425)
  • Next Build on main (#20738435698)
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