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

nats-io / nats-server / 15672081402
83%

Build:
DEFAULT BRANCH: main
Ran 16 Jun 2025 05:45AM UTC
Jobs 1
Files 58
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

15 Jun 2025 11:16PM UTC coverage: 85.649% (+0.05%) from 85.601%
15672081402

push

github

web-flow
[IMPROVED] Speed up a mirror or source consumer's resync across leafnode connections. (#6981)

When a consumer for a source or a mirror is failing to be created, we
backoff creation attempts.
If the failures were due to a downed leafnode, meaning the mirror or
source is across a leafnode connection, the resync could take more time
then desired after the leafnode reconnects.

This improves resync time by hooking into the leafnode's reconnect logic
(either via connect or async info).
Once we detect the reconnect, we search for streams that are leaders and
are mirrors or sources, and do not have an active sync consumer.

If we detect this we will reset the consumer backoff and retry with just
a small jitter backoff.

Signed-off-by: Derek Collison <derek@nats.io>

70051 of 81788 relevant lines covered (85.65%)

366685.55 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
95.21
0.09% src/github.com/nats-io/nats-server/server/client.go
2
72.46
-0.45% src/github.com/nats-io/nats-server/server/avl/seqset.go
3
89.37
0.3% src/github.com/nats-io/nats-server/server/mqtt.go
5
85.34
0.23% src/github.com/nats-io/nats-server/server/raft.go
6
81.23
0.0% src/github.com/nats-io/nats-server/server/opts.go
8
87.77
0.0% src/github.com/nats-io/nats-server/server/consumer.go
8
85.91
-0.24% src/github.com/nats-io/nats-server/server/events.go
9
86.55
-0.18% src/github.com/nats-io/nats-server/server/accounts.go
9
84.08
0.71% src/github.com/nats-io/nats-server/server/filestore.go
10
73.21
-0.28% src/github.com/nats-io/nats-server/server/jetstream_api.go
12
93.47
-0.48% src/github.com/nats-io/nats-server/server/route.go
22
85.65
-0.45% src/github.com/nats-io/nats-server/server/memstore.go
52
80.74
-0.38% src/github.com/nats-io/nats-server/server/jetstream_cluster.go
123
90.81
0.16% src/github.com/nats-io/nats-server/server/leafnode.go
599
85.57
0.35% src/github.com/nats-io/nats-server/server/stream.go
Jobs
ID Job ID Ran Files Coverage
1 15672081402.1 16 Jun 2025 05:45AM UTC 58
85.65
GitHub Action Run
Source Files on build 15672081402
  • Tree
  • List 58
  • Changed 18
  • Source Changed 2
  • Coverage Changed 18
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #15672081402
  • 0e2e28e3 on github
  • Prev Build on main (#15648532443)
  • Next Build on main (#15698395274)
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