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

nats-io / nats-server / 21327191762 / 1
85%
main: 85%

Build:
DEFAULT BRANCH: main
Ran 25 Jan 2026 06:02AM UTC
Files 61
Run time 3s
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.1

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

Source Files on job 21327191762.1
  • Tree
  • List 61
  • Changed 20
  • Source Changed 0
  • Coverage Changed 20
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 21327191762
  • 136a736a on github
  • Prev Job for on main (#21309443736.1)
  • Next Job for on main (#21346810646.1)
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