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

nats-io / nats-server / 16767894606
83%

Build:
DEFAULT BRANCH: main
Ran 06 Aug 2025 05:55AM 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

05 Aug 2025 10:22AM UTC coverage: 85.852% (-0.06%) from 85.911%
16767894606

push

github

web-flow
(2.12) Atomic batch: support `Nats-Expected-Last-Sequence`, `Nats-Rollup`, `DiscardNew` (#7119)

Add support for the `Nats-Expected-Last-Sequence` and `Nats-Rollup`
headers for batching, as well as `DiscardNew` support.

To do this we need to be able to fully rely on clustered-level
consistency checks, such that followers will always apply them and never
call `bumpCLFS()`. Just a few cases remain, but these should not be
problematic. Now we can rely on `mset.clseq - mset.clfs` to be what the
highest last sequence is going to be, which can then be compared in
consistency checks.

`Nats-Rollup` additionally has some batch-specific consistency checks:
- `Nats-Rollup: all` is allowed only on the first message. Using it on
any later message would mean you'd be purging data at the start of the
batch.
- `Nats-Rollup: sub` is only allowed on the first message of a specific
subject. If allowed on a later message with the same subject, that would
mean you'd be purging data at the start of the batch. This means we can
allow rolling up multiple subjects in the batch at once.

Resolves https://github.com/nats-io/nats-server/issues/6975

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

71649 of 83456 relevant lines covered (85.85%)

342560.18 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
72.46
-0.45% src/github.com/nats-io/nats-server/server/avl/seqset.go
2
84.53
0.05% src/github.com/nats-io/nats-server/server/filestore.go
2
94.54
0.16% src/github.com/nats-io/nats-server/server/gateway.go
2
82.76
-0.09% src/github.com/nats-io/nats-server/server/jetstream.go
2
98.17
-1.83% src/github.com/nats-io/nats-server/server/jetstream_versioning.go
5
86.25
-0.09% src/github.com/nats-io/nats-server/server/events.go
14
86.58
-0.35% src/github.com/nats-io/nats-server/server/accounts.go
15
95.28
0.13% src/github.com/nats-io/nats-server/server/jetstream_batching.go
16
87.14
0.28% src/github.com/nats-io/nats-server/server/memstore.go
21
73.06
-0.43% src/github.com/nats-io/nats-server/server/jetstream_api.go
32
84.98
-1.02% src/github.com/nats-io/nats-server/server/raft.go
34
87.85
-0.69% src/github.com/nats-io/nats-server/server/consumer.go
581
86.1
0.12% src/github.com/nats-io/nats-server/server/stream.go
791
81.12
-0.03% src/github.com/nats-io/nats-server/server/jetstream_cluster.go
Jobs
ID Job ID Ran Files Coverage
1 16767894606.1 06 Aug 2025 05:55AM UTC 59
85.85
GitHub Action Run
Source Files on build 16767894606
  • Tree
  • List 59
  • Changed 18
  • Source Changed 3
  • Coverage Changed 18
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #16767894606
  • 4a8e5843 on github
  • Prev Build on main (#16740925749)
  • Next Build on main (#16795446610)
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