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

nats-io / nats-server / 9459700333
84%

Build:
DEFAULT BRANCH: main
Ran 11 Jun 2024 05:32AM UTC
Jobs 1
Files 55
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

10 Jun 2024 04:50PM UTC coverage: 85.183% (-0.08%) from 85.263%
9459700333

push

github

web-flow
[IMPROVED] Memory based streams and NRG behavior during server restarts (#5506)

Improvements to catchups and health checks.

Improvements to handling snapshots for memory based wals.
With memory based wals we can not use snapshots on restarts, but we do
use them while they are running.
However if a server becomes a leader with no snapshot it will be forced
to stepdown when asked to catchup a follower. So we now inherit a
leaders snapshot.

Also when we tried to truncate on a mismatch, we needed to truncate the
previous index, not current.
When we fail due to the previous entry being compacted away, we would
reset. We now reset the wal to the prior index and use the truncate term
and index.

Lastly if we receive a heartbeat with correct index but newer term just
inherit.
For stream health checks for replicated streams make sure that the
monitor routine is running.
When waiting on consumer assignments at the beginning of the stream
monitor, make sure the consumer monitor is running as well if
replicated.

On a consumer snapshot, register pre-acks as needed.
On stream checkInterestState reset an empty stream to the low ack floor
from all consumers.

Last fix consistency bug with memstore when skipping msgs on empty
stream to ensure first == last + 1.

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

---------

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

65664 of 77086 relevant lines covered (85.18%)

897420.15 hits per line

Jobs
ID Job ID Ran Files Coverage
1 9459700333.1 11 Jun 2024 05:32AM UTC 0
85.18
GitHub Action Run
Source Files on build 9459700333
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #9459700333
  • 6f05a82b on github
  • Prev Build on main (#9442600004)
  • Next Build on main (#9476836430)
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