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

nats-io / nats-server / 20672454554
85%

Build:
DEFAULT BRANCH: main
Ran 03 Jan 2026 05:53AM 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.551% (-0.02%) from 84.568%
20672454554

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>

74054 of 87585 relevant lines covered (84.55%)

344387.48 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
82.89
0.05% src/github.com/nats-io/nats-server/server/memstore.go
2
72.46
-0.45% src/github.com/nats-io/nats-server/server/avl/seqset.go
2
87.23
0.18% src/github.com/nats-io/nats-server/server/monitor.go
2
86.18
0.0% src/github.com/nats-io/nats-server/server/util.go
3
93.72
-0.04% src/github.com/nats-io/nats-server/server/gateway.go
4
86.91
-0.12% src/github.com/nats-io/nats-server/server/accounts.go
4
86.17
0.0% src/github.com/nats-io/nats-server/server/stream.go
5
83.66
-0.24% src/github.com/nats-io/nats-server/server/jetstream.go
5
79.35
0.25% src/github.com/nats-io/nats-server/server/opts.go
7
73.46
0.14% src/github.com/nats-io/nats-server/server/jetstream_api.go
7
90.1
-0.09% src/github.com/nats-io/nats-server/server/server.go
18
87.77
-0.27% src/github.com/nats-io/nats-server/server/raft.go
66
82.21
-0.52% src/github.com/nats-io/nats-server/server/jetstream_cluster.go
78
82.23
-0.76% src/github.com/nats-io/nats-server/server/filestore.go
Jobs
ID Job ID Ran Files Coverage
1 20672454554.1 03 Jan 2026 05:53AM UTC 61
84.55
GitHub Action Run
Source Files on build 20672454554
  • Tree
  • List 61
  • Changed 20
  • Source Changed 0
  • Coverage Changed 20
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #20672454554
  • ee1261ab on github
  • Prev Build on main (#20651142877)
  • Next Build on main (#20687870425)
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