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

nats-io / nats-server / 13256013660 / 1
80%
main: 80%

Build:
DEFAULT BRANCH: main
Ran 11 Feb 2025 05:44AM UTC
Files 57
Run time 2857min
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

10 Feb 2025 05:02PM UTC coverage: 85.493% (+0.04%) from 85.454%
13256013660.1

push

github

web-flow
[FIXED] (2.11) Clear inflight dedupe IDs on leader change (#6486)

Reverts https://github.com/nats-io/nats-server/pull/6415 and
https://github.com/nats-io/nats-server/pull/6426. If duplication would
be deferred to be done by a replica, and that replica was down for at
least 'dupe window+5s', and it would clean up the dedupe map. A message
that was meant to be duplicate could be passed as a genuine message,
resulting in stream desync.

Instead, the dedupe map should be cleared of any staged zero-sequences.
However, that was not possible before as a new leader would not always
be fully up-to-date when it starts responding to new write requests,
which could result in duplicate messages as well.

However, relying on the 'Leader Completeness Property' implemented here:
https://github.com/nats-io/nats-server/pull/6485, we can confidently
clear the dedupe map now of any staged zero-sequences (knowing they were
not proposed). Ensuring both there's no desync, and a failed proposal
for a message would not block subsequent messages with the same dedupe
ID.

Have left the commits as separate, to ease reviewing.

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

69072 of 80793 relevant lines covered (85.49%)

901819.63 hits per line

Source Files on job 13256013660.1
  • Tree
  • List 57
  • Changed 44
  • Source Changed 6
  • Coverage Changed 20
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 13256013660
  • 6d89843a on github
  • Prev Job for on main (#13233706823.1)
  • Next Job for on main (#13278232462.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