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

nats-io / nats-server / 21327191762
85%

Build:
DEFAULT BRANCH: main
Ran 25 Jan 2026 06:02AM 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

23 Jan 2026 03:26PM UTC coverage: 84.723% (+0.2%) from 84.562%
21327191762

push

github

web-flow
Perform `_writeFullState` under read lock only (#7759)

Previously the `_writeFullState` calls would take the store write lock,
but if the store is very read-heavy with e.g. lots of consumers, this
creates a significant contention on those trying to acquire `RLock` and
results in pauses that may cause caches to expire. Therefore:

- A new `wfsmu` is added to allow only one of these calls to run at a
time — it protects the average delete map length field, and also means
that we can't have two `_writeFullState` goroutines writing to the same
file at the same time;
- The `fs.mu` is now `RLock` instead of `Lock`

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

74404 of 87820 relevant lines covered (84.72%)

326470.47 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
82.87
0.25% src/github.com/nats-io/nats-server/server/memstore.go
2
86.16
-0.05% src/github.com/nats-io/nats-server/server/events.go
2
93.66
3.15% src/github.com/nats-io/nats-server/server/route.go
3
94.35
0.59% src/github.com/nats-io/nats-server/server/client.go
3
87.11
-0.11% src/github.com/nats-io/nats-server/server/monitor.go
4
93.76
-0.16% src/github.com/nats-io/nats-server/server/gateway.go
4
73.71
-0.03% src/github.com/nats-io/nats-server/server/jetstream_api.go
4
83.63
-0.19% src/github.com/nats-io/nats-server/server/jetstream.go
5
88.6
0.26% src/github.com/nats-io/nats-server/server/consumer.go
5
79.39
-0.06% src/github.com/nats-io/nats-server/server/opts.go
8
87.32
0.48% src/github.com/nats-io/nats-server/server/raft.go
58
81.95
-0.55% src/github.com/nats-io/nats-server/server/jetstream_cluster.go
Jobs
ID Job ID Ran Files Coverage
1 21327191762.1 25 Jan 2026 06:02AM UTC 61
84.72
GitHub Action Run
Source Files on build 21327191762
  • Tree
  • List 61
  • Changed 20
  • Source Changed 0
  • Coverage Changed 20
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #21327191762
  • 136a736a on github
  • Prev Build on main (#21309443736)
  • Next Build on main (#21346810646)
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