Skip to content

[improve] Increase the cache prefetch success rate when entryId is discontinuous. #4539

Open
@zhuhai1221

Description

@zhuhai1221

When Pulsar's persistence is configured with EnsembleSize != WriteQuorum, for example, EnsembleSize=2 and WriteQuorum=1, entry prefetching fails. If there is a backlog of messages, after the RocksDB index cache is evicted, the disk read rate becomes very slow, and entry prefetching fails because the entryId is validated, and at this point, the entryId is discontinuous.

Is it possible to read entries without validating the entryId?

use
org.apache.bookkeeper.bookie.storage.EntryLogger#readEntry(long)

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