Skip to content

Topic partition's segmented storage space calculation error #12399

@xuesongxs

Description

@xuesongxs

Describe the bug
The storage space of partition is much larger than 4G and entries is much larger than 50000 (managedLedgerMaxSizePerLedgerMbytes=4096, managedLedgerMaxEntriesPerLedger=50000 in broker.conf).

Pulsar v2.8.1
e898c53b8dbd468fb4d0ed0de0a2c2a

broker.conf
managedLedgerMaxEntriesPerLedger=50000
managedLedgerMaxSizePerLedgerMbytes=4096

producer code:
            producer = client.newProducer(Schema.STRING)
                    .topic(topic)
                    .producerName(producerName)
                    .sendTimeout(0, TimeUnit.SECONDS)
                    .enableBatching(true)
                    .batchingMaxMessages(1000)
                    .compressionType(CompressionType.ZSTD)
                    .blockIfQueueFull(true)
                    .create();

To Reproduce
Steps to reproduce the behavior:

  1. Start producer
  2. View the segmented storage of the partition in pulsar manager
  3. The storage space of partition is much larger than 4G

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions