The issue is: https://github.com/apache/pulsar/pull/19727
This issue tries to address the index generator rolled back problem when entries add failed. A new default method `afterFailedAddEntry` is added to interface ManagedLedgerInterceptor. And this change should be also cherry-picked to release branches. We are here to discuss whether it's proper to make this change or not.