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

nats-io / nats-server / 35957096014
78%

Build:
DEFAULT BRANCH: main
Ran 24 Sep 2026 05:52AM UTC
Jobs 1
Files 66
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

23 Sep 2026 03:59PM UTC coverage: 82.873% (+0.09%) from 82.783%
35957096014

push

github

web-flow
(2.16) NRG: Don't campaign if insufficient vote subject interest (#8638)

Previously, nodes that were isolated or partitioned could continuously
increase their term numbers to campaign, which would then end up forcing
a leadership election after the partition was healed. However we already
have enough information in the sublist to know whether or not there are
enough other nodes online to attempt a vote. If there aren't then we
should not campaign and instead wait to see if we hear from the existing
leader (if any) after the partition heals.

This has an explicit exception for where there is gateway interest. This
has two effects: the change doesn't apply to the `_meta_` group in a
supercluster, and it doesn't apply to streams/consumers that are
currently migrating across clusters.

72022 of 86906 relevant lines covered (82.87%)

348141.73 hits per line

Coverage Regressions

Lines Coverage ∆ File
938
78.14
-0.55% src/github.com/nats-io/nats-server/server/filestore.go
488
86.26
-0.14% src/github.com/nats-io/nats-server/server/stream.go
238
92.97
0.04% src/github.com/nats-io/nats-server/server/client.go
159
86.14
0.23% src/github.com/nats-io/nats-server/server/accounts.go
34
82.98
0.06% src/github.com/nats-io/nats-server/server/jetstream_cluster.go
24
85.4
2.64% src/github.com/nats-io/nats-server/server/raft.go
15
73.77
-0.05% src/github.com/nats-io/nats-server/server/jetstream_api.go
13
82.28
1.18% src/github.com/nats-io/nats-server/server/memstore.go
8
87.46
0.02% src/github.com/nats-io/nats-server/server/consumer.go
8
82.61
-1.6% src/github.com/nats-io/nats-server/server/raft_transport.go
5
86.58
0.0% src/github.com/nats-io/nats-server/server/monitor.go
5
77.7
-0.12% src/github.com/nats-io/nats-server/server/opts.go
4
90.16
4.92% src/github.com/nats-io/nats-server/server/feature_flags.go
3
85.38
0.05% src/github.com/nats-io/nats-server/server/events.go
Jobs
ID Job ID Ran Files Coverage
1 35957096014.1 24 Sep 2026 05:52AM UTC 66
82.87
GitHub Action Run
Source Files on build 35957096014
  • Tree
  • List 66
  • Changed 18
  • Source Changed 7
  • Coverage Changed 18
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #35957096014
  • 375492dc on github
  • Prev Build on main (#35819710081)
  • Next Build on main (#36095891863)
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