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

nats-io / nats-server / 18213110854
83%

Build:
DEFAULT BRANCH: main
Ran 03 Oct 2025 05:47AM UTC
Jobs 1
Files 60
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

02 Oct 2025 03:43PM UTC coverage: 86.095% (+0.07%) from 86.025%
18213110854

push

github

web-flow
(2.12) Atomic batch: support deduplication (#7391)

> 2.12.0 released atomic batch publish, but didn't contain deduplication
support yet. Now that we've decided to have both atomic batch publishing
(atomic & consistent) and non-atomic high-speed publishing
(performance), we can make a decision around how deduplication works as
well.
>
> When the `Nats-Msg-Id` deduplication header is used and a duplicate
message is detected, the whole batch gets rejected with an error:
`atomic publish batch contains duplicate message id`. This ensures the
all-or-nothing-gets-persisted atomic nature is preserved, also when
deduplication is used. There are no exceptions.
>
> The high-speed non-atomic batching could then support deduplication
differently by allowing them to be omitted from the stored messages,
similar to how `js.PublishAsync` would work.

ADR-50 update:
https://github.com/nats-io/nats-architecture-and-design/pull/385



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

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

74481 of 86510 relevant lines covered (86.1%)

348217.49 hits per line

Coverage Regressions

Lines Coverage ∆ File
936
83.6
-0.78% src/github.com/nats-io/nats-server/server/filestore.go
538
55.96
0.04% src/github.com/nats-io/nats-server/server/jetstream_errors_generated.go
117
82.68
0.78% src/github.com/nats-io/nats-server/server/jetstream_cluster.go
100
86.23
0.12% src/github.com/nats-io/nats-server/server/stream.go
9
72.8
0.0% src/github.com/nats-io/nats-server/server/jetstream_api.go
5
81.76
-0.11% src/github.com/nats-io/nats-server/server/opts.go
4
94.29
-0.13% src/github.com/nats-io/nats-server/server/server.go
3
95.08
-0.04% src/github.com/nats-io/nats-server/server/client.go
3
88.74
0.52% src/github.com/nats-io/nats-server/server/consumer.go
2
63.16
-10.53% src/github.com/nats-io/nats-server/server/jetstream_events.go
2
86.24
0.0% src/github.com/nats-io/nats-server/server/memstore.go
2
87.27
0.9% src/github.com/nats-io/nats-server/server/raft.go
2
93.71
0.12% src/github.com/nats-io/nats-server/server/route.go
1
86.4
0.19% src/github.com/nats-io/nats-server/server/events.go
Jobs
ID Job ID Ran Files Coverage
1 18213110854.1 03 Oct 2025 05:47AM UTC 60
86.1
GitHub Action Run
Source Files on build 18213110854
  • Tree
  • List 60
  • Changed 19
  • Source Changed 5
  • Coverage Changed 18
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #18213110854
  • 7726cba4 on github
  • Prev Build on main (#18183589534)
  • Next Build on main (#18239733060)
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