Skip to content

Closed ledger did not deleted after retention period when no incoming traffic #9057

Closed

Description

@wangjialing218

Describe the bug
Closed ledger did not deleted after retention period when no incoming traffic

To Reproduce

  1. Set retention time as 10 min for a topic.
  2. Create a producer to make some messages and then stop.
  3. Create a consumer to consume all the message and then stop.
  4. Wait for 4 hours (default value of managedLedgerMaxLedgerRolloverTimeMinutes) to let ledger rollover task close the current ledger and create a new empty ledger.
  5. Check the topic status, topic storage size is not 0.

Expected behavior
The closed ledger is expected to be deleted by internalTrimConsumedLedgers task and the topic storage size should be 0.

Additional context
In #7111 a ledger rollover task was added and current ledger could be closed after managedLedgerMaxLedgerRolloverTimeMinutes. But even the current ledger was closed, it will not be deleted when no incoming traffic.
I will work for a fixing.

Activity

  1. added
    type/bug
    on Dec 25, 2020
  2. added 2 commits that reference this issue on Jan 10, 2021
    0e5c536
    ef68e59
  3. added a commit that references this issue on Jan 14, 2021
    c7e23ba
  4. added a commit that references this issue on Jan 28, 2021
    5e21470
  5. added a commit that references this issue on Apr 6, 2021
    aadcd84
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