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

nats-io / nats-server / 16336508434
83%

Build:
DEFAULT BRANCH: main
Ran 17 Jul 2025 05:52AM UTC
Jobs 1
Files 59
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

16 Jul 2025 02:47PM UTC coverage: 85.738% (-0.08%) from 85.813%
16336508434

push

github

web-flow
[FIXED] THW: ExpireTasks in full wheel (#7070)

If a TTL was used that's larger than `wheelMask * time.Second ≃ 1h 8m`,
it could take double the time for those messages to expire. This was
because we'd only loop through the wheel between a `startPos` and
`exitPos`. Which works if we only need to loop over a smaller part of
the wheel, but doesn't work if we should loop over it in its entirety.

We can simply always loop over the full wheel, since if we do end up
expiring anything we call into `hw.updateLowestExpires()` which loops
over the full wheel already anyway.

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

71026 of 82841 relevant lines covered (85.74%)

357956.14 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
86.68
0.05% src/github.com/nats-io/nats-server/server/events.go
2
63.16
-10.53% src/github.com/nats-io/nats-server/server/jetstream_events.go
2
93.71
0.04% src/github.com/nats-io/nats-server/server/route.go
3
86.79
-0.09% src/github.com/nats-io/nats-server/server/accounts.go
3
90.67
-0.12% src/github.com/nats-io/nats-server/server/leafnode.go
3
89.37
0.03% src/github.com/nats-io/nats-server/server/mqtt.go
3
81.33
0.04% src/github.com/nats-io/nats-server/server/opts.go
4
94.38
0.16% src/github.com/nats-io/nats-server/server/gateway.go
5
82.76
-0.22% src/github.com/nats-io/nats-server/server/jetstream.go
7
88.33
0.47% src/github.com/nats-io/nats-server/server/consumer.go
7
86.06
0.08% src/github.com/nats-io/nats-server/server/stream.go
11
94.91
-0.22% src/github.com/nats-io/nats-server/server/client.go
11
53.08
-0.83% src/github.com/nats-io/nats-server/server/jetstream_errors_generated.go
16
72.79
-0.34% src/github.com/nats-io/nats-server/server/jetstream_api.go
20
85.9
-0.26% src/github.com/nats-io/nats-server/server/raft.go
22
85.87
-0.45% src/github.com/nats-io/nats-server/server/memstore.go
27
81.27
0.22% src/github.com/nats-io/nats-server/server/jetstream_cluster.go
60
83.4
-0.7% src/github.com/nats-io/nats-server/server/filestore.go
Jobs
ID Job ID Ran Files Coverage
1 16336508434.1 17 Jul 2025 05:52AM UTC 59
85.74
GitHub Action Run
Source Files on build 16336508434
  • Tree
  • List 59
  • Changed 21
  • Source Changed 1
  • Coverage Changed 20
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #16336508434
  • cdd07b18 on github
  • Prev Build on main (#16310704910)
  • Next Build on main (#16362477227)
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