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

nats-io / nats-server / 10519998900
83%

Build:
DEFAULT BRANCH: main
Ran 23 Aug 2024 05:35AM UTC
Jobs 1
Files 56
Run time 2min
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

23 Aug 2024 12:03AM UTC coverage: 85.183% (-0.04%) from 85.225%
10519998900

push

github

web-flow
[IMPROVED] Do not load blocks unnecessarily when checking if we can skip ahead in LoadNextMsg(). (#5819)

When we would miss a LoadNextMsg() from the block associated with the
starting sequence, we would check if we could skip ahead. The logic for
this could load old blocks, behind where we were, if the psim fblk was
outdated, causing memory bloat for cache expiration time intervals.

We reworked this to load no blocks in the skip check since this is hot
path for LoadNextMsg() and the linear scan, if applicable, properly will
expire anything loaded that did not contain a match.

I tested that benchmarks were not affected.

`go test -v -run=XXX --bench=Benchmark_FileStoreLoadNext`

Signed-off-by: Derek Collison <derek@nats.io>

66247 of 77770 relevant lines covered (85.18%)

1143306.02 hits per line

Jobs
ID Job ID Ran Files Coverage
1 10519998900.1 23 Aug 2024 05:35AM UTC 0
85.18
GitHub Action Run
Source Files on build 10519998900
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #10519998900
  • 2cae85d5 on github
  • Prev Build on main (#10501948330)
  • Next Build on main (#10535809474)
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