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

nats-io / nats-server / 29072708623
77%

Build:
DEFAULT BRANCH: main
Ran 10 Jul 2026 07:05AM UTC
Jobs 1
Files 67
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

09 Jul 2026 10:00AM UTC coverage: 81.792% (+5.3%) from 76.509%
29072708623

push

github

web-flow
(2.15) [FIXED] Consumer peer set remapping (#8335)

When a stream's replica count is updated, durable consumers are meant to
auto scale with them if `num_replicas: 0` was set in the consumer
config. However, the `isAutoScale` variable also included named
ephemeral consumers in this auto scaling, whereas they aren't supposed
to do that. They'd still converge to the allowed replica count based on
the consumer migration code, but this PR fixes that by not needlessly
scaling up these consumers for them to then be migrated back down, which
results in noticeable churn.

Additionally, this PR refactors the 3 consumer peer set remap paths into
a single reusable method. Marked as 2.15 for the time being, since I'll
want to get rid of the `sysRequest` separately, since it requires an
unsafe JS release and re-acquire.

77212 of 94401 relevant lines covered (81.79%)

457687.13 hits per line

Coverage Regressions

Lines Coverage ∆ File
980
83.15
-0.01% src/github.com/nats-io/nats-server/server/jetstream_cluster.go
48
79.34
-0.89% src/github.com/nats-io/nats-server/server/raft.go
14
65.08
2.0% src/github.com/nats-io/nats-server/server/opts.go
11
87.56
0.19% src/github.com/nats-io/nats-server/server/consumer.go
6
93.71
-0.12% src/github.com/nats-io/nats-server/server/gateway.go
6
75.06
0.92% src/github.com/nats-io/nats-server/server/jetstream_api.go
5
79.11
0.62% src/github.com/nats-io/nats-server/server/filestore.go
4
88.66
2.97% src/github.com/nats-io/nats-server/server/server.go
3
86.01
1.16% src/github.com/nats-io/nats-server/server/events.go
3
83.03
0.48% src/github.com/nats-io/nats-server/server/route.go
1
90.48
1.63% src/github.com/nats-io/nats-server/server/client.go
Jobs
ID Job ID Ran Files Coverage
1 29072708623.1 10 Jul 2026 07:05AM UTC 67
81.79
GitHub Action Run
Source Files on build 29072708623
  • Tree
  • List 67
  • Changed 30
  • Source Changed 1
  • Coverage Changed 30
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #29072708623
  • 1be49915 on github
  • Prev Build on main (#28997574390)
  • Next Build on main (#29141348328)
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