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

nats-io / nats-server / 23179452657
81%

Build:
DEFAULT BRANCH: main
Ran 17 Mar 2026 06:15AM UTC
Jobs 1
Files 62
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

16 Mar 2026 04:22PM UTC coverage: 83.103% (-0.06%) from 83.161%
23179452657

push

github

web-flow
NRG: Don't commit previous terms (#7955)

A new leader writes an entry into the log and is supposed to determine
quorum and the commits based on that. However, it would also up the
commit based on entries from previous terms, which is described to be
incorrect in the Raft paper (5.4.2 Committing entries from previous
terms). This PR corrects this by only allowing entries from our current
term to up the commit. This protects against rare but not impossible
desync conditions.

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

75365 of 90689 relevant lines covered (83.1%)

347795.49 hits per line

Coverage Regressions

Lines Coverage ∆ File
686
82.09
-0.01% src/github.com/nats-io/nats-server/server/jetstream_cluster.go
475
74.21
0.07% src/github.com/nats-io/nats-server/server/jetstream_api.go
173
93.68
0.1% src/github.com/nats-io/nats-server/server/client.go
105
86.77
0.32% src/github.com/nats-io/nats-server/server/raft.go
65
78.09
-0.59% src/github.com/nats-io/nats-server/server/filestore.go
15
87.7
0.02% src/github.com/nats-io/nats-server/server/consumer.go
13
78.27
-0.08% src/github.com/nats-io/nats-server/server/opts.go
10
85.83
-0.16% src/github.com/nats-io/nats-server/server/stream.go
5
83.99
-0.24% src/github.com/nats-io/nats-server/server/jetstream.go
4
86.16
-0.19% src/github.com/nats-io/nats-server/server/events.go
4
94.0
0.08% src/github.com/nats-io/nats-server/server/gateway.go
3
84.16
-0.04% src/github.com/nats-io/nats-server/server/route.go
2
56.14
0.32% src/github.com/nats-io/nats-server/server/jetstream_errors_generated.go
2
63.16
-10.53% src/github.com/nats-io/nats-server/server/jetstream_events.go
2
90.96
-0.19% src/github.com/nats-io/nats-server/server/parser.go
2
89.85
-0.06% src/github.com/nats-io/nats-server/server/server.go
1
85.25
-0.46% src/github.com/nats-io/nats-server/server/util.go
Jobs
ID Job ID Ran Files Coverage
1 23179452657.1 17 Mar 2026 06:15AM UTC 62
83.1
GitHub Action Run
Source Files on build 23179452657
  • Tree
  • List 62
  • Changed 20
  • Source Changed 4
  • Coverage Changed 20
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23179452657
  • 753c5f83 on github
  • Prev Build on main (#23129208850)
  • Next Build on main (#23230181733)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc