Skip to content

FileStore 'no idx present' warning spam under high WorkQueue throughput #7626

@styler

Description

@styler

Observed behavior

Under high-throughput WorkQueue workloads with frequent message acknowledgements, the filestore enters a state where it continuously logs warnings:

Cache lookup detected no cache: no idx present

This causes:

  • Massive warning spam in logs
  • High CPU usage
  • High disk usage

The issue only resolves after server restart. No memory pressure observed.

Expected behavior

The server should handle high-throughput WorkQueue workloads without entering a degraded state that requires restart to recover.

Server and client version

nats-server v2.12.2

Host environment

Linux, observed in Kubernetes pods

Steps to reproduce

  1. Create a stream with WorkQueue retention policy
  2. Produce messages at high throughput
  3. Consume and acknowledge messages at high rate
  4. After running for some time, observe the warning spam begins

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions