Skip to main content
Version: Next

BookKeeper Ledger Metadata

Pulsar stores data on BookKeeper ledgers, you can understand the contents of a ledger by inspecting the metadata attached to the ledger. Such metadata are stored in the configured metadata store (Oxia, recommended for new clusters, or ZooKeeper) and they are readable using BookKeeper APIs.

Description of current metadata:

ScopeMetadata nameMetadata value
All ledgersapplication'pulsar'
All ledgerscomponent'managed-ledger', 'schema', 'compacted-topic'
Managed ledgerspulsar/managed-ledgername of the ledger
Cursorpulsar/cursorname of the cursor
Compacted topicpulsar/compactedTopicname of the original topic
Compacted topicpulsar/compactedToid of the last compacted message