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

nats-io / nats-server / 21159950506
85%

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

19 Jan 2026 04:50PM UTC coverage: 84.713% (-0.03%) from 84.742%
21159950506

push

github

web-flow
Subject tree-driven intersection (#7741)

The previous sublist-driven intersection could miss certain filters and
the attempt to fix this in #7739 suffered from other pathological cases
where more than one overlapping filter matched a given subject but
neither filter was a clear subset or superset of the other. This created
an impossible situation where we couldn't tiebreak without missing
subject literals.

I didn't really want to switch to driving this from the subject tree
instead, since the subject tree is nearly always larger. However a
simple optimisation where we can query the generic sublist to find out
whether there is interest "starting with" a partial filter allows us to
avoid the worst of the expensive overwalking as we walk the subject
tree.

Replaces #7739, replaces #7725. Fixes #7713, fixes #7726.

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

74211 of 87603 relevant lines covered (84.71%)

345109.35 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
82.85
0.0% src/github.com/nats-io/nats-server/server/filestore.go
2
90.28
0.12% src/github.com/nats-io/nats-server/server/leafnode.go
2
90.11
-0.11% src/github.com/nats-io/nats-server/server/reload.go
3
87.11
-0.04% src/github.com/nats-io/nats-server/server/monitor.go
4
90.77
-0.38% src/github.com/nats-io/nats-server/server/parser.go
7
74.12
0.28% src/github.com/nats-io/nats-server/server/jetstream_api.go
8
86.26
-0.38% src/github.com/nats-io/nats-server/server/events.go
8
79.39
0.04% src/github.com/nats-io/nats-server/server/opts.go
8
86.0
-0.12% src/github.com/nats-io/nats-server/server/stream.go
11
87.35
-0.09% src/github.com/nats-io/nats-server/server/raft.go
11
90.04
-0.34% src/github.com/nats-io/nats-server/server/server.go
15
86.83
-0.44% src/github.com/nats-io/nats-server/server/accounts.go
21
82.48
0.1% src/github.com/nats-io/nats-server/server/jetstream_cluster.go
28
92.63
-1.12% src/github.com/nats-io/nats-server/server/route.go
29
93.89
-0.62% src/github.com/nats-io/nats-server/server/client.go
70
91.34
3.54% src/github.com/nats-io/nats-server/server/sublist.go
Jobs
ID Job ID Ran Files Coverage
1 21159950506.1 20 Jan 2026 06:00AM UTC 61
84.71
GitHub Action Run
Source Files on build 21159950506
  • Tree
  • List 61
  • Changed 20
  • Source Changed 3
  • Coverage Changed 19
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #21159950506
  • 7a7ff0dc on github
  • Prev Build on main (#21088688874)
  • Next Build on main (#21197730320)
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