Hi all, I've put together a very small KIP which proposes to add the leader epoch in the StopReplicaRequest in order to make it robust to reordering: https://cwiki.apache.org/confluence/display/KAFKA/KIP-570%3A+Add+leader+epoch+in+StopReplicaRequest
Please take a look at the KIP and let me know what you think. Best, David