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

nats-io / nats-server / 28352462621
83%

Build:
DEFAULT BRANCH: main
Ran 29 Jun 2026 07:20AM UTC
Jobs 1
Files 65
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

24 Jun 2026 02:23PM UTC coverage: 80.32% (+2.4%) from 77.963%
28352462621

push

github

web-flow
NRG: Fix uncommitted membership change handling across truncate/snapshot/apply (#8332)

When an uncommitted membership change (`EntryAddPeer`/`EntryRemovePeer`)
is truncated, the speculative peer-set change wasn't reverted. This PR
replaces `membChangeIndex` with a `membChange` struct that records the
peer and its previous state (if removing), which can be reverted on
truncate.

The follow-up commits drop the redundant known peer flag (`Known: false`
is still exposed in `Raftz` for an uncommitted peer add, but now based
on the `membChange` struct), and ensures only committed peer state ends
up in a snapshot.

75544 of 94054 relevant lines covered (80.32%)

636991.72 hits per line

Coverage Regressions

Lines Coverage ∆ File
67
78.45
-0.53% src/github.com/nats-io/nats-server/server/filestore.go
31
87.31
-0.35% src/github.com/nats-io/nats-server/server/consumer.go
28
79.99
0.13% src/github.com/nats-io/nats-server/server/raft.go
15
83.08
0.55% src/github.com/nats-io/nats-server/server/jetstream_cluster.go
9
74.61
0.21% src/github.com/nats-io/nats-server/server/jetstream_api.go
9
90.18
-0.18% src/github.com/nats-io/nats-server/server/leafnode.go
8
64.77
1.14% src/github.com/nats-io/nats-server/server/opts.go
7
86.16
0.1% src/github.com/nats-io/nats-server/server/stream.go
2
89.99
0.23% src/github.com/nats-io/nats-server/server/client.go
2
85.65
0.74% src/github.com/nats-io/nats-server/server/events.go
2
93.49
0.0% src/github.com/nats-io/nats-server/server/gateway.go
2
81.72
-0.19% src/github.com/nats-io/nats-server/server/parser.go
1
87.7
-0.41% src/github.com/nats-io/nats-server/server/util.go
Jobs
ID Job ID Ran Files Coverage
1 28352462621.1 29 Jun 2026 07:20AM UTC 65
80.32
GitHub Action Run
Source Files on build 28352462621
  • Tree
  • List 65
  • Changed 27
  • Source Changed 0
  • Coverage Changed 27
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #28352462621
  • bd058fac on github
  • Prev Build on main (#28313262680)
  • Next Build on main (#28423801384)
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