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

nats-io / nats-server / 16795446610 / 1
83%
main: 83%

Build:
DEFAULT BRANCH: main
Ran 07 Aug 2025 05:55AM UTC
Files 59
Run time 3s
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.894% (-0.02%) from 85.911%
16795446610.1

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>

71684 of 83456 relevant lines covered (85.89%)

358869.36 hits per line

Source Files on job 16795446610.1
  • Tree
  • List 59
  • Changed 18
  • Source Changed 3
  • Coverage Changed 18
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 16795446610
  • 4a8e5843 on github
  • Prev Job for on main (#16740925749.1)
  • Next Job for on main (#16822237274.1)
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