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

nats-io / nats-server / 22050990587
84%

Build:
DEFAULT BRANCH: main
Ran 16 Feb 2026 06:20AM UTC
Jobs 1
Files 61
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

13 Feb 2026 05:53PM UTC coverage: 83.783% (-0.8%) from 84.63%
22050990587

push

github

web-flow
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 8MB
in flight at any time
2. We will now wait for a chunk to be filled (or EOF from the
snapshotting goroutine) before sending it rather than opportunistically
sending smaller chunks, providing more stable throughput on the wire
3. Increase the amount of time that we can wait for acks from 2 seconds
to 5 seconds, to better cope with slow connections
4. Give up early in ack reply subscription handlers if we detect that
the process has failed

Signed-off-by: Neil Twigg <neil@nats.io>

74025 of 88353 relevant lines covered (83.78%)

350202.47 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
80.68
-0.57% src/github.com/nats-io/nats-server/server/log.go
2
87.72
-0.16% src/github.com/nats-io/nats-server/server/auth.go
2
54.94
-0.13% src/github.com/nats-io/nats-server/server/jetstream_errors_generated.go
2
63.16
-10.53% src/github.com/nats-io/nats-server/server/jetstream_events.go
2
98.52
-1.48% src/github.com/nats-io/nats-server/server/jetstream_versioning.go
2
90.28
0.04% src/github.com/nats-io/nats-server/server/leafnode.go
2
87.16
0.04% src/github.com/nats-io/nats-server/server/monitor.go
2
86.03
0.09% src/github.com/nats-io/nats-server/server/stream.go
2
85.71
-0.46% src/github.com/nats-io/nats-server/server/util.go
3
86.26
0.0% src/github.com/nats-io/nats-server/server/events.go
3
82.73
0.03% src/github.com/nats-io/nats-server/server/filestore.go
5
73.71
-0.14% src/github.com/nats-io/nats-server/server/jetstream_api.go
8
93.68
-0.32% src/github.com/nats-io/nats-server/server/gateway.go
11
89.7
-0.22% src/github.com/nats-io/nats-server/server/server.go
13
88.49
0.42% src/github.com/nats-io/nats-server/server/consumer.go
18
82.65
0.3% src/github.com/nats-io/nats-server/server/memstore.go
21
82.59
-0.08% src/github.com/nats-io/nats-server/server/jetstream_cluster.go
23
93.56
-0.45% src/github.com/nats-io/nats-server/server/client.go
32
87.49
-0.71% src/github.com/nats-io/nats-server/server/raft.go
45
78.67
-0.67% src/github.com/nats-io/nats-server/server/opts.go
180
84.22
-7.17% src/github.com/nats-io/nats-server/server/route.go
497
61.78
-27.94% src/github.com/nats-io/nats-server/server/reload.go
Jobs
ID Job ID Ran Files Coverage
1 22050990587.1 16 Feb 2026 06:20AM UTC 61
83.78
GitHub Action Run
Source Files on build 22050990587
  • Tree
  • List 61
  • Changed 25
  • Source Changed 0
  • Coverage Changed 25
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #22050990587
  • 7c38a319 on github
  • Prev Build on main (#22030152308)
  • Next Build on main (#22086733047)
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