A couple of comments. (1) I think topic deletion should have higher priority than preferred replication election. So, if a topic is marked for deletion, we should stop all pending preferred leader election, instead of letting that block the topic deletion. (2) It seems that we don't need to include topicsWithReplicasOnDeadBrokers in topicsIneligibleForDeletion. The same logic is already done in TopicDeletionManager.startReplicaDeletion() when the topic deletion is resumed. 