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

nats-io / nats-server / 14099044173
83%

Build:
DEFAULT BRANCH: main
Ran 27 Mar 2025 05:37AM UTC
Jobs 1
Files 57
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

26 Mar 2025 09:39PM UTC coverage: 85.54% (-0.05%) from 85.585%
14099044173

push

github

web-flow
[FIXED] JetStream clustering: observer incorrectly elected leader (#6730)

In some leafnodes setups with shared system account, the leafnode is
supposed to set itself as observer and step down so that only servers in
the hub cluster can be elected leaders. A test was flapping but it turns
out that there was a race condition that could cause a server that has
chosen to be in observer mode and step down to still end-up being
elected.

Added a dedicated test that was able to reproduce the issue more easily
than the leafnode test.

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>

69358 of 81083 relevant lines covered (85.54%)

500082.27 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
83.4
0.01% src/github.com/nats-io/nats-server/server/filestore.go
2
63.16
-10.53% src/github.com/nats-io/nats-server/server/jetstream_events.go
2
84.61
-0.07% src/github.com/nats-io/nats-server/server/monitor.go
3
90.55
-0.04% src/github.com/nats-io/nats-server/server/leafnode.go
4
94.27
-0.08% src/github.com/nats-io/nats-server/server/gateway.go
5
82.85
-0.13% src/github.com/nats-io/nats-server/server/jetstream.go
6
86.03
-0.29% src/github.com/nats-io/nats-server/server/events.go
7
73.32
-0.11% src/github.com/nats-io/nats-server/server/jetstream_api.go
7
84.63
-0.15% src/github.com/nats-io/nats-server/server/stream.go
9
86.46
-0.12% src/github.com/nats-io/nats-server/server/accounts.go
11
88.17
-0.09% src/github.com/nats-io/nats-server/server/consumer.go
14
84.29
0.47% src/github.com/nats-io/nats-server/server/memstore.go
18
84.91
-0.07% src/github.com/nats-io/nats-server/server/raft.go
484
81.67
-0.33% src/github.com/nats-io/nats-server/server/jetstream_cluster.go
Jobs
ID Job ID Ran Files Coverage
1 14099044173.1 27 Mar 2025 05:37AM UTC 57
85.54
GitHub Action Run
Source Files on build 14099044173
  • Tree
  • List 57
  • Changed 18
  • Source Changed 1
  • Coverage Changed 18
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #14099044173
  • 8f8fe68d on github
  • Prev Build on main (#14075681103)
  • Next Build on main (#14122149074)
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