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

nats-io / nats-server / 20651142877
85%

Build:
DEFAULT BRANCH: main
Ran 02 Jan 2026 05:58AM 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.568% (-0.06%) from 84.632%
20651142877

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>

74069 of 87585 relevant lines covered (84.57%)

335170.79 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
63.16
-10.53% src/github.com/nats-io/nats-server/server/jetstream_events.go
2
87.61
-0.16% src/github.com/nats-io/nats-server/server/sublist.go
2
86.18
-0.92% src/github.com/nats-io/nats-server/server/util.go
3
87.88
-0.24% src/github.com/nats-io/nats-server/server/auth.go
3
87.06
-0.04% src/github.com/nats-io/nats-server/server/monitor.go
3
86.17
0.02% src/github.com/nats-io/nats-server/server/stream.go
4
93.83
-0.02% src/github.com/nats-io/nats-server/server/client.go
4
93.76
-0.16% src/github.com/nats-io/nats-server/server/gateway.go
4
90.19
0.09% src/github.com/nats-io/nats-server/server/server.go
8
86.26
-0.23% src/github.com/nats-io/nats-server/server/events.go
8
88.04
0.33% src/github.com/nats-io/nats-server/server/raft.go
9
87.03
-0.15% src/github.com/nats-io/nats-server/server/accounts.go
16
73.32
-0.28% src/github.com/nats-io/nats-server/server/jetstream_api.go
20
79.09
-0.36% src/github.com/nats-io/nats-server/server/opts.go
20
88.98
-1.12% src/github.com/nats-io/nats-server/server/reload.go
23
82.83
-0.16% src/github.com/nats-io/nats-server/server/memstore.go
39
88.34
-0.38% src/github.com/nats-io/nats-server/server/consumer.go
40
82.73
0.31% src/github.com/nats-io/nats-server/server/jetstream_cluster.go
60
90.31
-2.39% src/github.com/nats-io/nats-server/server/route.go
143
83.89
-0.1% src/github.com/nats-io/nats-server/server/jetstream.go
1159
82.99
0.63% src/github.com/nats-io/nats-server/server/filestore.go
Jobs
ID Job ID Ran Files Coverage
1 20651142877.1 02 Jan 2026 05:58AM UTC 61
84.57
GitHub Action Run
Source Files on build 20651142877
  • Tree
  • List 61
  • Changed 23
  • Source Changed 4
  • Coverage Changed 22
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #20651142877
  • ee1261ab on github
  • Prev Build on main (#20632831323)
  • Next Build on main (#20672454554)
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