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

nats-io / nats-server / 20771013472

06 Jan 2026 10:29AM UTC coverage: 84.61% (+0.3%) from 84.295%
20771013472

push

github

web-flow
Reduce contention on `ConsumerStore` creation (#7700)

Previously creating a `ConsumerStore` required taking the stream lock to
determine whether the parent stream store was closed or not. Switch to
an atomic so that this no longer requires the lock.

This should speed up creating consumers in a system where the streams
are heavily loaded or contended.

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

74103 of 87582 relevant lines covered (84.61%)

328263.11 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

54.4
/src/github.com/nats-io/nats-server/server/jetstream_errors_generated.go


Source Not Available

The file "src/github.com/nats-io/nats-server/server/jetstream_errors_generated.go" isn't available on github. Either it's been removed, or the repo root directory needs to be updated.

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