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

nats-io / nats-server / 12511908346
83%

Build:
DEFAULT BRANCH: main
Ran 27 Dec 2024 05:40AM UTC
Jobs 1
Files 57
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 Dec 2024 03:35PM UTC coverage: 85.532% (+0.05%) from 85.482%
12511908346

push

github

web-flow
Initial support for per-message TTLs (#6272)

This is an incomplete but somewhat-working implementations of
per-message TTLs.

Notes:
- Adds `AllowMsgTTL` to stream config;
- Parses the `Nats-TTL` message header as a parsable duration, or if
not, second precision;
- Bumps the `index.db` magic version so that we can add a new field for
tracking how many TTL'd messages are in each message block (means that
`index.db` needs to be rebuilt if downgrading);
- Adds a new `thw.db` to store the timed hash wheel state, and tries to
rebuild it from a linear scan if it is missing or out-of-date.

Future work:
- Memory store support;
- Expires "never" including not aging out with MaxAge;
- Ability to update a TTL for a message;
- Decide what we want to do for enabling/disabling TTL support;
- Decide how mirroring/sourcing streams will handle TTL headers.

Signed-off-by: Neil Twigg <neil@nats.io>

68599 of 80203 relevant lines covered (85.53%)

1240547.53 hits per line

Jobs
ID Job ID Ran Files Coverage
1 12511908346.1 27 Dec 2024 05:40AM UTC 0
85.53
GitHub Action Run
Source Files on build 12511908346
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #12511908346
  • 1a0d55ff on github
  • Prev Build on main (#12499727591)
  • Next Build on main (#12523806245)
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