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

nats-io / nats-server / 13363030201
84%

Build:
DEFAULT BRANCH: main
Ran 17 Feb 2025 05:48AM UTC
Jobs 1
Files 57
Run time 6min
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

15 Feb 2025 01:54AM UTC coverage: 84.426% (-1.1%) from 85.509%
13363030201

push

github

web-flow
NRG: Invalidate pending append entries cache (#6513)

The `n.pae` is an in-memory cache of pending but not yet applied
entries. When applying commits we can pull from this cache so we don't
need to pull them from disk for example. However, the cache has a
bounded size. So if the cache would be fully filled and we'd store a
different entry at an index that was cached, we'd apply the wrong
(cached) entry.

If we get an entry that we can't cache because it's full, we can simply
drop the entry from the cache if it exists. If an entry at this index
doesn't exist it's a noop, but if it did exist then it clears up room in
the cache for the next entries to be stored.

Signed-off-by: Maurice van Veen <github@mauricevanveen.com>

68197 of 80777 relevant lines covered (84.43%)

863883.29 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
84.55
0.04% src/github.com/nats-io/nats-server/server/monitor.go
2
63.16
-10.53% src/github.com/nats-io/nats-server/server/jetstream_events.go
2
90.47
-0.08% src/github.com/nats-io/nats-server/server/leafnode.go
3
81.01
-3.8% src/github.com/nats-io/nats-server/server/errors.go
3
83.7
0.05% src/github.com/nats-io/nats-server/server/filestore.go
4
93.71
0.0% src/github.com/nats-io/nats-server/server/gateway.go
4
42.86
-57.14% src/github.com/nats-io/nats-server/server/service.go
5
85.96
-0.1% src/github.com/nats-io/nats-server/server/events.go
6
73.54
-0.11% src/github.com/nats-io/nats-server/server/jetstream_api.go
6
90.57
-0.58% src/github.com/nats-io/nats-server/server/parser.go
7
93.36
-0.29% src/github.com/nats-io/nats-server/server/route.go
12
87.77
-1.07% src/github.com/nats-io/nats-server/server/auth.go
12
88.2
-0.23% src/github.com/nats-io/nats-server/server/consumer.go
12
87.48
-0.72% src/github.com/nats-io/nats-server/server/reload.go
13
84.65
-0.2% src/github.com/nats-io/nats-server/server/raft.go
14
89.04
-0.35% src/github.com/nats-io/nats-server/server/mqtt.go
16
71.6
-4.73% src/github.com/nats-io/nats-server/server/store.go
17
86.76
-8.33% src/github.com/nats-io/nats-server/server/util.go
20
94.6
-0.18% src/github.com/nats-io/nats-server/server/client.go
36
83.39
-0.9% src/github.com/nats-io/nats-server/server/memstore.go
39
93.42
-1.12% src/github.com/nats-io/nats-server/server/server.go
58
81.96
0.22% src/github.com/nats-io/nats-server/server/jetstream_cluster.go
76
91.28
-6.13% src/github.com/nats-io/nats-server/server/sublist.go
79
79.12
-1.68% src/github.com/nats-io/nats-server/server/opts.go
84
19.85
-61.76% src/github.com/nats-io/nats-server/server/signal.go
107
64.45
-20.9% src/github.com/nats-io/nats-server/server/dirstore.go
115
62.21
-27.0% src/github.com/nats-io/nats-server/server/subject_transform.go
270
70.98
-25.12% src/github.com/nats-io/nats-server/server/websocket.go
Jobs
ID Job ID Ran Files Coverage
1 13363030201.1 17 Feb 2025 05:48AM UTC 57
84.43
GitHub Action Run
Source Files on build 13363030201
  • Tree
  • List 57
  • Changed 48
  • Source Changed 0
  • Coverage Changed 31
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #13363030201
  • 3c575bf0 on github
  • Prev Build on main (#13341850506)
  • Next Build on main (#13383405733)
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