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

moscajs / aedes-persistence-mongodb / 24882453311
96%

Build:
DEFAULT BRANCH: master
Ran 24 Apr 2026 09:29AM UTC
Jobs 1
Files 4
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

24 Apr 2026 09:28AM UTC coverage: 95.993% (+0.04%) from 95.95%
24882453311

push

github

web-flow
fix: add unique index on retained.topic to prevent COLLSCAN stalls (#91)

Without an index on `retained.topic`, every storeRetained upsert and
createRetainedStreamCombi lookup falls back to a collection scan. Under
load, the ordered bulkWrite in storeRetained serializes the whole
publish pipeline behind those scans, stalling broker.publish callbacks
by tens of seconds on deployments with thousands of retained topics
(observed: ~60s uniform lag with 15k retained + 200 msg/s).

The index is declared `unique` to match the {topic}-filtered upsert
semantics. Also extends the index factory to honor the `unique` flag.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

174 of 184 branches covered (94.57%)

Branch coverage included in aggregate %.

16 of 16 new or added lines in 1 file covered. (100.0%)

1383 of 1438 relevant lines covered (96.18%)

147.28 hits per line

Jobs
ID Job ID Ran Files Coverage
1 24882453311.1 24 Apr 2026 09:29AM UTC 4
95.99
GitHub Action Run
Source Files on build 24882453311
  • Tree
  • List 4
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 424e6fe1 on github
  • Prev Build on master (#21436173692)
  • Next Build on master (#24882834853)
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