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

nats-io / nats-server / 12499727591
83%

Build:
DEFAULT BRANCH: main
Ran 26 Dec 2024 05:41AM 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.482% (+0.006%) from 85.476%
12499727591

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>

68559 of 80203 relevant lines covered (85.48%)

1307511.97 hits per line

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