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

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

Build:
DEFAULT BRANCH: main
Ran 27 Aug 2024 05:37AM UTC
Files 56
Run time 2s
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

26 Aug 2024 09:54PM UTC coverage: 85.153% (-0.09%) from 85.242%
10571820421.1

push

github

web-flow
Don't return `seq=0, duplicate=true` when processing duplicate messages asynchronously (#5827)

This issue was reported by Marco and Antithesis.

`seq=0, duplicate=true` would be returned if two duplicate messages
would be processed at the same time. The first will propagate, which
will take some time for a clustered stream, but then the second message
gets processed and rejected with `seq=0, duplicate=true` (without
`error`) which would be invalid.

One option to fix this is timing out the second publish and wait for the
original message to finish processing.
That fixes this issue, and the user would just retry the request and get
the valid sequence once the other message has gone through.

However, it could decrease message throughput when this is hit. An
alternative could be to throw an error, but if the user would always
retry if `err != nil` then they'd be "spamming" the same request until
the original message is fully propagated.

Would like to hear your thoughts :) 
Maybe this would be more suitable for 2.11.x as well?

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

66302 of 77862 relevant lines covered (85.15%)

1214568.37 hits per line

Source Files on job 10571820421.1
  • Tree
  • List 0
  • Changed 43
  • Source Changed 4
  • Coverage Changed 17
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 10571820421
  • 0c2bc63d on github
  • Prev Job for on main (#10553691129.1)
  • Next Job for on main (#10590321427.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