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

nats-io / nats-server / 43156459814
76%

Build:
DEFAULT BRANCH: main
Ran 12 Nov 2026 05:48AM UTC
Jobs 1
Files 66
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

11 Nov 2026 04:31PM UTC coverage: 77.142% (+0.2%) from 76.937%
43156459814

push

github

web-flow
(2.16) [FIXED] Resolver sync not converging on deletes, gateways & same-second JWTs (#8866)

There were a couple issues where account JWTs weren't propagated
properly between servers:
- Syncing only happens local to a single cluster (since that is how
queue groups work), so if a sync request didn't cross over a gateway
then that cluster would not be able to end up synchronized with JWT
updates. This PR fixes that by switching between locally asking, and
specifically asking over a random gateway, which essentially allows
gossiping of these JWT updates.
- Deleted accounts could come back if such a request was lost, since a
server that missed the delete would sync the JWT back to the servers
that did delete it. The sync requests also didn't include deleted
accounts, so the delete would never reach that server. This PR ensures
(given `hard_delete` is not enabled) that deletes also eventually
propagate, while a JWT re-issued after the delete still re-creates the
account. If `hard_delete` is enabled, then the user must make sure that
the request is accepted by all servers within the system, since the
servers themselves don't hold tombstones for these deleted accounts and
can't propagate it themselves after the fact.
- Also improves consistency, since account JWTs with the same issued at
timestamp could constantly flip between version A and B. Now the stored
JWT will always be the one with the highest issued at timestamp, or if
equal the "highest" JWT value, so each server ends up agreeing on the
state of the JWTs.

Left for 2.16, since these are behavior changes and would show up as
(temporary until upgrade finishes) error messages on older servers that
don't understand how deleted account JWTs are communicated.

69258 of 89780 relevant lines covered (77.14%)

293204.98 hits per line

Coverage Regressions

Lines Coverage ∆ File
1752
79.34
0.12% src/github.com/nats-io/nats-server/server/filestore.go
763
73.5
0.0% src/github.com/nats-io/nats-server/server/jetstream_api.go
413
85.96
0.02% src/github.com/nats-io/nats-server/server/stream.go
346
90.25
1.08% src/github.com/nats-io/nats-server/server/client.go
298
87.89
0.03% src/github.com/nats-io/nats-server/server/consumer.go
254
84.28
0.65% src/github.com/nats-io/nats-server/server/events.go
241
84.49
-0.13% src/github.com/nats-io/nats-server/server/jetstream.go
133
64.59
1.99% src/github.com/nats-io/nats-server/server/dirstore.go
128
86.73
0.17% src/github.com/nats-io/nats-server/server/auth.go
121
82.37
0.0% src/github.com/nats-io/nats-server/server/parser.go
107
62.73
0.21% src/github.com/nats-io/nats-server/server/opts.go
91
85.9
-0.17% src/github.com/nats-io/nats-server/server/accounts.go
52
84.51
-0.81% src/github.com/nats-io/nats-server/server/auth_callout.go
42
93.78
0.01% src/github.com/nats-io/nats-server/server/gateway.go
38
83.48
-0.03% src/github.com/nats-io/nats-server/server/jetstream_cluster.go
29
75.32
-0.1% src/github.com/nats-io/nats-server/server/raft.go
21
88.96
1.83% src/github.com/nats-io/nats-server/server/leafnode.go
4
88.46
0.29% src/github.com/nats-io/nats-server/server/server.go
2
56.6
-1.26% src/github.com/nats-io/nats-server/server/log.go
Jobs
ID Job ID Ran Files Coverage
1 43156459814.1 12 Nov 2026 05:48AM UTC 66
77.14
GitHub Action Run
Source Files on build 43156459814
  • Tree
  • List 66
  • Changed 25
  • Source Changed 15
  • Coverage Changed 25
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #43156459814
  • 0d4956f3 on github
  • Prev Build on main (#42960878948)
  • Next Build on main (#43367156483)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc