### Motivation Right now, topic-compaction ignores the message-id with empty payload but if the last message in the ledger has empty payload then compactor doesn't complete the compaction because compactor ignores last message and doesn't complete the result-future so, caller never sees complete result.
### Modifications - Compactor calculates` from` and `to` position for compacted ledger according to last non-deleted active key. - Compactor handles tail deleted keys from the ledger and completes compaction process gracefully. ### Result compactor can successfully compact ledger whose last message is also deleted. [ Full content available at: https://github.com/apache/incubator-pulsar/pull/2591 ] This message was relayed via gitbox.apache.org for [email protected]
