Search before reporting
Read release policy
User environment
Reproduced on current master.
Issue Description
After a persistent topic is terminated, the final managed-ledger ledger cannot be offloaded.
Earlier closed ledgers can be offloaded normally, but the last ledger remains in BookKeeper. Since topic termination closes the topic for further writes, the final ledger is no longer active and should be eligible for offload when tiered storage is enabled.
This causes terminated topic data to be only partially offloaded, with the final ledger continuing to consume BookKeeper storage.
Expected behavior:
The final ledger of a terminated topic should be offloadable when it matches the configured offload policy.
Actual behavior:
The final ledger remains not offloaded after topic termination.
Error messages
No error message is required to reproduce this issue.
Reproducing the issue
- Configure tiered-storage offload for a namespace or topic.
- Produce messages to a persistent topic.
- Terminate the topic.
- Trigger offload, or configure automatic offload thresholds so the topic data should be eligible for offload.
- Check the managed-ledger offload metadata or BookKeeper storage.
The final managed-ledger ledger of the terminated topic remains not offloaded.
Additional information
Related PR: #25955
Are you willing to submit a PR?
Search before reporting
Read release policy
User environment
Reproduced on current master.
Issue Description
After a persistent topic is terminated, the final managed-ledger ledger cannot be offloaded.
Earlier closed ledgers can be offloaded normally, but the last ledger remains in BookKeeper. Since topic termination closes the topic for further writes, the final ledger is no longer active and should be eligible for offload when tiered storage is enabled.
This causes terminated topic data to be only partially offloaded, with the final ledger continuing to consume BookKeeper storage.
Expected behavior:
The final ledger of a terminated topic should be offloadable when it matches the configured offload policy.
Actual behavior:
The final ledger remains not offloaded after topic termination.
Error messages
No error message is required to reproduce this issue.
Reproducing the issue
The final managed-ledger ledger of the terminated topic remains not offloaded.
Additional information
Related PR: #25955
Are you willing to submit a PR?