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

nats-io / nats-server
84%

Build:
DEFAULT BRANCH: main
Repo Added 06 May 2019 06:55PM UTC
Files 61
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

LAST BUILD ON BRANCH main
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • change_nightly_from_main_to_dev
  • fix_code_coverage
  • fix_flappers_update_cov_go
  • main

19 Feb 2026 03:38PM UTC coverage: 83.794% (-0.2%) from 84.003%
22212128311

push

github

web-flow
NRG: Fix cluster size drop to 1 on replaying EntryAddPeer after restart (#7850)

On restart, replaying EntryAddPeer could incorrectly leave a raft node
at cluster size 1 instead of restoring the expected size and quorum from
persisted state.
This bug could lead to the following scenario: a node in a 3 node
cluster could restart, reset set cluster size to 1. If the node did not
receive any message from other nodes, it could campaign to become
leader. Being in a single node cluster, it would win the election.
Resulting in the original cluster splitting into two clusters (or two
leaders at the same time).
Specifically, if an EntryAddPeer was replayed on from the log, it would
overwrite the cluster size and quorum to 1. The peer set is now restored
before the log is replayed, and it is taken from the snapshot (if no
snapshot is present then we fallback to peer.idx).
If a log entry that changes membership is replayed, it will now update
the cluster and quorum size correctly.

Signed-off-by: Daniele Sciascia <daniele@nats.io>

74376 of 88761 relevant lines covered (83.79%)

353483.46 hits per line

Relevant lines Covered
Build:
Build:
88761 RELEVANT LINES 74376 COVERED LINES
353483.46 HITS PER LINE
Source Files on main
  • Tree
  • List 61
  • Changed 21
  • Source Changed 4
  • Coverage Changed 21
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
22212128311 main NRG: Fix cluster size drop to 1 on replaying EntryAddPeer after restart (#7850) On restart, replaying EntryAddPeer could incorrectly leave a raft node at cluster size 1 instead of restoring the expected size and quorum from persisted state. This ... push 20 Feb 2026 06:12AM UTC web-flow github
83.79
22169421386 main [IMPROVED] Asynchronous meta stream/consumer assignments snapshots (#7827) A NATS system with many 100s of thousands up to millions of stream/consumer assets spread over many nodes will notice occasional freezes of the JetStream API while meta sn... push 19 Feb 2026 06:16AM UTC web-flow github
84.0
22127492550 main (2.12) [IMPROVED] Align cleanup with checkForOrphans (#7826) Follow-up of https://github.com/nats-io/nats-server/pull/7824. Aligning and simplifying the cleanup of orphaned streams and consumers with `checkForOrphans`. Signed-off-by: Maurice van... push 18 Feb 2026 06:17AM UTC web-flow github
84.71
22086733047 main [FIXED] Recreate monitor quit channel (#7837) Recreate the monitor quit channel (`mset.mqch/o.mqch`) when retrieving it. If the previous `monitorStream/Consumer` was quit, but we restarted it under a different Raft group, we need to recreate the ... push 17 Feb 2026 06:16AM UTC web-flow github
83.81
22050990587 main Improved flow control for stream snapshots (#7828) This PR improves the flow control for stream snapshots: 1. We will now keep a window of slots for in-flight chunks, rather than counting totals and potentially dropping acks, but still targeting... push 16 Feb 2026 06:20AM UTC web-flow github
83.78
22030152308 main Improved flow control for stream snapshots (#7828) This PR improves the flow control for stream snapshots: 1. We will now keep a window of slots for in-flight chunks, rather than counting totals and potentially dropping acks, but still targeting... push 15 Feb 2026 06:15AM UTC web-flow github
84.63
22011611671 main Improved flow control for stream snapshots (#7828) This PR improves the flow control for stream snapshots: 1. We will now keep a window of slots for in-flight chunks, rather than counting totals and potentially dropping acks, but still targeting... push 14 Feb 2026 06:07AM UTC web-flow github
84.7
21975509826 main (2.14) Reset consumer to new starting sequence (#7489) Currently we don't offer durable ordered consumption of a stream. We do support ephemeral ordered push consumers, but those can be problematic when using those on WQ/Interest streams as as so... push 13 Feb 2026 06:16AM UTC web-flow github
84.66
21934476537 main Update to Go 1.26.0/1.25.7 (#7818) This also removes `automaxprocs` as this is [default behaviour](https://go.dev/doc/go1.25#container-aware-gomaxprocs) in Go 1.25. Signed-off-by: Neil Twigg <neil@nats.io> push 12 Feb 2026 06:19AM UTC web-flow github
84.67
21893612374 main NRG: Improve membership changes checks & leader is caught-up for forwarded proposals (#7809) This PR improves a couple areas in our Raft logic: - Instead of scanning the log using `logContainsUncommittedMembershipChange` after we've won the leade... push 11 Feb 2026 06:20AM UTC web-flow github
84.69
See All Builds (6052)
  • Repo on GitHub
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