On 2023/02/03 18:14:53 Heesung Sohn wrote:
> There are some cases to trigger it.
> 1. A cursor be removed.
> 2. Close the current ledger and create a new ledger.
> 3. Consumer ack the message, the slowest cursor move forward.
> 4. User trigger truncateTopic by admin.
> 
> I see that this pip is for the internal ledger deletion cases(1-3 above),
> and it appears that such internal deletion operations do not require
> pre-validation or status checks(and no additional iops on the metadata
> store). I agree that we need a separate pip for async admin operations.

This pip is also applied to case 4. All cases will invoke 
`trimConsumedLedgersInBackground`.
This pip acts inside the method.

Reply via email to