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

nats-io / nats-server / 21346810646
85%

Build:
DEFAULT BRANCH: main
Ran 26 Jan 2026 06:04AM 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.607% (-0.1%) from 84.723%
21346810646

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>

74302 of 87820 relevant lines covered (84.61%)

347436.24 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
87.11
0.0% src/github.com/nats-io/nats-server/server/monitor.go
2
90.96
-0.19% src/github.com/nats-io/nats-server/server/parser.go
2
90.11
-0.11% src/github.com/nats-io/nats-server/server/reload.go
4
73.96
0.25% src/github.com/nats-io/nats-server/server/jetstream_api.go
10
85.95
-0.17% src/github.com/nats-io/nats-server/server/stream.go
13
82.06
0.11% src/github.com/nats-io/nats-server/server/jetstream_cluster.go
16
79.18
-0.21% src/github.com/nats-io/nats-server/server/opts.go
17
90.1
-0.46% src/github.com/nats-io/nats-server/server/server.go
22
88.54
-0.06% src/github.com/nats-io/nats-server/server/consumer.go
26
92.79
-0.88% src/github.com/nats-io/nats-server/server/route.go
28
93.86
-0.49% src/github.com/nats-io/nats-server/server/client.go
30
87.29
-0.03% src/github.com/nats-io/nats-server/server/raft.go
67
82.36
-0.66% src/github.com/nats-io/nats-server/server/filestore.go
Jobs
ID Job ID Ran Files Coverage
1 21346810646.1 26 Jan 2026 06:04AM UTC 61
84.61
GitHub Action Run
Source Files on build 21346810646
  • 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 #21346810646
  • 136a736a on github
  • Prev Build on main (#21327191762)
  • Next Build on main (#21385057447)
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