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

nats-io / nats-server / 21739445944
84%

Build:
DEFAULT BRANCH: main
Ran 06 Feb 2026 06:12AM 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

05 Feb 2026 04:15PM UTC coverage: 84.633% (-0.2%) from 84.791%
21739445944

push

github

web-flow
(2.14?) NRG: WAL must align with snapshot (#7620)

The Raft log can have three states:
- no snapshot, and an empty WAL
- no snapshot, and a WAL that starts from the very first entry with N
entries
- a snapshot, and the WAL continues onward from the snapshot with N
entries

We previously were not checking that these align, this would allow for
the snapshot to be non-existent but the WAL to be way ahead or there to
be a gap (somehow) between the snapshot and WAL itself. Both could lead
to data loss.
Normally this shouldn't be an issue though, as these will always align.
But, could potentially happen if a snapshot and the tail of the WAL were
durably written, but somehow the head of the WAL was not.

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

74540 of 88074 relevant lines covered (84.63%)

344585.42 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
90.96
-0.19% src/github.com/nats-io/nats-server/server/parser.go
2
90.25
0.15% src/github.com/nats-io/nats-server/server/server.go
3
86.91
-0.09% src/github.com/nats-io/nats-server/server/accounts.go
3
86.35
0.09% src/github.com/nats-io/nats-server/server/events.go
3
86.18
-1.38% src/github.com/nats-io/nats-server/server/util.go
5
83.82
-0.14% src/github.com/nats-io/nats-server/server/jetstream.go
6
87.02
-0.18% src/github.com/nats-io/nats-server/server/monitor.go
7
89.71
-0.39% src/github.com/nats-io/nats-server/server/reload.go
18
91.99
-0.64% src/github.com/nats-io/nats-server/server/route.go
27
84.21
-0.86% src/github.com/nats-io/nats-server/server/scheduler.go
131
83.38
0.31% src/github.com/nats-io/nats-server/server/memstore.go
165
73.69
-0.38% src/github.com/nats-io/nats-server/server/jetstream_api.go
279
88.32
-0.37% src/github.com/nats-io/nats-server/server/consumer.go
338
87.36
-0.15% src/github.com/nats-io/nats-server/server/raft.go
411
86.04
-0.15% src/github.com/nats-io/nats-server/server/stream.go
528
55.18
0.05% src/github.com/nats-io/nats-server/server/jetstream_errors_generated.go
623
82.64
-0.59% src/github.com/nats-io/nats-server/server/filestore.go
1215
82.39
-0.12% src/github.com/nats-io/nats-server/server/jetstream_cluster.go
Jobs
ID Job ID Ran Files Coverage
1 21739445944.1 06 Feb 2026 06:12AM UTC 61
84.63
GitHub Action Run
Source Files on build 21739445944
  • Tree
  • List 61
  • Changed 20
  • Source Changed 10
  • Coverage Changed 20
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #21739445944
  • 7671adf4 on github
  • Prev Build on main (#21699596382)
  • Next Build on main (#21774601319)
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