Skip to content

[Bug] Redelivery messages (replay queue reads) don't get read from cache even when they exist in cache, causing extra bookkeeper reads #23900

Closed

Description

@lhotari

Search before asking

  • I searched in the issues and found nothing similar.

Read release policy

  • I understand that unsupported versions don't get bug fixes. I will attempt to reproduce the issue on a supported version of Pulsar client and Pulsar broker.

Version

Since Pulsar 3.0.6, 3.2.4, 3.3.1, 4.0.0

Minimal reproduce step

Replay queue reads cache cache misses in all cases, even when the entry is already available in the cache.
One detail of the current broker cache implementation is that it is necessary to configure cacheEvictionByMarkDeletedPosition=true so that cached entries don't get evicted by the read position in the managed ledger. (There's a separate issue #16421 about by-passing the cache when cacheEvictionByMarkDeletedPosition=true isn't used.)

What did you expect to see?

Replay queue reads should get read from the cache.

What did you see instead?

No caching

Anything else?

This was previously reported as part of #23504. In addition, there's another issue that when reads are performed, the returned entries aren't added to the cache.

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Activity

  1. added
    type/bug
    on Jan 27, 2025
  2. changed the title [-][Bug] Redelivery messages (replay queue reads) don't get cached and cause extra bookkeeper reads[/-] [+][Bug] Redelivery messages (replay queue reads) don't get read from cache even when they exist in cache, causing extra bookkeeper reads[/+] on Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions